basedIntroduction & Features

Introduction & Features

A high-performance WhatsApp Web API library with LID/JID support

based (@realvare/baileys) is a modern, TypeScript-first WhatsApp Web API library built on top of WhiskeySockets/Baileys with specific improvements for LID/JID mapping performance anti-ban. It offers an intuitive API to interact with WhatsApp Web and supports multi-device, E2E Signal encryption, and modern TypeScript.

🔄 Core Features💬 Messages🛠️ Developer⚡ Performance
• Intelligent LID/JID mapping
• Multi-device support
• E2E Signal encryption
• Modern TypeScript
• Text, media, interactive
• Buttons, lists, albums
• Polls, reactions
• Advanced templates
• Real-time events
• Full TypeScript
• Extensive documentation
• Extensible APIs
• Intelligent reconnection
• Advanced TTL cache
• Performance monitoring

💡 Events behavior

All emitted events (e.g. messages.upsert, messages.update, group-participants.update) expose standard JIDs in msg.key.remoteJid and msg.key.participant whenever possible. When WhatsApp provides LIDs, the original values are preserved in msg.key.remoteLid and msg.key.participantLid.