Skip to content

Latest commit

ย 

History

402 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Typing SVG

A silent, high-performance watcher for WhatsApp โ€” remembers deleted/edited messages, peeks at view-once media, lurks on status updates, schedules posts, downloads videos, music, and image carousels, and manages groups effortlessly.

Built on Baileys v7 with full LID-aware JID resolution and integrated @postfetch/core + yt-dlp media extractors.


โœจ Features

Module What it does
๐Ÿ‘ป Ghost Anti-delete, anti-edit, & secret edit tracking. Logs deleted/edited messages with media back to owner.
๐Ÿ‘๏ธ Peek Reveals view-once images, videos, audio, with auto-peek and quoted message detection.
๐ŸŒ’ Lurk Auto-view statuses, auto-react with custom/random emojis, silent download to owner DM.
๐Ÿ“… Schedule Send any message or schedule group opening/closing for a future time.
โฌ‡๏ธ Media Downloader Integrated @postfetch/core + yt-dlp + ytdlp-nodejs engine (.dl, .play, .ytv, .video, .ytdl, .mp3, .pdl, .pdlzip) for YouTube video/audio (up to 400MB cap, SD 360p/480p WhatsApp playable format), audio extraction, and image carousels (Instagram /p/, TikTok /photo/, Pinterest, Twitter, Facebook).
๐Ÿ“ฆ File & Social Downloader GitHub repo downloader (.gitdl), MediaFire downloader (.mfdl), social profile search & media downloading (.ig, .tiktok, .fb), song downloader (.song, .play).
๐Ÿ“š Media & Entertainment Verified book search & download (Gutenberg/Archive.org), stock image search (.img), Gemini AI text assistant (.gemini), AI photo generator (.photo), 54 Ephoto360 textmaker effects (.textmaker), song info, lyrics, movie search, PowerPoint presentation generator (.ppt), couple profile pictures (.couplepp).
๐Ÿ‘ฅ Admin & Group Group management (.open, .close, .kick, .add, .promote, .demote, .approveall, .declineall, .kickall, .kickcc, .tagall, .hidetag, .setgpp, .setgdesc, .mute, .unmute, .welcome, .goodbye), chat disappearing messages (.disappearing), plus protection (.antilink, .antispam, .antisticker, .rejectcalls).
๐Ÿ‘ค Owner & Profile Multi-owner management (.addowner, .delowner, .owner list), block/unblock management, .setstatus, .getstatus, .getpair pairing code generator, .setsession session importer, .setpp, .setabout, .chatstats, .stalk online tracking, .mode public/private, .prefix control.
๐Ÿ“„ User Manual Pure PDF manual generator (.usermanual) delivering complete feature documentation as a WhatsApp PDF document.
๐Ÿ› ๏ธ Utility Tools Weather forecast (.weather), Currency converter (.currency), Dictionary (.define), Password pwned check (.pwned), QR generator/decoder (.qr), URL uploader (.url), URL shortener (.shorten), News headlines (.news), Hacker News (.hackernews), Wikipedia (.wiki), Jokes (.joke), Advice (.advice), Facts (.fact).
๐Ÿ–ผ๏ธ Getpp Fetch profile pictures of any user, group, or chat.
๐Ÿ“Œ Getjid PN + LID resolver, channel list, group member roster with admin roles.
โš™๏ธ Presence Always online, auto-typing, auto-recording, read receipts configuration.
๐Ÿ“Š Activity & Ping Chat activity dashboard (messages, media counts) and RTT/memory latency probe.

๐Ÿš€ Quick Start

Requirements

  • Node.js 20+
  • A WhatsApp account you're willing to link as a device
  • (Optional) PM2 for 24/7 background operation

Installation

git clone https://github.com/themalik-g/wraith.git
cd wraith
npm install
npm start

First run prompts for your WhatsApp phone number, then generates a pairing code:

WhatsApp โ†’ Settings โ†’ Linked Devices โ†’ Link a Device โ†’ Link with phone number instead

Run with PM2

npm run pm2:start
npm run pm2:logs
npm run pm2:restart

๐Ÿ“š Documentation

File Topic
docs/COMMANDS.md Complete index of all commands with examples
docs/CONFIGURATION.md Config settings, state files, and variables
docs/JID-SYSTEM.md Deep dive into PN, LID, and JID resolution
docs/DEPLOYMENT.md VPS, Docker, PM2, and server setups
docs/TROUBLESHOOTING.md Solutions for common errors
docs/ARCHITECTURE.md System layout, module design, and router flow

๐Ÿง  The JID System

Every WhatsApp user has two JIDs:

  • PN JID โ€” 923001234567@s.whatsapp.net (phone number)
  • LID โ€” 278713363128439@lid (Linked Identity, permanent anonymous ID)

WRAITH is LID-aware โ€” resolves both, sends messages to LIDs directly, and utilizes 5 fallback strategies to resolve PNs when hidden.

โ†’ Full details: docs/JID-SYSTEM.md


๐Ÿ› ๏ธ Configuration

// config.js
export const CONFIG = {
    owner: "923257853673",
    codename: "WRAITH",
    memoryTTL: 60 * 60 * 1000,
    reconnectDelay: 3000,
    keepAliveInterval: 30_000
};

๐Ÿ“ Project Structure

wraith/
โ”œโ”€โ”€ start.js
โ”œโ”€โ”€ router.js
โ”œโ”€โ”€ config.js
โ”œโ”€โ”€ ecosystem.config.cjs
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ identity.js
โ”‚   โ”œโ”€โ”€ settings.js
โ”‚   โ””โ”€โ”€ jid-resolver.js
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ apis.js
โ”‚   โ”œโ”€โ”€ music-sources.js
โ”‚   โ”œโ”€โ”€ net.js
โ”‚   โ””โ”€โ”€ uploadImage.js
โ”œโ”€โ”€ modules/
โ”‚   โ”œโ”€โ”€ activity.js
โ”‚   โ”œโ”€โ”€ admin.js
โ”‚   โ”œโ”€โ”€ debug.js
โ”‚   โ”œโ”€โ”€ download.js
โ”‚   โ”œโ”€โ”€ downloader.js
โ”‚   โ”œโ”€โ”€ ghost.js
โ”‚   โ”œโ”€โ”€ group.js
โ”‚   โ”œโ”€โ”€ help.js
โ”‚   โ”œโ”€โ”€ jid.js
โ”‚   โ”œโ”€โ”€ lurk.js
โ”‚   โ”œโ”€โ”€ media.js
โ”‚   โ”œโ”€โ”€ owner.js
โ”‚   โ”œโ”€โ”€ peek.js
โ”‚   โ”œโ”€โ”€ ping.js
โ”‚   โ”œโ”€โ”€ ppt.js
โ”‚   โ”œโ”€โ”€ prefix.js
โ”‚   โ”œโ”€โ”€ presence-track.js
โ”‚   โ”œโ”€โ”€ presence.js
โ”‚   โ”œโ”€โ”€ profile.js
โ”‚   โ”œโ”€โ”€ schedule.js
โ”‚   โ”œโ”€โ”€ social.js
โ”‚   โ”œโ”€โ”€ song.js
โ”‚   โ”œโ”€โ”€ update.js
โ”‚   โ”œโ”€โ”€ url.js
โ”‚   โ”œโ”€โ”€ usermanual.js
โ”‚   โ””โ”€โ”€ utility.js
โ””โ”€โ”€ session/

๐Ÿ” Security & Privacy

  • Never commit session/, .env, keys.env, or local credentials/state.

๐Ÿ› Quick Troubleshooting

Problem Fix
Bot won't pair Delete session/, restart, re-enter number
internal-server-error on admin Bot must be admin; target PN may be uncached
Image post download failed Use .pdl <url> or .pdlzip <url> for direct postfetch download
LID not resolving to PN Reply to their message in a group first

Full guide: docs/TROUBLESHOOTING.md


๐Ÿ“œ License

MIT


๐Ÿ™ Credits


Footer

Made with โค๏ธ by MALIK MEHTAB

About

Wraith! A light weight WhatsApp MD bot powered by Baileys. Specially designed for WhatsApp anti delete, anti viewonce anti edit autostatus view auto like story amd bundle of other features

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages