WhatsApp Multiple Auth Gateway

Let's be real: running a separate Node.js process and copying authentication folders every time you want to spin up another WhatsApp bot is a special kind of painโand the official WhatsApp Business API is just too expensive. Since I'm lazy like that (lol ๐) and didn't want to make my server cry from memory bloat, I built this WhatsApp Multiple Auth Gateway. It's a lightweight Express server using the Baileys library and a JavaScript Map to handle multiple active sessions in a single process, all managed via a real-time Socket.IO and Tailwind CSS dashboard. It exposes a simple POST /api/send endpoint for external scripts (like Laravel or cron jobs) to shoot messages from any account, and it even auto-loads existing sessions from disk on startup so I don't have to scan QR codes like a caveman every time I redeploy!
Tech Stack:
- Express & Node.js (for the lightweight REST API backend)
- @whiskeysockets/baileys (to interface with WhatsApp without official API fees)
- Socket.IO (for real-time status updates and dynamic QR streaming to the UI)
- Tailwind CSS (responsive light/dark dashboard layout)
- Pino & pino-pretty (for double-stream logs to console and files without clutter)
- Local Filesystem (using useMultiFileAuthState for hassle-free session persistence)