Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

WhiskeySockets/Baileys

Networking & Communication

TypeScript/JavaScript library that connects to WhatsApp Web over WebSockets for messaging automation.

11,848
3,580
JavaScript
MIT
4 years old

What it does

Baileys is a TypeScript library that talks to WhatsApp Web over WebSockets, exposed as a socket-based API for Node.js (also used with Bun and Deno). It is aimed at developers who want to build automated messaging, bots, or integrations on top of a personal WhatsApp account rather than a server programmatically. The project describes itself as reverse-engineering the WhatsApp Web protocol and is not affiliated with WhatsApp.

Quick start

Baileys is published on npm as baileys. The current README points to a new guide on the wiki, which it marks as a work in progress, with missing pages possible; the older guide remains available in the repository's top-level README and on the npm page.

  1. Install the package into an existing Node.js project: npm install baileys (package name per its npm listing).
  2. Follow the new wiki guide to initialize a socket, authenticate by pairing or QR code, and start sending and receiving messages. If a page is missing, fall back to the old guide or the npm page.
  3. For version 7.0.0 and later, review the migration notes before upgrading an existing integration, since multiple breaking changes were introduced.

The documentation does not provide a complete minimal code sample in the README itself, so the exact connection and authentication steps should be taken from the wiki guide rather than inferred.

Things to know

  • The library targets the WhatsApp Web protocol, so it depends on an existing WhatsApp account and the behavior of WhatsApp's servers; the maintainers do not claim any official affiliation with WhatsApp.
  • The README explicitly warns that automated or bulk messaging and stalkerware usages are discouraged and may violate WhatsApp's Terms of Service; users are expected to apply their own judgment.
  • Version 7.0.0 introduced breaking API changes, so existing code may need adjustments before upgrading.
  • Licensed under the MIT License.
  • Business and enterprise support is offered as paid video sessions with the current maintainer, and the project accepts sponsorship; these do not affect the open-source license.

HotRepo's take

On the JavaScript weekly chart dated 2026-12-04, Baileys recorded 96 new stars and ranked 1st in that language weekly list, reaching 11,838 total stars. That is a language-scoped weekly position, not an all-language daily ranking, and the earlier July daily snapshots show modest single-digit to double-digit daily gains. The project's persistence in that period points to steady interest in WhatsApp Web automation from JS developers, but the GitHub metrics alone do not indicate the reliability of the reverse-engineered protocol or how well it handles WhatsApp-side changes.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. tulir/whatsmeowA Go library that lets developers build WhatsApp messaging into their own apps via the web multidevice API.Go7,687
  2. denoland/denoA secure JavaScript, TypeScript and WebAssembly runtime for building and running applications, especially web servers.Rust108,769
  3. finereli/whatsapp-mcpRead-only MCP server that lets an AI agent search and read your own WhatsApp history.TypeScript391
  4. lharries/whatsapp-mcpLets an LLM agent search, read, and send WhatsApp messages from your own account, locally.Go6,710