Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

venom

> 编程语言
Open source

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media

6.6K stars0 likes1 views
WebsiteGitHub

About

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media

Venom v6

The next generation of WhatsApp automation. Completely rebuilt.


Why Venom?

Venom is not just another library. It's a complete automation platform designed from the ground up for performance, reliability, and developer experience.

Built on top of proven technologies, Venom gives you full control over WhatsApp Web through a clean, intuitive API — whether you're building a simple chatbot or a large-scale enterprise solution.

  Blazing fast message processing
  Session persistence out of the box
  Modular architecture — extend with ease
  Multi-session support for scaling
  Battle-tested in production by thousands of developers

What's new in v6

  Rewritten from scratch — cleaner, simpler codebase
  Pure Puppeteer — no puppeteer-extra, no stealth plugins
  Updated WhatsApp Web modules (WAWebSocketModel, WAWebConnModel, etc.)
  Chromium auto-download on npm install
  Node.js 18+ required
  TypeScript 5.7+ with strict types
  Pino logger — fast, structured logging
  Only 6 source files — down from 83+

Install

Requires Node.js 18+. Chromium is downloaded automatically on install.

bash
npm install venom-bot
Nightly builds
bash
npm install https://github.com/orkestral/venom/releases/download/nightly/venom-bot-nightly.tgz
Install from source
bash
npm install github:orkestral/venom

Quick Start

Get a fully functional bot running in under 30 seconds.

javascript
import { create } from 'venom-bot';

create({ session: 'venom-bot' }).then((client) => {

  client.onMessage(async (message) => {
    if (message.body === 'hello') {
      await client.sendText(message.from, 'Hey there!  I\'m running on Venom.');
    }
  });

});

Scan the QR code that appears in your terminal. Done — you're live.

[!TIP] Sessions are saved automatically. No need to re-scan on every restart.


Capabilities

Messaging

Send anything. Text, images, videos, documents, audio, stickers, locations, polls — you name it.

…

Smart Sending

javascript
// Send with typing indicator
await client.sendTextViaTyping(chatId, 'This feels more natural...');

// Send photo/video with typing simulation
await client.sendPhotoVideoViaTyping(chatId, './sunset.jpg', 'Beautiful sunset');

// Reply to a message
await client.reply(chatId, 'Got it!', originalMessageId);

// Forward messages
await client.forwardMessages(chatId, [messageId1, messageId2]);

// Mention users
await client.sendMentioned(chatId, 'Hey @5511999999999!', ['5511999999999']);

Data Retrieval

javascript
const chats    = await client.getAllChats();
const contacts = await client.getAllContacts();
const unread   = await client.getUnreadMessages();
const messages = await client.getAllMessagesInChat(chatId);
const profile  = await client.getProfilePicFromServer(chatId);
const status   = await client.checkNumberStatus(chatId);
const blocked  = await client.getBlockList();

Group Management

…

Profile & Device

javascript
await client.setProfileStatus('Building something amazing ');
await client.setProfileName('Venom Bot');
await client.setProfilePic('./avatar.jpg');
await client.getHostDevice();
await client.getConnectionState();
await client.getBatteryLevel();
await client.isConnected();
await client.getWAVersion();

Chat Operations

javascript
await client.sendSeen(chatId);
await client.startTyping(chatId);
await client.deleteChat(chatId);
await client.clearChatMessages(chatId);
await client.archiveChat(chatId, true);
await client.pinChat(chatId, true);
await client.blockContact(chatId);
await client.unblockContact(chatId);
await client.sendMute(chatId, 30, 'minutes');

Events

Build reactive bots with powerful event listeners.

…

File Downloads

Download any media received — images, videos, audio, documents. Fast.

javascript
import * as fs from 'fs';
import * as mime from 'mime-types';

client.onMessage(async (message) => {
  if (message.isMedia || message.isMMS) {
    const buffer = await client.decryptFile(message);
    const fileName = `file.${mime.extension(message.mimetype)}`;
    fs.writeFileSync(fileName, buffer);
  }
});

Advanced Configuration

Full control over every aspect of the browser and session.

…
Session Status Reference
Status Description
isLogged Already authenticated
notLogged Awaiting QR scan
browserClose Browser closed
qrReadSuccess QR scanned successfully
qrReadFail QR scan failed
autocloseCalled Auto-close triggered
desconnectedMobile Phone disconnected
serverClose WebSocket closed
chatsAvailable Chat list loaded
deviceNotConnected Phone not connected
successChat Chat ready
waitForLogin Waiting for login
waitChat Loading chats

Session Resilience

Keep your bot running and handle disconnections gracefully.

javascript
client.onStateChange((state) => {
  if (state === 'CONFLICT') client.useHere();   // reclaim session
  if (state === 'UNPAIRED') console.log('Session expired');
});

// Graceful shutdown
process.on('SIGINT', () => client.close());

[!NOTE] Always call client.close() instead of killing the process — this ensures the session is saved properly.


Custom WhatsApp Web Version

javascript
create({
  session: 'custom-version',
  webVersion: '2.2402.5'  // pinned version
});

Available versions: wppconnect-team/wa-version


Building from Source

bash
# Clone
git clone https://github.com/orkestral/venom.git && cd venom

# Install dependencies
npm install

# Build individual modules
npm run build:wapi
npm run build:middleware
npm run build:jsQR
npm run build:venom

# Or build everything at once
npm run build

Documentation

The complete documentation is available at orkestral.github.io/venom.

Every method, every parameter, every edge case — fully documented.


Contributing

We love contributions. Open an issue, submit a PR, or help improve the docs.

For major changes, please open an issue first to discuss the approach.


Orkestral — by vynect
Silicon Valley, California

Issues· 62 open

View all issuesOpen on GitHub
  • #2848

    Erro ao iniciar o bot: Error no open browser....

    bugneeds triageUpdated Jul 2, 2025
  • #2849

    index.js code paragraphy for the one message funcion is not returning results, but onMessage seems to be working well.

    questionneeds triageUpdated Jul 2, 2025
  • #2852

    onAck Not Triggered

    questionneeds triageUpdated Jul 2, 2025
  • #2854

    venom-bot do not start and show QRcode

    questionneeds triageUpdated Jul 2, 2025
  • #2845

    S6STEME

    bugneeds triageUpdated May 10, 2025
  • #2843

    Get files from WhatsApp

    questionneeds triageUpdated Apr 14, 2025
  • #2830

    Create group function כשןך אם רקדפםמדק

    bugneeds triageUpdated Mar 20, 2025
  • #2842

    getAllChatsGroups() always return empty

    bugneeds triageUpdated Mar 9, 2025
  • #2785

    Venom: Send Button Option Not Working throwing errors

    bugneeds triageUpdated Feb 14, 2025
  • #2836

    Error: Requesting main frame too early!

    bugneeds triageUpdated Feb 11, 2025

> Tags

TypeScriptaiai-botbotbot-javascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言