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

@phrolovaa/baileys

v0.0.8

Published

Enhanced Baileys v7 with fixed newsletter media upload, plus support for interactive messages, albums, and more message types.

Readme

✦ Phrolova Baileys ✦

Forked from @itsliaaa/baileys

npm version Node.js License Telegram GitHub

· · ────────────── · ·

A TypeScript/JavaScript WhatsApp Web API library built on WebSocket — lightweight, fast, and production-ready.

🍁 Powered by Noya Company 𖹭.ᐟ

· · ────────────── · ·


✦ Table of Contents


✦ What is Phrolova Baileys?

Phrolova Baileys is a WhatsApp Web API library built on WebSocket technology — meaning you can build bots, notification systems, or WhatsApp automations without ever launching a browser. Less RAM, less overhead, less headache.

Perfect if you want to:

﹒Build a full-featured WhatsApp bot ﹒Send automated messages at scale ﹒Integrate WhatsApp into your business systems ﹒Explore the WhatsApp API without dealing with Selenium or Puppeteer


✦ Features

· · ────────────── · ·

Messaging & Media

| Feature | Status | |---|---| | Send & receive text messages | Supported | | Send images, videos, audio, documents | Supported | | Message groups & personal chats | Supported | | Quote & forward messages | Supported | | Interactive messages with buttons | Supported | | Album messages (multiple images) | Supported | | Poll & event messages | Supported |

· · ────────────── · ·

Social & Contacts

| Feature | Status | |---|---| | Presence & typing indicators | Supported | | Contact management | Supported | | Message reactions | Supported | | Status updates | Supported |

· · ────────────── · ·

Technical & Security

| Feature | Status | |---|---| | Auto-reconnect + exponential backoff | Supported | | Session management & persistence | Supported | | Custom pairing code (PHROLOVA) | Supported | | Multi-device WhatsApp support | Supported | | Full bad MAC protection | Supported |


✦ Requirements

[!CAUTION] Read this before you install anything.

This library requires Node.js v20 or higher. If you're running anything below v20, the process will exit immediately with an error on startup. This is intentional — not a bug.

Check your version right now:

node --version

If the output is below v20.x.x, upgrade at nodejs.org before continuing.

· · ────────────── · ·

| Component | Minimum | Recommended | |---|---|---| | Node.js | v20.0.0 | v20 LTS or newer | | NPM | v8+ | Latest | | WhatsApp Account | Active | Dedicated number for the bot | | Internet Connection | Stable | 1 Mbps minimum |


✦ Installation

One command and you're in:

npm install @phrolovaa/baileys

Or with yarn:

yarn add @phrolovaa/baileys

[!NOTE] If you run into install errors, try deleting node_modules and package-lock.json, then run the install command again.


✦ Quick Start

A few lines is all it takes to get a WhatsApp bot running:

import makeWASocket from '@phrolovaa/baileys';

const sock = makeWASocket();

// Monitor connection status
sock.ev.on('connection.update', (update) => {
  const { connection, lastDisconnect } = update;
  if (connection === 'open') {
    console.log('Connected to WhatsApp');
  }
  if (connection === 'close') {
    console.log('Disconnected — attempting to reconnect...');
  }
});

// Auto-reply incoming messages
sock.ev.on('messages.upsert', async (m) => {
  const msg = m.messages[0];

  // Don't reply to your own messages
  if (!msg.key.fromMe) {
    await sock.sendMessage(msg.key.remoteJid, {
      text: 'Hello! Your message has been received.'
    });
  }
});

[!TIP] For production bots, always persist your session data to a file or database so you don't have to re-scan the QR Code every time the bot restarts. Use useSingleFileAuthState or a custom store implementation.


✦ Project Structure

phrolovaa-baileys/
·
├── lib/
│   ├── Defaults/           # Default connection & socket config
│   ├── Signal/             # Signal Protocol implementation (E2E encryption)
│   │   └── Group/          # Group-specific encryption
│   ├── Socket/             # Core WebSocket connection
│   │   ├── socket.js       # Main connection entry point
│   │   ├── messages-send.js
│   │   ├── messages-recv.js
│   │   ├── chats.js
│   │   ├── groups.js
│   │   ├── communities.js
│   │   ├── business.js
│   │   └── newsletter.js
│   ├── Store/              # In-memory data storage
│   ├── Types/              # TypeScript type definitions
│   └── Utils/              # Helpers & utilities
·
├── WAProto/                # WhatsApp Protobuf (communication protocol)
├── engine-requirements.js  # Node.js version validator
├── information.json        # Latest update info
└── LICENSE

✦ Comparison

How does Phrolova Baileys stack up?

| | Phrolova Baileys | Selenium / Puppeteer | WhatsApp Business API | |---|:---:|:---:|:---:| | No browser required | ✦ | ✗ | ✦ | | Free to use | ✦ | ✦ | ✗ paid | | Multi-device | ✦ | limited | ✦ | | Send media | ✦ | ✦ | ✦ | | Group features | ✦ | limited | ✗ | | RAM usage | low | high | low | | Setup complexity | easy | complex | moderate |


✦ Disclaimer

[!WARNING] Use responsibly.

This is an unofficial implementation of the WhatsApp Web API. Usage may violate WhatsApp's Terms of Service. Any risk of account bans is entirely on the user.

The developer is not responsible for any misuse of this library including spam, fraud, or illegal activity. Use it for legitimate personal or business purposes only.


✦ Contact & Support

Found a bug? Have a feature request? Just want to say hi?

· · ────────────── · ·

| Platform | Link | |---|---| | Telegram | @noya4u_27 | | GitHub | @malfurra | | Other socials | @malfurra |


✦ License

Released under the MIT License — free to use, modify, and distribute. See LICENSE for full details.


· · ────────────── · ·

🍁 Powered by Noya Company 𖹭.ᐟ

· · ────────────── · ·

Last updated: April 21, 2026