AlenVelocity/wa-sticker-formatter ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Node.js library that turns images, GIFs, and videos into WhatsApp stickers, with support for pack name, author, emoji categories, and the right WebP output size so WhatsApp accepts it. I want to be able to give it a file path, buffer, stream, URL, or SVG string, then get back a sticker file or an object I can send with a bot library like Baileys. It should handle normal stickers and animated stickers, keep them under the size limit, and preserve the aspect ratio. If you can, include support for sound stickers too, where an animated sticker is paired with audio, and make sure the library can patch older Baileys versions if needed. Please add a few simple usage examples and tests so I can see how to use it right away, and look up current docs online if you need to confirm any WhatsApp or ffmpeg details.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab