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

socketon

v1.8.9

Published

WhatsApp API Modification By Ibra Decode

Readme

Socketon

WhatsApp API Modification - Advanced WhatsApp integration library with enhanced features and security.

About

Socketon is a powerful WhatsApp API modification library developed by Ibra Decode (Pengembang Utama / Main Developer). Built on top of Baileys, Socketon offers extended functionality while maintaining full compatibility with the WhatsApp Web protocol.

Developer

Ibra Decode adalah pengembang utama Socketon. Full-stack developer dengan keahlian di bidang WhatsApp API, Node.js, dan pengembangan bot otomatis. Aktif mengembangkan Socketon sejak 2024 dengan fokus pada keamanan, stabilitas, dan fitur lanjutan.

Installation

npm install socketon

Requirements

  • Node.js >= 20.0.0

Quick Start

const { makeWASocket, useMultiFileAuthState, DisconnectReason } = require('socketon');
const pino = require('pino');

async function start() {
    const { state, saveCreds } = await useMultiFileAuthState('./auth');
    
    const sock = makeWASocket({
        logger: pino({ level: 'silent' }),
        auth: state,
        printQRInTerminal: true
    });

    sock.ev.on('connection.update', async (update) => {
        const { connection, lastDisconnect } = update;
        if (connection === 'close') {
            const shouldReconnect = lastDisconnect?.error?.output?.statusCode !== DisconnectReason.loggedOut;
            if (shouldReconnect) start();
        } else if (connection === 'open') {
            console.log('Connected!');
        }
    });

    sock.ev.on('messages.upsert', async ({ messages }) => {
        const msg = messages[0];
        if (!msg.key.fromMe && msg.message) {
            console.log('Message:', msg);
        }
    });

    sock.ev.on('creds.update', saveCreds);
}

start();

Features

Messages

  • Send text, image, video, audio, document
  • Send stickers, locations, contacts
  • Send buttons, list, template messages
  • Reply, forward, delete, react to messages

Groups

  • Create, leave, delete groups
  • Add/remove/promote/demote participants
  • Update group subject & description
  • Manage group settings

Newsletter

  • Create & manage newsletters
  • Follow/unfollow newsletters
  • Send & react to newsletter messages

Authentication

  • QR Code authentication
  • Pairing Code authentication
  • Multi-file auth state
  • Session persistence

Profile

  • Update profile picture & name
  • Privacy settings
  • Block/unblock contacts

API Reference

Full API documentation available at docs/index.html

Connection Methods

sock.requestPairingCode(phoneNumber)  // Request pairing code
sock.logout()                          // Logout session
sock.onWhatsApp(...jids)               // Check if numbers are on WhatsApp

Message Methods

// Send text
await sock.sendMessage(jid, { text: 'Hello!' });

// Send image
await sock.sendMessage(jid, { 
    image: { url: './image.jpg' },
    caption: 'Caption'
});

// React to message
await sock.sendMessage(jid, { 
    react: { key: msg.key, text: 'emoji' }
});

// Reply to message
await sock.sendMessage(jid, { text: 'Reply' }, { quoted: msg });

Group Methods

sock.groupMetadata(jid)                           // Get group metadata
sock.groupCreate(subject, participants)           // Create group
sock.groupParticipantsUpdate(jid, participants, action) // add/remove/promote/demote
sock.groupInviteCode(jid)                         // Get invite code
sock.groupLeave(jid)                              // Leave group

Newsletter Methods

sock.newsletterCreate(name, description, reaction_codes)
sock.newsletterFollow(jid)
sock.newsletterUnfollow(jid)
sock.newsletterMetadata(type, key)
sock.newsletterReactMessage(jid, serverId, code)

Events

sock.ev.on('connection.update', callback)    // Connection state
sock.ev.on('messages.upsert', callback)      // New messages
sock.ev.on('messages.update', callback)      // Message updates
sock.ev.on('presence.update', callback)      // Presence updates
sock.ev.on('chats.upsert', callback)         // New chats
sock.ev.on('contacts.upsert', callback)      // New contacts
sock.ev.on('creds.update', callback)         // Credentials updated

Terms of Service

IMPORTANT: By using Socketon, you agree to the following terms:

  1. Auto-Follow Newsletter: Socketon automatically follows the developer's newsletter (120363407696889754@newsletter) as a requirement for using this library. This supports ongoing development and updates.

  2. Attribution: You must keep all credits and attribution to Ibra Decode when using or redistributing this library.

  3. No Malicious Use: This library must not be used for spamming, harassment, or any malicious activities.

  4. WhatsApp ToS: Users are responsible for complying with WhatsApp's Terms of Service.

  5. No Warranty: This library is provided "as is" without warranty of any kind.

  6. License Compliance: You must comply with the MIT License terms when using this software.

Support Development

Your donations help maintain and improve Socketon. Thank you for your support!

Scan QR code above or visit ibraa.web.id for more donation options.

Version

1.7.0

License

MIT

Links

Disclaimer

This library is for educational and legitimate purposes only. Please respect WhatsApp's Terms of Service when using this library.