Scan your whole stack
From OX Research Newsroom
Are you using xyooly?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.4.0
xyooly was last scanned on 1 Dec 2026 at version 3.4.0. Risk score 90 of 100 (critical). High-severity rules fired and the AI review flagged it as malicious.
| Version | Published | Status |
|---|---|---|
| 3.4.0 LATEST | 1 Dec 2026 | 2 rules fired |
| 0.0.0-stage | 1 Dec 2026 | Not shown |
Findings for v3.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.
HIGHThe score describes 3.4.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Build modifikasi dari WhiskeySockets/Baileys dengan dukungan native untuk pesan interaktif, album, AI rich response, newsletter, status mention, dan berbagai utilitas tambahan.
Package ini adalah distribusi/build repo untuk @kanaraa/baileys.
Berisi file runtime yang sudah dikompilasi di lib/ dan protobuf di WAProto/, dirancang untuk digunakan langsung dari npm.
| Fitur | Deskripsi | Status |
|---|---|---|
| Pesan Interaktif | Flow button native, list/select menu, carousel | Ya |
| Album Messages | Multi-image/video album dengan metadata | Ya |
| AI Rich Response | sendTable, sendList, sendCodeBlock, sendRichMessage |
Ya |
| Unified Response V2 | sendTableV2, sendCodeBlockV2, sendLinkV2 |
Ya |
| Link Messages | Link inline dengan kutipan dan verifikasi | Ya |
| Payment Messages | Pesan pembayaran, split payment, dengan catatan/stiker | Ya |
| Produk & Katalog | Pesan produk bisnis, katalog lengkap | Ya |
| Event & Poll | Builder pesan event dan hasil polling | Ya |
| Newsletter Extras | Follow massal, metadata, admin utilities | Ya |
| Komunitas & Grup | CRUD komunitas, undangan, persetujuan | Ya |
| Status Mention | sendStatusMention() untuk mention di status |
Ya |
| LID & Session | Pemetaan LID↔PN, migrasi sesi | Ya |
| TypeScript | File .d.ts tersedia untuk semua API |
Ya |
>= 20.0.0"type": "module" di package.json)pino, qrcode-terminal, sharp, jimpPenting:
@kanaraa/baileyshanya mendukung ESM. Proyek CommonJS perlu migrasi atau dynamic import wrapper.
| Path | Kegunaan |
|---|---|
lib/ |
Runtime utama, tipe, socket layer, utilitas |
WAProto/ |
Protobuf runtime yang sudah digenerate |
package.json |
Metadata package |
npm install @kanaraa/baileys
Package pendamping yang disarankan:
npm install pino qrcode-terminal
Jika proyekmu menggunakan fork dari @whiskeysockets/baileys atau @adiwajshing/baileys, tambahkan alias berikut ke package.json:
Fork @whiskeysockets/baileys
{
"dependencies": {
"@whiskeysockets/baileys": "npm:@kanaraa/baileys"
}
}
Fork @adiwajshing/baileys
{
"dependencies": {
"@adiwajshing/baileys": "npm:@kanaraa/baileys"
}
}
Lalu jalankan:
npm install
npm install kanaraa-bail@npm:@kanaraa/baileys
Tambahkan ke package.json:
{
"dependencies": {
"baileys": "npm:@kanaraa/baileys@latest"
}
}
Lalu jalankan:
npm install
mkdir bot-ku && cd bot-ku
npm init -y
Pastikan package.json memiliki "type": "module":
{
"name": "bot-ku",
"type": "module",
"dependencies": {
"baileys": "npm:@kanaraa/baileys@latest"
}
}
npm install @kanaraa/baileys pino qrcode-terminal
index.jsimport makeWASocket, {
useMultiFileAuthState,
DisconnectReason,
Browsers,
} from '@kanaraa/baileys'
import pino from 'pino'
import qrcode from 'qrcode-terminal'
const logger = pino({ level: 'silent' })
async function startBot() {
const { state, saveCreds } = await useMultiFileAuthState('./session')
const sock = makeWASocket({
auth: state,
logger,
browser: Browsers.ubuntu('Chrome'),
syncFullHistory: false,
})
sock.ev.on('creds.update', saveCreds)
sock.ev.on('connection.update', ({ connection, lastDisconnect, qr }) => {
if (qr) qrcode.generate(qr, { small: true })
if (connection === 'close') {
const shouldReconnect =
lastDisconnect?.error?.output?.statusCode !== DisconnectReason.loggedOut
if (shouldReconnect) startBot()
}
if (connection === 'open') console.log('Terhubung!')
})
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0]
if (!msg?.message || msg.key.fromMe) return
const text =
msg.message.conversation || msg.message.extendedTextMessage?.text || ''
if (text === '.ping') {
await sock.sendMessage(msg.key.remoteJid, { text: 'Pong!' })
}
})
}
startBot()
node index.js
Scan QR code, tunggu hingga socket mencapai connection: "open", lalu kirim .ping untuk tes.
const sock = makeWASocket({
auth: state,
logger,
browser: Browsers.windows('Chrome'),
})
sock.ev.on('connection.update', async ({ connection }) => {
if (connection === 'connecting') {
const code = await sock.requestPairingCode('628xxxxxxxxx')
console.log('Pairing code:', code)
}
})
Saat menerima pesan via messages.upsert, gunakan getContentType dan normalizeMessageContent untuk mendeteksi tipe dan isi pesan.
import {
getContentType,
normalizeMessageContent,
downloadMediaMessage,
} from '@kanaraa/baileys'
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0]
if (!msg?.message || msg.key.fromMe) return
const jid = msg.key.remoteJid
const content = normalizeMessageContent(msg.message) // handle viewOnce, ephemeral, dll
const type = getContentType(content)
// Ambil teks dari tipe apapun
const text =
content?.conversation ||
content?.extendedTextMessage?.text ||
content?.imageMessage?.caption ||
content?.videoMessage?.caption ||
content?.documentMessage?.caption ||
''
})
if (type === 'conversation' || type === 'extendedTextMessage') {
const text = content?.conversation || content?.extendedTextMessage?.text || ''
console.log('Teks:', text)
}
if (type === 'imageMessage') {
const caption = content.imageMessage.caption || ''
const mimetype = content.imageMessage.mimetype // 'image/jpeg'
console.log('Gambar diterima, caption:', caption)
}
if (type === 'videoMessage') {
const caption = content.videoMessage.caption || ''
const seconds = content.videoMessage.seconds // durasi
console.log('Video diterima, caption:', caption)
}
if (type === 'audioMessage') {
const isVoiceNote = content.audioMessage.ptt === true
const seconds = content.audioMessage.seconds
console.log(isVoiceNote ? 'Voice note' : 'Audio', 'durasi:', seconds, 'detik')
}
if (type === 'documentMessage') {
const fileName = content.documentMessage.fileName || 'unknown'
const mimetype = content.documentMessage.mimetype
const caption = content.documentMessage.caption || ''
console.log('Dokumen:', fileName, '|', mimetype)
}
if (type === 'stickerMessage') {
const isAnimated = content.stickerMessage.isAnimated
const isLottie = content.stickerMessage.isLottie
console.log('Stiker diterima, animasi:', isAnimated)
}
if (type === 'locationMessage') {
const { degreesLatitude, degreesLongitude, name, address } = content.locationMessage
console.log(`Lokasi: ${name} — ${degreesLatitude}, ${degreesLongitude}`)
}
if (type === 'contactMessage') {
const { displayName, vcard } = content.contactMessage
console.log('Kontak:', displayName)
console.log('vCard:', vcard)
}
if (
type === 'pollCreationMessage' ||
type === 'pollCreationMessageV2' ||
type === 'pollCreationMessageV3'
) {
const poll = content[type]
const name = poll.name
const options = poll.options.map(o => o.optionName)
console.log('Poll:', name, '| Opsi:', options)
}
// Saat user memilih dari Buttons Message
if (type === 'buttonsResponseMessage') {
const selectedId = content.buttonsResponseMessage.selectedButtonId
const selectedText = content.buttonsResponseMessage.selectedDisplayText
console.log(`Tombol dipilih: [${selectedId}] ${selectedText}`)
}
// Saat user memilih dari List / Select Menu
if (type === 'listResponseMessage') {
const rowId = content.listResponseMessage.singleSelectReply.selectedRowId
const title = content.listResponseMessage.title
console.log(`List dipilih: [${rowId}] ${title}`)
}
// Saat user memilih dari Template Buttons
if (type === 'templateButtonReplyMessage') {
const selectedId = content.templateButtonReplyMessage.selectedId
const selectedText = content.templateButtonReplyMessage.selectedDisplayText
console.log(`Template dipilih: [${selectedId}] ${selectedText}`)
}
// Saat user memilih dari Interactive / Flow Buttons (termasuk nativeFlowMessage)
if (type === 'interactiveResponseMessage') {
const raw = content.interactiveResponseMessage?.nativeFlowResponseMessage?.paramsJson
const parsed = raw ? JSON.parse(raw) : {}
const selectedId = parsed.id
console.log('Interaktif dipilih:', parsed)
}
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0]
if (!msg?.message) return
const content = normalizeMessageContent(msg.message)
// contextInfo ada di dalam tipe pesan terkait
const contextInfo =
content?.extendedTextMessage?.contextInfo ||
content?.imageMessage?.contextInfo ||
content?.videoMessage?.contextInfo ||
null
if (contextInfo?.quotedMessage) {
const quotedContent = normalizeMessageContent(contextInfo.quotedMessage)
const quotedType = getContentType(quotedContent)
const quotedText =
quotedContent?.conversation ||
quotedContent?.extendedTextMessage?.text ||
quotedContent?.imageMessage?.caption || ''
console.log(`Pesan ini reply ke [${quotedType}]: ${quotedText}`)
}
})
Bisa digunakan untuk imageMessage, videoMessage, audioMessage, stickerMessage, documentMessage.
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0]
if (!msg?.message) return
const buffer = await downloadMediaMessage(
msg,
'buffer', // atau 'stream'
{},
{
logger,
reuploadRequest: sock.updateMediaMessage,
}
)
console.log('Media didownload, ukuran:', buffer.length, 'bytes')
})
const sock = makeWASocket({
auth: state,
logger,
browser: Browsers.ubuntu('Chrome'),
connectTimeoutMs: 20_000,
defaultQueryTimeoutMs: 60_000,
syncFullHistory: false,
})
// Teks
await sock.sendMessage(jid, { text: 'Halo!' })
// Gambar
await sock.sendMessage(jid, {
image: { url: './foto.jpg' },
caption: 'Sebuah foto',
})
// Video
await sock.sendMessage(jid, {
video: { url: './video.mp4' },
caption: 'Sebuah video',
})
// Audio / Voice Note
await sock.sendMessage(jid, {
audio: { url: './audio.ogg' },
mimetype: 'audio/ogg; codecs=opus',
ptt: true,
})
// Stiker
await sock.sendMessage(jid, {
sticker: { url: './stiker.webp' },
})
// Dokumen
await sock.sendMessage(jid, {
document: { url: './file.pdf' },
fileName: 'dokumen.pdf',
mimetype: 'application/pdf',
})
// Reaksi
await sock.sendMessage(jid, {
react: { key: msg.key, text: '👍' },
})
// Polling
await sock.sendMessage(jid, {
poll: {
name: 'Vote!',
values: ['Opsi A', 'Opsi B', 'Opsi C'],
selectableCount: 1,
},
})
// Hapus pesan
await sock.sendMessage(jid, { delete: msg.key })
// Edit pesan
await sock.sendMessage(jid, {
text: 'Teks yang sudah diedit',
edit: msg.key,
})
Kirim koleksi stiker dalam satu pack — bisa dari URL, buffer, atau file lokal.
// Dari URL
await sock.sendMessage(jid, {
stickerPackMessage: {
name: 'Pack Keren',
publisher: 'kanaraa',
stickers: [
{ url: 'https://example.com/stiker1.webp', emojis: ['😂'] },
{ url: 'https://example.com/stiker2.webp', emojis: ['🔥'] },
{ url: 'https://example.com/stiker3.gif', emojis: ['✨'], isAnimated: true },
],
},
})
// Dari Buffer
import { readFile } from 'fs/promises'
const buf1 = await readFile('./stiker1.webp')
const buf2 = await readFile('./stiker2.webp')
await sock.sendMessage(jid, {
stickerPackMessage: {
name: 'Pack Lokal',
publisher: 'Bot Ku',
trayIcon: './tray.png', // opsional, ikon kecil pack (96x96)
stickers: [
{ buffer: buf1, emojis: ['😎'] },
{ buffer: buf2, emojis: ['💯'], isAnimated: false },
],
},
})
Kirim video berbentuk lingkaran seperti video note Telegram.
await sock.sendMessage(jid, {
video: { url: './video.mp4' },
ptv: true,
})
// Bagikan nomor telepon kamu ke lawan chat
await sock.sendMessage(jid, { sharePhoneNumber: true })
// Minta nomor telepon lawan chat
await sock.sendMessage(jid, { requestPhoneNumber: true })
await sock.sendMessage(jid, {
keep: {
key: msg.key, // key pesan yang ingin disimpan
type: 1, // 1 = simpan, 2 = hapus dari simpan
},
})
// Pin pesan selama 24 jam (86400 detik)
await sock.sendMessage(jid, {
pin: msg.key,
type: 1, // 1 = pin, 2 = unpin
time: 86400, // durasi pin dalam detik (untuk pin)
})
await sock.sendMessage(jid, {
limitSharing: true, // true = batasi, false = lepas batasan
})
await sock.sendMessage(jid, {
call: {
name: 'Meeting Mingguan',
time: Date.now() + 3600_000, // 1 jam dari sekarang (ms)
type: 1, // 1 = audio, 2 = video
},
})
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.