whatsapp-web.js drives WhatsApp Web through Puppeteer so Node programs can send, receive, and manage chats with many web-client features. It targets multi-device accounts and documents session auth strategies.
Overview
whatsapp-web.js is a Node.js package for building bots and integrations that mirror WhatsApp Web capabilities. It launches a managed browser session via Puppeteer, calls WhatsApp Web internals, and exposes an object-oriented API for messaging workflows.
Documented capabilities include multi-device support, sending and receiving text plus media, stickers, contacts, locations, reactions, polls, channels, and group administration such as invites, subject changes, participant roles, and mute or block controls. Deprecated button and list messages are marked unsupported.
Developers install from npm and need a recent Node.js runtime. Guides cover authentication persistence, example scripts, and strategies for saving sessions. The maintainers note the project is unofficial, not endorsed by WhatsApp, and that accounts may still face blocks because unofficial clients violate WhatsApp platform rules.
Reference docs, a Discord server, and npm publishing accompany the codebase. Apache 2.0 licensing applies to the library itself.
Key features
- Puppeteer-backed WhatsApp Web session
- Multi-device account support
- Send and receive media messages
- Group and channel management helpers
- Contact, location, and poll messaging
- Reaction and reply handling
- Session authentication strategies
- Object-oriented Node.js API
Use cases
- Customer notification bots
- Group moderation automation
- Media relay from backend services
- Internal alerting via WhatsApp
- Prototyping chat integrations in Node