WABotJS is published to npm asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jzszdznzzl/WABotJS/llms.txt
Use this file to discover all available pages before exploring further.
wabotjs and works with any package manager that supports ESM. Because it relies on Node.js’s built-in node:sqlite module for session persistence, you must be on Node.js v24 or later — no native compilation or separate database driver is required.
Requirements
Before installing, confirm your environment meets these prerequisites:| Requirement | Version / Setting | Notes |
|---|---|---|
| Node.js | v24 or later | Required for node:sqlite |
| Project type | "type": "module" in package.json | WABotJS is ESM-only |
| TypeScript | v5+ (optional, recommended) | Types are shipped with the package |
Install the Package
Project Setup
package.json
Your project must be an ESM module. At minimum, set"type": "module" in your package.json:
package.json
tsconfig.json
If you are using TypeScript, configure it for ESM output with Node.js module resolution. The following is a recommended starting point:tsconfig.json
Verify Installation
After installing, confirm everything is wired up correctly by importingBot and logging it:
verify.ts
npx tsx verify.ts (or node verify.js after compiling). If you see the class logged without errors, WABotJS is installed and your ESM setup is correct.
Native SQLite Note
WABotJS uses Node.js’s built-in
node:sqlite module — introduced as a stable API in Node.js v24 — to persist authentication credentials, JID mappings, and message caches to disk. This means there are no native compiled bindings to install, no better-sqlite3 build step, and no external database server required. Your session data lives in plain .db files inside the datadir directory you configure.Peer Exports
WABotJS re-exports the full Baileys library under thebaileys named export from its main entry point. This means you can import Baileys types and utilities directly from wabotjs without adding baileys as a separate dependency in your package.json:
WABotJS currently ships with
baileys@7.0.0-rc13. If you need a specific Baileys version that differs from the one bundled, install it explicitly in your project — your local version will take precedence.