Baileys
WebSocket library for programmatically interacting with WhatsApp Web.
SDKs for hosted services npm MIT
How Baileys is used
Baileys is a dependency in 24 of the 6,208 public GitHub projects set up for AI coding agents that we scanned (0.5% of the 4,818 JavaScript/TypeScript ones), #30 of 253 in sdks for hosted services. Projects that use it most often also use qrcode-terminal (95.8%), grammY (91.7%), Vitest (91.7%). It is more common in projects set up for OpenClaw (6.2%) than for GitHub Copilot (0.2%).
Baileys popularity over time
Gid Score 49: downloads 53, use in agent projects 38, GitHub stars 52, downloads trend 54 (each 0-100). How it is calculated.
Often used with Baileys
| qrcode-terminal | 95.8% of Baileys projects · 165.3× more than average |
|---|---|
| grammY | 91.7% of Baileys projects · 138.8× more than average |
| Vitest | 91.7% of Baileys projects · 4.5× more than average |
| Slack Bolt | 87.5% of Baileys projects · 208.9× more than average |
| Croner | 87.5% of Baileys projects · 126.3× more than average |
| dotenv | 87.5% of Baileys projects · 5.6× more than average |
| JSON5 (JavaScript) | 87.5% of Baileys projects · 104.5× more than average |
| Pi-AI | 83.3% of Baileys projects · 184.8× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| OpenClaw | 6.2% of projects set up for it |
| Gemini CLI | 2.8% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Baileys as a dependency.
How Baileys is funded
GitHub Sponsors
| @purpshell | 43 current sponsors |
|---|---|
| @jlucaso1 | 5 current sponsors |
| @vinikjkkj | 7 current sponsors |
| @SheIITear | 2 current sponsors |
GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work.
Ways to fund Baileys
GitHub Sponsors GitHub Sponsors GitHub Sponsors GitHub Sponsors
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | npm install @whiskeysockets/baileys |
|---|---|
| Main stacks | TypeScript / JavaScript (20), Python (4) |
| Example projects | Bitterbot-AI/bitterbot-desktop, ArgentAIOS/argentos-core, raucvr/Group-Goki, viralcode/openwhale, geongeorge/nakedclaw |
Alternatives to Baileys
In our scan, none of the most used tools in SDKs for hosted services does the same job as Baileys: they are add-ons, companions or tools for a different task.
More in SDKs for hosted services: Supabase JS Supabase SSR AWS SDK for JavaScript (S3) Resend Stripe (JavaScript) Supabase CLI Firebase Stripe.js