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

@himmelclouds/baileys

v0.0.1

Published

Lightweight full-featured typescript/javascript WhatsApp Web API

Readme

🚀 Baileys WhatsApp API - By RyzenOfc

GitHub stars GitHub license Node.js Contributors

Baileys WhatsApp API adalah library berbasis Node.js untuk berkomunikasi dengan WhatsApp Web tanpa perlu WebSocket tambahan.
Dikembangkan dengan performa tinggi untuk kebutuhan bot, otomatisasi pesan, dan integrasi aplikasi WhatsApp lainnya.

📌 Tentang Proyek Ini

Repositori ini dikembangkan dan dikelola oleh RyzenOfc bersama para kontributor open-source lainnya.
Dukungan dan kontribusi dari komunitas sangat diapresiasi! 💖


✨ Fitur Utama

Autentikasi tanpa QR menggunakan session authentication
Dukungan Multi-Device (MD) terbaru dari WhatsApp
Kirim & terima pesan dalam berbagai format
Mengelola grup (buat grup, tambahkan/kick anggota, atur deskripsi, dll.)
Integrasi event seperti masuk/keluar grup, pesan diterima, pesan terbaca
Mendukung TypeScript untuk pengembangan yang lebih aman


📦 Instalasi

Pastikan Node.js ≥ 14.0 sudah terpasang.
Kemudian jalankan perintah berikut di terminal:

npm install @ryzenofc/baileys

Atau dengan Yarn:

yarn add @ryzenofc/baileys

🚀 Penggunaan Dasar

const makeWASocket = require('@ryzenofc/baileys').default;

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

sock.ev.on('messages.upsert', async (m) => {
    const msg = m.messages[0];
    if (!msg.key.fromMe) {
        await sock.sendMessage(msg.key.remoteJid, { text: "Hello, I'm a bot 🤖!" });
    }
});

📜 Dokumentasi API

| Fitur | Deskripsi | |---------------------|----------| | sendMessage() | Mengirim pesan teks, gambar, video, dll. | | updateProfile() | Mengubah foto profil dan nama pengguna | | getChats() | Mendapatkan daftar chat pengguna | | groupParticipantsUpdate() | Menambahkan/menghapus anggota grup |

📖 Dokumentasi lengkap: Baileys API Docs


📩 Contoh Kode Tambahan

📢 Mengirim Pesan Toko

sock.sendMessage(msg.key.remoteJid, {
    text: "Isi Pesan",
    title: "Judul",
    subtitle: "Subjudul",
    footer: "Footer",
    viewOnce: true,
    shop: 3,
    id: "199872865193",
}, { quoted: m })

📊 Hasil Polling dari Newsletter

await sock.sendMessage(msg.key.remoteJid, {
    pollResult: {
        name: "Judul Polling",
        votes: [
            ["Opsi 1", 10], 
            ["Opsi 2", 10]
        ],
    }
}, { quoted: m })

🏷️ Mention di Status

await sock.StatusMentions({ text: "Halo!" }, [
    "[email protected]",
    "[email protected]",
])

🃏 Pesan dengan Kartu

await sock.sendMessage(msg.key.remoteJid, {
    text: "Halo!",
    footer: "Pesan Footer",
    cards: [
        {
            image: { url: 'https://example.jpg' }, 
            title: 'Judul Kartu',
            caption: 'Keterangan Kartu',
            footer: 'Footer Kartu',
            buttons: [
                { name: "quick_reply", buttonParamsJson: JSON.stringify({ display_text: "Tombol Cepat", id: "ID" }) },
                { name: "cta_url", buttonParamsJson: JSON.stringify({ display_text: "Buka Link", url: "https://www.example.com" }) }
            ]
        }
    ]
}, { quoted: m })

📷 Pesan Album

await sock.sendAlbumMessage(msg.key.remoteJid, [
    { image: { url: "https://example.jpg" }, caption: "Halo Dunia" },
    { video: { url: "https://example.mp4" }, caption: "Halo Dunia" }
], { quoted: m, delay: 2000 })

📌 Menyimpan & Menyematkan Pesan

await sock.sendMessage(msg.key.remoteJid, { keep: message.key, type: 1, time: 86400 })
await sock.sendMessage(msg.key.remoteJid, { pin: message.key, type: 1, time: 86400 })

📨 Pesan Undangan Grup

await sock.sendMessage(msg.key.remoteJid, { 
    groupInvite: { 
        subject: "Nama Grup",
        jid: "[email protected]",
        text: "Undangan Grup",
        inviteCode: "KODE",
        inviteExpiration: 86400 * 3,
    } 
}, { quoted: m })

🤝 Kontribusi

Kami menyambut kontribusi dari siapa saja! Jika ingin membantu:

  1. Fork repositori ini
  2. Buat branch baru
  3. Buat Pull Request (PR)

💡 Punya ide keren? Silakan buat Issue di repository ini.


👥 Kontributor

Terima kasih kepada semua yang telah berkontribusi! 🌟

💖 Nama Kamu Bisa Ada di Sini!


📬 Kontak

📩 Email: [email protected]
🌍 Website: Baileys API
🐦 Twitter: @ryzen_dev


🚀 Selamat ngoding & buat bot WhatsApp yang keren! 🎉