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

acc-baileys

v7.0.0

Published

Acc modified Baileys WhatsApp API for custom bots and personal projects

Readme

Atex Ovi Logo

Custom implementation of the official Baileys WhatsApp Web API, optimized and patched for personal projects and private bot frameworks.


Table of Contents

Demo / Screenshot

Features & Supported UI Types

Atexovi-Baileys supports a variety of interactive WhatsApp message types and core features optimized for multi-device bots:

| Feature / UI Type | Description | |----------------------------|------------------------------------------------| | List Button Menus | Single select menus for users to choose one option. | | Quick Reply Buttons | Simple tap buttons for quick responses. | | CTA URL Buttons | Opens external links in browser. | | CTA Call Buttons | Directly initiate a call to a phone number. | | Copy Buttons | Copies a pre-defined text or URL to clipboard. | | Button Combinations | Mix multiple button types in a single message. | | Multi-Device Support | Works seamlessly with WhatsApp Multi-Device API. | | Encrypted Messaging | Uses libsignal from Meta for secure communication. | | Optimized Media Handling | Efficient media downloading and decoding. | | Custom Patches & Fixes | Improved connection stability and bug fixes. |

[!NOTE] All other APIs and core features follow Baileys official

Installation

From NPM (Recommended)

npm install atexovi-baileys

From GitHub (Development / Latest Commit)

npm install github:atex-ovi/atexovi-baileys

[!TIP] Use GitHub installation if you want the latest commit that may not yet be published on NPM.

Module Import and Export

1. ESM (ECMAScript Module)

If your package.json uses "type": "module":

Import:

import { sendMessage, someFunction } from 'atexovi-baileys';

Export:

export function someFunction() {
  // your code here
}

2. CJS (CommonJS)

If you are using CommonJS (no "type" or "type": "commonjs" in your package.json):

Import:

const { sendMessage, someFunction } = require('atexovi-baileys');

Export:

module.exports = {
  // your code here
};

Example Usage (Interactive Message Button)

[!NOTE] All interactive button examples in this README use ESM syntax, so you can just do:

import { sendMessage } from 'atexovi-baileys';

1. List Button

await sock.sendMessage(jid, {
  text: 'Choose an option from the list:',
  title: 'List Menu',
  subtitle: 'Select one',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'single_select',
      buttonParamsJson: JSON.stringify({
        title: 'Select Option',
        sections: [
          {
            title: 'Main Options',
            highlight_label: 'Recommended',
            rows: [
              { header: 'Header 1', title: 'Option 1', description: 'Description 1', id: 'id1' },
              { header: 'Header 2', title: 'Option 2', description: 'Description 2', id: 'id2' }
            ]
          }
        ]
      })
    }
  ]
});

2. Call Button

await sock.sendMessage(jid, {
  text: 'Need help? Call us!',
  title: 'Support',
  subtitle: 'We are available',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'cta_call',
      buttonParamsJson: JSON.stringify({
        display_text: 'Call Now',
        phone_number: '+6281234567890'
      })
    }
  ]
});

3. URL Button

await sock.sendMessage(jid, {
  text: 'Check out our GitHub page!',
  title: 'GitHub',
  subtitle: 'Atex Ovi Repository',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'cta_url',
      buttonParamsJson: JSON.stringify({
        display_text: 'Visit GitHub',
        url: 'https://github.com/atex-ovi',
        merchant_url: 'https://github.com/atex-ovi'
      })
    }
  ]
});

4. Quick Reply Button

await sock.sendMessage(jid, {
  text: 'Choose quickly!',
  title: 'Quick Reply',
  subtitle: 'Tap one button',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'quick_reply',
      buttonParamsJson: JSON.stringify({
        display_text: 'Click Me!',
        id: 'quick_id'
      })
    }
  ]
});

5. Copy Button

await sock.sendMessage(jid, {
  text: 'Copy this link:',
  title: 'Copy Example',
  subtitle: 'Click the button to copy',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'cta_copy',
      buttonParamsJson: JSON.stringify({
        display_text: 'Copy Link',
        copy_code: 'https://github.com/atex-ovi'
      })
    }
  ]
});

6. Combination All Button

await sock.sendMessage(jid, {
  text: 'This is an interactive message!',
  title: 'Hello!',
  subtitle: 'Subtitle here',
  footer: 'Sent by Atex Ovi',
  interactiveButtons: [
    {
      name: 'single_select',
      buttonParamsJson: JSON.stringify({
        title: 'Choose an Option',
        sections: [
          {
            title: 'Main Options',
            highlight_label: 'Recommended',
            rows: [
              { header: 'Header 1', title: 'Option 1', description: 'Description 1', id: 'id1' },
              { header: 'Header 2', title: 'Option 2', description: 'Description 2', id: 'id2' }
            ]
          }
        ]
      })
    },

    {
      name: 'cta_call',
      buttonParamsJson: JSON.stringify({
        display_text: 'Call Me',
        phone_number: '+6281234567890'
      })
    },

    {
      name: 'cta_url',
      buttonParamsJson: JSON.stringify({
        display_text: 'Visit GitHub',
        url: 'https://github.com/atex-ovi',
        merchant_url: 'https://github.com/atex-ovi'
      })
    },

    {
      name: 'quick_reply',
      buttonParamsJson: JSON.stringify({
        display_text: 'Click Me!',
        id: 'quick_id'
      })
    },
    
    {
      name: 'cta_copy',
      buttonParamsJson: JSON.stringify({
        display_text: 'Copy Link',
        copy_code: 'https://github.com/atex-ovi'
      })
    }
  ]
});

Disclaimer

[!CAUTION]

  • This is a modified version of the official Baileys WhatsApp Web API for personal projects and private bot frameworks.
  • Please respect WhatsApp's terms of service.
  • All core APIs and features remain based on Baileys official; this modification does not bypass or alter WhatsApp restrictions.
  • Use responsibly and at your own risk.

Documentation

For full documentation, please refer to Baileys official GitHub

Requirements

  • 🟢 Node.js >= 20
  • Supports multi-device WhatsApp
  • Dependencies installed via npm install

Support

If you find this project useful, consider supporting the development:

Buy Me A Coffee

License

MIT