- FAQ
- Introduction
- Comparisons
- Quick Start
- Features
- Disclaimer
- Requirements
- Event Handler
- Command Handler
- Messages
- Chats
- Groups
- Contacts
- Polls
- Channels
- Orders
- Payments
- Multi Device
- Presence and Profile
Read the Disclaimer before you start, whatsapp-web.js is unofficial and should be used responsibly to prevent getting blocked from WhatsApp.
Introduction
whatsapp-web.js (WWebJS) is a Node.js library for interacting with WhatsApp Web, using Puppeteer to run a managed browser and reduce blocking risk.
WWebJS has different parts:
whatsapp-web.js
Handles client, messages, chats, and communication with WhatsApp Web.
WWebJS Core
Utilities for sessions, authentication, and client lifecycle.
WWebJS Formatters
Tools for formatting messages and media.
WWebJS CLI
CLI tools for setting up your app.
Want to learn more?
- What is WWebJS to understand capabilities and limits
- Disclaimer to understand risks and limitations
- Installation to prepare your environment
- Project Setup to wire events and handlers cleanly
- Authentication to pick the right session strategy for your use case
- Create Your App to structure your first project
Automatic Installation
A minimum version of Node.js 18 is required.
npm create wwebjs-appIt will ask you the built-in steps:
Project name
Choose the name for your new project.
Select a template:
- JavaScript
- TypeScript
Use a src/ directory?
Decide whether your files should be placed in a dedicated src/ folder.
Auth strategy:
- NoAuth (no session persistence)
- LocalAuth (local session storage)
- RemoteAuth (database session storage)
Package manager
Choose your preferred package manager
npmpnpmyarn
Install dependencies automatically?
Confirm whether the CLI should install dependencies right away.
From Existing Codebase?
You can follow the Manual Installation guide to get started.
Enjoy!
Create your first Application
FAQ
For common questions about setup, authentication and usage, check out the FAQ.
On This Page