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

shileys

v1.0.3

Published

A WebSockets library for interacting with WhatsApp Web

Readme


✨ Fokus Mod

Shileys tetap menjaga bentuk API Baileys, tapi menambah fitur yang enak dipakai buat bot publik:

  • 🔘 interactiveButtons untuk native-flow button.
  • 🧭 Helper LID/JID: lidToJid, jidToLid, normalizeMessageLidToJid, normalizeContactLidToJid.
  • 🧼 Tidak ada watermark, nama bot, footer, atau branding paksa di pesan runtime.
  • 🧩 CLI kecil shileys buat info package.
  • 🛠️ TypeScript-ready dan tetap kompatibel dengan flow Baileys.

Shileys adalah fork publik dari WhiskeySockets/Baileys. Gunakan dengan tanggung jawab dan ikuti Terms of Service WhatsApp.

📦 Install

npm install github:Shikytemo/shileys

atau:

yarn add github:Shikytemo/shileys

🚀 Basic Usage

import makeWASocket, { quickReplyButton, urlButton } from 'shileys'

const sock = makeWASocket({
  auth,
  printQRInTerminal: true
})

🔘 Native-Flow Button

Semua teks bisa kamu custom sendiri dari bot kamu.

await sock.sendMessage(jid, {
  text: 'Pilih fitur yang tersedia.',
  title: 'Bot Menu',
  footer: 'Powered by your bot',
  interactiveButtons: [
    quickReplyButton('Ping', '.ping'),
    urlButton('GitHub', 'https://github.com/Shikytemo/shileys')
  ]
})

Button yang biasa dipakai:

| Button | Fungsi | | --- | --- | | quick_reply | Balasan cepat ke bot | | single_select | List/pilihan menu | | cta_url | Buka link | | cta_copy | Copy teks/kode | | cta_call | Tombol telepon |

Helper yang tersedia:

quickReplyButton('Ping', '.ping')
singleSelectButton('Buka Menu', sections)
urlButton('GitHub', 'https://github.com/Shikytemo/shileys')
copyButton('Copy Code', 'DIANABOT')
callButton('Call Owner', '628xxxx')

sock.sendMessage() otomatis menambahkan native-flow relay node yang dibutuhkan WhatsApp, jadi aplikasi tidak perlu memanggil relayMessage() manual.

🧭 LID ke JID

Kalau WhatsApp ngirim chat sebagai @lid, Shileys menyediakan helper supaya module bot lebih gampang dipakai.

const replyJid = await sock.lidToJid(message.key.remoteJid)
const normalized = await sock.normalizeMessageLidToJid(message)

Contoh pakai di handler:

const msg = await sock.normalizeMessageLidToJid(rawMessage)
const jid = msg.key.remoteJid

await sock.sendMessage(jid, { text: 'Ready.' })

🧪 CLI

shileys
shileys --version
shileys --plain
shileys --json

📝 Catatan

  • Shileys tidak berafiliasi dengan WhatsApp.
  • Fitur native-flow bisa berbeda hasilnya tergantung client, akun, dan tipe chat.
  • Untuk dokumentasi API dasar, lihat upstream Baileys.

🔗 Links

  • Shileys: https://github.com/Shikytemo/shileys
  • Upstream Baileys: https://github.com/WhiskeySockets/Baileys
  • Baileys Wiki: https://baileys.wiki

📄 License

MIT. Credit untuk maintainers Baileys tetap milik masing-masing maintainers.