
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
Enterprise-grade WhatsApp Web Baileys library and multi-bot runner supervisor with session crash guard.
High-performance, resilient WhatsApp Multi-Device engine and process supervisor for Node.js. Hand-crafted and maintained by charape.
charape is built for bot developers who require absolute stability in long-running production environments, such as VPS instances and Pterodactyl panels.
@adiwajshing/baileys (arsitektur klasik: useSingleFileAuthState, makeWALegacySocket, isJidUser, STORIES_JID, default function exports) maupun @whiskeysockets/baileys (arsitektur modern).groupStatusMessageV2), sinkronisasi messageSecret 32-byte tanpa corrupt key, serta banner dan anotasi "Lihat saluran" pada video, gambar, dan dokumen..tmp -> rename) dengan mutex lock, mencegah korupsi file creds.json berukuran 0-byte akibat crash tiba-tiba, Out of Memory (OOM), atau restart panel paksa.cleanAuthSession untuk memangkas ribuan file sementara (pre-key-*, app-state-sync-*) yang kerap menghabiskan inode/disk server (ENOSPC), dengan proteksi mutlak pada creds.json.charape untuk menjalankan bot dengan auto-restart cerdas (exponential backoff) dan graceful shutdown.*.whatsapp.net).npm install charape
@adiwajshing/baileys (Tanpa Ubah Script Bot)Jika script bot Anda menggunakan tipe @adiwajshing/baileys, cukup arahkan di package.json:
{
"dependencies": {
"@adiwajshing/baileys": "npm:charape@latest"
}
}
Atau jika menggunakan tarball offline:
{
"dependencies": {
"@adiwajshing/baileys": "file:./charape-1.0.0.tgz"
}
}
@whiskeysockets/baileys{
"dependencies": {
"@whiskeysockets/baileys": "npm:charape@latest"
}
}
Kemudian jalankan:
npm install
Seluruh import (@adiwajshing/baileys maupun @whiskeysockets/baileys) yang ada pada bot Anda akan otomatis dialihkan ke engine charape tanpa error missing export maupun undefined property!
import makeWASocket, {
useMultiFileAuthState,
DisconnectReason,
Browsers
} from 'charape';
async function startBot() {
const { state, saveCreds } = await useMultiFileAuthState('./session');
const sock = makeWASocket({
auth: state,
printQRInTerminal: true,
browser: Browsers.charape('Chrome'),
syncFullHistory: false
});
sock.ev.on('creds.update', saveCreds);
sock.ev.on('connection.update', (update) => {
const { connection, lastDisconnect } = update;
if (connection === 'close') {
const shouldReconnect = lastDisconnect?.error?.output?.statusCode !== DisconnectReason.loggedOut;
console.log('Koneksi terputus. Mencoba menghubungkan kembali:', shouldReconnect);
if (shouldReconnect) {
startBot();
}
} else if (connection === 'open') {
console.log('Koneksi WhatsApp berhasil dibuka.');
}
});
sock.ev.on('messages.upsert', async ({ messages, type }) => {
if (type !== 'notify') return;
for (const msg of messages) {
if (!msg.message || msg.key.fromMe) continue;
const text = msg.message.conversation || msg.message.extendedTextMessage?.text || '';
const sender = msg.key.remoteJid;
if (text === '!ping') {
await sock.sendMessage(sender, { text: 'pong!' }, { quoted: msg });
}
}
});
}
startBot();
Untuk mencegah penumpukan file cache pada penyimpanan server:
import { cleanAuthSession } from 'charape';
// Bersihkan file pre-key dan sync tanpa menyentuh creds.json
const stats = await cleanAuthSession('./session', {
removePreKeys: true,
removeAppState: true,
removeSenderKeys: false
});
console.log(`Pembersihan selesai: ${stats.deletedFiles} file dihapus (${(stats.bytesFreed / 1024).toFixed(1)} KB dibebaskan)`);
npx charape)Package ini menyertakan CLI mandiri:
npx charape start [file.js]
Jika file tidak ditentukan, CLI akan otomatis mencari index.js, main.js, atau bot.js. Supervisor menangani sinyal SIGINT/SIGTERM untuk mematikan proses anak dengan aman.
npx charape clean ./session
npx charape check
Didistribusikan di bawah lisensi MIT. Hak cipta milik charape dan para kontributor.
FAQs
Enterprise-grade WhatsApp Web Baileys library and multi-bot runner supervisor with session crash guard.
We found that charape demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.