npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sticker-bot

v1.0.0

Published

A WhatsApp bot that converts images to stickers from the terminal.

Readme

WhatsApp Sticker Bot

A WhatsApp bot that converts images to stickers using the !sticker command. Built with TypeScript, bundled with Bun, and run on Node.js.

[!IMPORTANT] USE AT YOUR OWN RISK: This bot uses unofficial WhatsApp Web APIs. WhatsApp may detect and block your account for using automated tools that violate their Terms of Service. The author is NOT LIABLE for any account bans, restrictions, or other consequences that may result from using this bot. By using this software, you acknowledge and accept all risks associated with automated WhatsApp interactions.

Features

  • 🎨 Convert images to WhatsApp stickers
  • 🔗 Support for direct image URLs
  • 📱 QR code authentication
  • 💾 Persistent authentication (LocalAuth)
  • ✨ Colored console logging with Chalk

Prerequisites

  • Node.js runtime (v24 or later)
  • FFmpeg installed on your system
  • WhatsApp account

Installation

Install the published command globally from npm:

npm install --global sticker-bot

To install from source instead, clone the repository:

git clone https://github.com/AHaldner/sticker-bot.git
cd sticker-bot

Building from source additionally requires Bun v1.3.14 or later. Install dependencies and build the Node.js command with Bun:

bun install
bun run build

Install FFmpeg:

# macOS (using Homebrew)
brew install ffmpeg

# Verify installation
which ffmpeg

Create a .env file in the directory where you run the bot and set the FFmpeg path:

FFMPEG_PATH=/usr/local/bin/ffmpeg

Note: Update the path based on your FFmpeg installation location (use which ffmpeg to find it).

Usage

Start the globally installed bot:

sticker-bot

When running from source, use:

npm start

Then scan the QR code with WhatsApp on your phone:

  • Open WhatsApp on your phone
  • Go to Settings > Linked Devices
  • Tap "Link a Device"
  • Scan the QR code displayed in the terminal

Send a message to any chat:

!sticker https://example.com/image.png

The bot will convert the image at the URL into a sticker and send it back to the chat.

How It Works

  • The bot listens for messages starting with !sticker
  • Extracts the image URL from the message
  • Downloads and converts the image to a sticker
  • Sends the sticker back to the same chat

Technologies Used

Project Structure

sticker-bot/
├── index.ts          # Main bot logic
├── package.json      # Dependencies and scripts
├── tsconfig.json     # TypeScript configuration
├── .env              # Environment variables (create this)
└── README.md         # This file

Troubleshooting

FFmpeg not found

If you encounter FFmpeg errors:

  1. Ensure FFmpeg is installed: which ffmpeg
  2. Update the FFMPEG_PATH in your .env file with the correct path
  3. Common paths:
    • macOS (Homebrew): /usr/local/bin/ffmpeg or /opt/homebrew/bin/ffmpeg
    • Linux: /usr/bin/ffmpeg

Authentication issues

Delete the .wwebjs_auth folder and restart the bot to re-authenticate.

Sticker creation fails

  • Ensure the image URL is publicly accessible
  • Check that the image format is supported (PNG, JPEG, WEBP)
  • Verify the image size is reasonable (WhatsApp has size limits)

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

Andrin Haldner

Legal Notice

This project is unofficial and is not affiliated with, authorized, maintained, sponsored, or endorsed by WhatsApp LLC or Meta Platforms, Inc. WhatsApp is a trademark of its respective owner.

This software relies on unofficial WhatsApp Web automation. Its use may violate WhatsApp's Terms of Service and may result in account restrictions or suspension. Users are solely responsible for ensuring that their use complies with applicable laws, third-party rights, and platform terms.