Command Palette

Search for a command to run...

Discord

Last edited April 8, 2026

Quick Start

A quick introduction to what whatsapp-web.js

Notice

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:

Want to learn more?

  1. What is WWebJS to understand capabilities and limits
  2. Disclaimer to understand risks and limitations
  3. Installation to prepare your environment
  4. Project Setup to wire events and handlers cleanly
  5. Authentication to pick the right session strategy for your use case
  6. Create Your App to structure your first project

Automatic Installation

A minimum version of Node.js 18 is required.

npm create wwebjs-app

It 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

  • npm
  • pnpm
  • yarn

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.