# whatsapp-web.js vs Baileys vs WAHA (2026)

whatsapp-web.js vs Baileys vs WAHA in 2026: language, licence, how each connects, resource use, maintenance and which to choose for your project.

Canonical URL: https://superskope.com/blog/whatsapp-web-js-vs-baileys
Updated: 2026-11-27
Author: SuperSkope

## Short answer

whatsapp-web.js runs the real WhatsApp Web page in a headless browser, Baileys speaks the WhatsApp protocol directly over a WebSocket, and WAHA is a self-hosted HTTP server that can run either of them (and more) behind one REST API.

Pick Baileys for many lightweight sessions in Node.js, whatsapp-web.js for web-client behaviour in one bot, and WAHA if you want HTTP from any language. All three are unofficial and carry the same WhatsApp ban risk.

## The three projects side by side

Figures from GitHub and npm on 27 Nov 2026. Star counts are rounded and change daily.

|  | whatsapp-web.js | Baileys | WAHA |
| --- | --- | --- | --- |
| What it is | Node.js library | TypeScript library | Self-hosted HTTP API server |
| How it connects | Runs WhatsApp Web in a headless browser through Puppeteer | Speaks the WhatsApp Web protocol directly over a WebSocket | Wraps several engines behind one REST API and webhooks |
| Licence | Apache-2.0 | MIT | Apache-2.0 |
| Latest release | v1.34.8 (12 Nov 2026) | 7.0.0-rc14 on npm (29 Jul 2026); 6.7.24 tagged legacy | 2026.10.1 (28 Oct 2026) |
| Repository | wwebjs/whatsapp-web.js, about 23,000 stars | WhiskeySockets/Baileys, about 11,700 stars | devlikeapro/waha, about 7,900 stars |
| Install | npm install whatsapp-web.js (Node 18+) | npm install baileys | docker pull devlikeapro/waha |
| Communities | Listed as coming soon | Supported functions | No community routes |
| Best for | Mirroring WhatsApp Web behaviour in one app | Many sessions with low overhead in Node.js | Any language, via HTTP, without writing protocol code |

## How they differ technically

whatsapp-web.js opens the real WhatsApp Web page in Chromium and calls its internal functions. Because it uses the same code as the browser client, new web features often work quickly, but every session carries a full browser, and video sending needs Google Chrome rather than Chromium.

Baileys implements the multi-device protocol itself and talks to WhatsApp's servers over a WebSocket, with no browser. That makes each session much lighter, which matters when you run many numbers on one server. The trade-off is that protocol changes have to be re-implemented, and version 7.0.0 introduced multiple breaking changes, so upgrades need care.

WAHA is not a third alternative library. It is a server that can run one of several engines: browser-based engines built on whatsapp-web.js and WPPConnect, a WebSocket engine built on Baileys, and a Go engine built on whatsmeow. You choose the engine in its configuration and call the same REST API. WAHA's documentation notes that responses and webhook payloads can differ between engines, so test before switching.

- [What is WAHA?](https://superskope.com/blog/what-is-waha)

## Code: the same "reply pong" bot in each

whatsapp-web.js, from the project's README:

```
const { Client } = require('whatsapp-web.js');
const qrcode = require('qrcode-terminal');

const client = new Client();
client.on('qr', qr => qrcode.generate(qr, { small: true }));
client.on('ready', () => console.log('Client is ready!'));
client.on('message', msg => {
  if (msg.body === '!ping') msg.reply('pong');
});
client.initialize();
```

Copy-only example. No request is run by this page.

## Baileys and WAHA in practice

With Baileys you create a socket, persist its auth state yourself, and handle connection updates and reconnects in your own code. You get full control and full responsibility: session storage, reconnect loops and LID-based participant identities are yours to manage. With WAHA you run a Docker container, start a session with POST /api/sessions, scan a QR code and call endpoints such as POST /api/sendText from any language. WAHA also ships a dashboard, Swagger documentation and an n8n community node.

- [Why a participant ID is not always a phone number](https://superskope.com/blog/whatsapp-participant-names-and-ids)

## Which should you choose?



| If you... | Choose | Because |
| --- | --- | --- |
| Want the most web-client-like behaviour in a single Node.js bot | whatsapp-web.js | It runs the real web client |
| Run many numbers per server, or care about memory | Baileys | No browser per session |
| Write in Go | whatsmeow | Native Go library, MPL-2.0, also used by one of WAHA's engines |
| Use Python, PHP, Java or no-code tools like n8n | WAHA | HTTP API and webhooks, engine choice later |
| Need a team inbox, permissions and audit on top | A managed service | The library is the smallest part of a production system |

## What all three have in common

None of them is affiliated with WhatsApp, and all of them say so. Baileys' README goes further: its maintainers "do not in any way condone the use of this application in practices that violate the Terms of Service of WhatsApp" and discourage "bulk or automated messaging usage". WhatsApp's Help Center says linking an account to unofficial versions of WhatsApp violates its terms and can lead to a ban. Choosing a library does not change that risk; how you use the number does.

Operationally, all of them break when WhatsApp changes its web client or protocol, all need session data stored securely (it is effectively a login to the account), and all report events slightly differently. Budget time for upgrades, monitoring and the occasional re-pair.

- [Unofficial WhatsApp API: how it works and the real risks](https://superskope.com/blog/unofficial-whatsapp-api)
- [Why WhatsApp bans numbers](https://superskope.com/blog/whatsapp-ban)

## Where SuperSkope fits

SuperSkope is a managed service rather than a library. It gives teams what a library does not: a shared inbox, scoped API keys, idempotent writes, signed webhooks and group permissions, with nothing to host or upgrade. SuperSkope connects your existing number as a WhatsApp linked device (the same way WhatsApp Web works). It is not the official WhatsApp Business Platform and is not affiliated with WhatsApp or Meta. If you want to own the whole stack, self-hosting one of these projects is a reasonable choice for developers.

- [SuperSkope WhatsApp API](https://superskope.com/whatsapp-api)
- [Read the developer documentation](https://docs.superskope.com/)

## Next step

Prototype with the project that matches your language on a secondary number. Measure memory per session and reconnect behaviour over a week before you commit, and decide where session data will live.

- [What is WAHA?](https://superskope.com/blog/what-is-waha)
- [WhatsApp linked devices: limits and how they work](https://superskope.com/blog/whatsapp-linked-devices)

## Frequently asked questions

**Is Baileys better than whatsapp-web.js?** Neither is better in every case. Baileys uses far fewer resources because it has no browser, so it suits many sessions. whatsapp-web.js tracks the web client closely, so some features behave exactly as in WhatsApp Web. Baileys 7 introduced breaking changes, so check the migration notes before upgrading.

**Does WAHA use Baileys?** Yes, for one of its engines. WAHA can run a WebSocket engine built on Baileys, browser engines built on whatsapp-web.js and WPPConnect, or a Go engine built on the library whatsmeow. You choose the engine in WAHA's configuration.

**Are whatsapp-web.js and Baileys free?** Yes. whatsapp-web.js is Apache-2.0 and Baileys is MIT licensed, so both are free to use in commercial projects under those licences. Your costs are hosting, maintenance and the risk to the WhatsApp number, which no licence covers.

**Will WhatsApp ban me for using whatsapp-web.js or Baileys?** It can. WhatsApp says linking your account to unofficial versions of WhatsApp violates its terms and can lead to temporary or permanent bans. In practice, behaviour drives most bans: messaging strangers, sending in bulk and getting reported. Both projects ask users not to spam.

## Sources



- [GitHub: wwebjs/whatsapp-web.js](https://github.com/wwebjs/whatsapp-web.js)
- [GitHub: WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys)
- [GitHub: devlikeapro/waha](https://github.com/devlikeapro/waha)
- [GitHub: tulir/whatsmeow](https://github.com/tulir/whatsmeow)
- [WAHA docs: Engines](https://waha.devlike.pro/docs/how-to/engines/)
- [WhatsApp Help Center: About unofficial WhatsApp apps](https://faq.whatsapp.com/1217634902127718)
- [WhatsApp Terms of Service](https://www.whatsapp.com/legal/terms-of-service)

## Continue reading

- [What is WAHA? The WhatsApp HTTP API explained](https://superskope.com/blog/what-is-waha)
- [Unofficial WhatsApp API: how it works and the real risks](https://superskope.com/blog/unofficial-whatsapp-api)
- [A WhatsApp API for the system you want to build.](https://superskope.com/whatsapp-api)
