Overview
What was built
Varnion WA started as a fork of the open-source go-whatsapp-web-multidevice project and was rebuilt into internal infrastructure powering WhatsApp-based services for Varnion's client base — not a standalone SaaS product, but the messaging layer underneath services like automated notifications, OTP delivery, and customer support routing. Beyond the core messaging engine (whatsmeow), the project adds tenant isolation with scoped API keys, round-robin load balancing across each client's paired devices, OTP delivery through WhatsApp's own interactive message flow, Chatwoot CRM sync, and MCP (Model Context Protocol) support for AI agent integration — plus a custom admin dashboard with live connection status and device health monitoring.
- My contribution
- I built the Go gateway and React admin dashboard, including tenant-scoped API keys and a view of each device’s connection status.
- Engineering decision
- I kept the existing WhatsApp messaging engine and added account isolation around device access. Requests rotate through the paired devices for the same account, keeping the routing pool scoped to that account.
- In production
- Varnion uses the gateway to send customer notifications and one-time codes and to sync conversations with Chatwoot.
- client accounts served
- 100+
- avg. devices per client
- ~5
Key features
What it does
- Multi-tenant Architecture with Scoped API Keys
- Round-Robin Load Balancing Across Devices
- OTP Delivery via WhatsApp Interactive Messages
- Magic Link Admin Authentication
- Chatwoot CRM Integration
- MCP (Model Context Protocol) Support for AI Agents
- Custom Admin Dashboard with Live Connection Status
Challenges
Problems solved
Challenge 1
Retrofitting multi-tenant isolation onto an originally single-tenant open-source base without breaking existing device-scoping guarantees.
Challenge 2
Designing a 4-state device connection model (connected/disconnected/unpaired/error) that stays accurate across WebSocket reconnects and QR re-pairing.
