Command Palette

Search for a command to run...

22kDiscord

Last edited April 28, 2026

Quick Start

A quick introduction to what whatsapp-web.js

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:

Handles client, messages, chats, and communication with WhatsApp Web.

Utilities for sessions, authentication, and client lifecycle.

Tools for formatting messages and media.

CLI tools for setting up your app.

Automatic Installation

A minimum version of Node.js 18 is required.

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.

Enjoy!

Create your first Application

FAQ

For common questions about setup, authentication and usage, check out the FAQ.