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

@thehackingguard/mahiru-baileys

v1.0.2

Published

Custom Baileys WhatsApp API

Readme

🛡️✨ @thehackingguard/mahiru-baileys ✨🛡️

Baileys-based WhatsApp library — refined DX, and extra features, (2026 Edition).


✨ What is this?

mahiru-baileys is a fork-style distribution built on top of Baileys (WhiskeySockets), focused on:

  • cleaner developer experience (DX)
  • additional message features (album, buttons, polls, etc.)
  • newsletter/channel helpers
  • pairing-code helpers
  • small quality-of-life improvements

Built on top of WhiskeySockets/Baileys. Core protocol logic credits go to the original Baileys maintainers.


📦 Install

Normal install

npm i @thehackingguard/mahiru-baileys

Use as a drop-in replacement (alias)

Replace the Baileys dependency with this package:

For @whiskeysockets/baileys:

{
  "dependencies": {
    "@whiskeysockets/baileys": "npm:@thehackingguard/mahiru-baileys"
  }
}

Terminal alias install:

npm i @whiskeysockets/baileys@npm:@thehackingguard/mahiru-baileys

⭐ Feature highlights

| Feature | Notes | |---|---| | 📣 Newsletter/Channel helpers | create/update/react & utilities | | 🖼️ Album messages | send multiple media as an album | | 🖱️ Interactive messages | buttons & quick replies | | 👤 LID addressing | works with @lid flow | | 🔐 Pairing code | custom alphanumeric pairing codes | | 📷 HD profile pic upload | upload full-size pfp (no crop) | | 🧰 DX tweaks | reduced log noise & cleaner output |


🔐 Pairing code

Default pairing key in this build: SHINNAMD
You can override it by passing your own key.

const code = await sock.requestPairingCode("62xxxxxxxxxx", "SHINNAMD")
console.log("Pairing Code:", code)

The console banner printed by the library also mentions the current default pairing key.


📬 Newsletter control

// Create a newsletter
await sock.newsletterCreate("TheHackingGuard Updates")

// Update description
await sock.newsletterUpdateDescription(
  "mahirubaileys@newsletter",
  "Whats Upp"
)

// React to a channel message
await sock.newsletterReactMessage(
  "mahirubaileys@newsletter",
  "175",
  "🔥"
)

🖼️ Send album (grouped media)

const media = [
  { image: { url: "https://example.com/pic1.jpg" } },
  { video: { url: "https://example.com/clip.mp4" } }
]

await sock.sendMessage(id, { album: media, caption: "Memories 💫" })

🧩 Notes & configuration

If you enable “auto-follow newsletter on connect” in your build, keep it pointing to your own newsletter JID and document it clearly for users.


📄 License

This package is released under the MIT License.

  • See the local file: LICENSE
  • Baileys (WhiskeySockets) is also MIT-licensed, and this distribution keeps the original license notice.

You may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, provided that the copyright notice and permission notice are included in all copies or substantial portions of the Software.


🐞 Bug report / contact


🙌 Credits

  • WhiskeySockets/Baileys — original core
  • @thehackingguard — maintenance & distribution of this fork package