npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@musteqeem/baileys

v1.0.5

Published

֎ XADON BAILEYS v7.1.0 PREMIUM - Next-generation WhatsApp Web API library. Engineered with enterprise-grade stability, critical newsletter media upload fixes, full interactive message protocol, native album support, and 40+ extended message types. Built f

Readme

Bismillah ar-Rahman ar-Rahim

@musteqeem/baileys

Engineered for Production. Optimized for AI. Trusted at Scale.


⚡ Why Enterprises Choose @musteqeem/baileys

This is not another fork. This is a production-hardened re-engineering of Baileys designed for developers building AI agents, customer support systems, and high-volume automation at scale.

Unlike legacy libraries, we fix what breaks in production.

Key Production Enhancements

  • ✅ Critical Newsletter Media Fix: Patched media upload pipeline. No more 400 errors on channels.
  • 🤖 Full Interactive Protocol: Native support for Buttons, Lists, CTA, and Flows. Ready for AI agents.
  • 📁 Album & Media Suite: Send/Receive albums, documents, audio, video, stickers with zero workarounds.
  • 🛡️ Enterprise Anti-Ban: Intelligent backoff, session rotation, and multi-device stability for 24/7 uptime.
  • ⚡ 40+ Extended Message Types: Full coverage of the latest WhatsApp Web payloads.
  • 🔄 Persistent Sessions: multi-file-auth-state for serverless, Docker, and PM2 deployments.

📦 Installation

npm i @musteqeem/baileys

or

yarn add @musteqeem/baileys

🚀 Quick Start: Production Bot Template

import makeWASocket, { useMultiFileAuthState, DisconnectReason, Browsers } from '@musteqeem/baileys'
import { Boom } from '@hapi/boom'

const startSock = async () => {
    const { state, saveCreds } = await useMultiFileAuthState('baileys_auth')

    const sock = makeWASocket({
        auth: state,
        browser: Browsers.macOS('Chrome'), // Improves anti-ban
        printQRInTerminal: true,
        markMessagesAsRead: false
    })

    sock.ev.on('creds.update', saveCreds)

    // Example: AI Agent Reply
    sock.ev.on('messages.upsert', async ({ messages }) => {
        const msg = messages[0]
        if (!msg.message || msg.key.fromMe) return

        const text = msg.message.conversation || msg.message.extendedTextMessage?.text
        if (!text) return

        // 1. Send to your AI: OpenAI, Gemini, Claude
        // const aiReply = await yourAI(text)

        // 2. Reply with Interactive Button
        await sock.sendMessage(msg.key.remoteJid!, {
            text: `AI Response: Hello!`,
            footer: "Powered by @musteqeem/baileys",
            buttons: [{ buttonId: 'menu', buttonText: { displayText: 'Menu' }, type: 1 }],
            headerType: 1
        })
    })

    sock.ev.on('connection.update', ({ connection, lastDisconnect }) => {
        if(connection === 'close') {
            const shouldReconnect = (lastDisconnect?.error as Boom)?.output?.statusCode!== DisconnectReason.loggedOut
            if(shouldReconnect) startSock()
        }
    })
}
startSock()

🧠 Example: Send Album

await sock.sendMessage(jid, {
    album: [
        { image: { url: 'img1.jpg' }, caption: '1' },
        { image: { url: 'img2.jpg' }, caption: '2' }
    ]
})

😃 Example: Send to Newsletter Channel

await sock.newsletterMetadata("jid", "description")
await sock.sendNewsletterMessage("newsletter_jid", { text: "New Update" })

📊 @musteqeem/baileys vs WhiskeySocket

| Feature | @musteqeem/baileys | WhiskeySocket | | :--- | :---: | :---: | | Newsletter Media Upload | ✅ Fixed & Stable | ❌ Broken | | Interactive Buttons/Lists | ✅ Full Native API | ⚠️ Partial | | Album Messages | ✅ First-class Support | ❌ Not Supported | | Anti-Ban & Reconnect | ✅ Enterprise Logic | ⚠️ Basic | | Node 20+ & ESM | ✅ Modern Stack | ⚠️ Legacy | | Active Maintenance | ✅ By Musteqeem | ⚠️ Sporadic |

🌐 Community

Join the professional developers building with us.


🌐 Other Premium Projects by Musteqeem AKA Future Scientist

If you build AI + Automation, these are for you:

| Project | Description | | :--- | :--- | | XADON-AI | WhatsApp Bot Framework V1Advanced Multi-Agent AI. Deploy GPT-5 powered WhatsApp AI employees with tool-use for group management and many more | | XADON_AI | Core XADON AI Engine V2Voice, Vision, RAG, and Memory for next-generation bots. Built for defense. Deploy on a node.js panel and run .menu to begin |

🤝 Contributing

We welcome PRs from professional developers. Please read our contributing guidelines before submitting.

Don't Forget to ✨ Star 🌟 and Fork this repo to support the project


⚠️ Responsible Use This library is for automation, customer support, and AI agents only. Please follow WhatsApp's Terms of Service and local laws. Do not use for spam, fraud, or harming others. "And cooperate in righteousness and piety" [Qur'an 5:2]


📄 License MIT © 2026 Musteqeem. MUSTEQEEM MD • Cybershield Squad alive