WhiskeySockets/Baileys

WebSocket-based TypeScript API for WhatsApp Web (no browser)

JavaScriptโ˜… 11.7k๐Ÿ’ฌ WhatsApp & Chatbots

What

Unofficial library that speaks the WhatsApp Web multi-device protocol directly over WebSockets, so it is much lighter than browser-based clients. Docs live at baileys.wiki.

How to use

npm i baileys, create a socket with makeWASocket, persist login with useMultiFileAuthState, scan the QR, then listen to messages.upsert and call sendMessage. Follow baileys.wiki for the current API.

Reach for it when

You want a lightweight Node WhatsApp bot without running Chromium. Same ban risk as other unofficial clients.