Baileys is a Typescript/Javascript library that implements the WhatsApp Web protocol. This fork/package re-exports the library under the package name veron-baileys so you can install it either using the stable unscoped name or via the original scoped names that point to this package.
Package on npm: https://www.npmjs.com/package/veron-baileys
Homepage / source: https://github.com/VeronDev/Baileys
Badges
- npm: veron-baileys (latest)
- Compatible aliases:
@whiskeysockets/baileys=>npm:veron-baileys@latest@adiwajshing/baileys=>npm:veron-baileys@latest
Quick install
Using Yarn (recommended)
yarn add veron-baileys
# or pin a specific version:
yarn add veron-baileys@1.0.2Using npm
npm install veron-baileys
# or pin a specific version:
npm install veron-baileys@1.0.2If you want to use the original package names as aliases in package.json, add these entries:
{
"dependencies": {
"@whiskeysockets/baileys": "npm:veron-baileys@latest",
"@adiwajshing/baileys": "npm:veron-baileys@latest",
"veron-baileys": "1.0.2"
}
}Importing
If you installed the unscoped package:
import makeWASocket from 'veron-baileys'If you used one of the aliased scoped package names, import exactly as you would normally:
import makeWASocket from '@whiskeysockets/baileys'
// or
import makeWASocket from '@adiwajshing/baileys'Minimal example
This is a compact example showing how to create a socket and listen for connection updates. For a fuller example that covers authentication, message handling, media, and reconnection, see the included example.ts file in the repository.
import makeWASocket from 'veron-baileys'
async function start() {
const sock = makeWASocket({
// pass options here (logger, printQRInTerminal, auth, etc.)
})
sock.ev.on('connection.update', (update) => {
console.log('connection update:', update)
})
sock.ev.on('messages.upsert', (m) => {
console.log('messages upsert:', m)
})
}
start().catch(console.error)Running the example
- Clone or download the repository:
git clone https://github.com/VeronDev/Baileys.git cd Baileys - Install dependencies:
yarn
- Run the example script:
yarn example
Notes and compatibility
- This package re-exports the Baileys API under the
veron-baileyspackage name. If you depend on code that imports@whiskeysockets/baileysor@adiwajshing/baileys, you can use the alias entries above in package.json so existing imports continue to work. - Check example.ts in the Example/ folder for a full demonstration of usage patterns, session persistence, message handling, and media upload/download.
- Keep your environment up-to-date with Node.js LTS releases for best compatibility.
Contributing
- Contributions, bug reports, and PRs are welcome. Please open issues or pull requests on the GitHub repository: https://github.com/VeronDev/Baileys
License
- See LICENSE in the repository for license details.
