Twaicy Commerce OS
Zero-Commission Direct Restaurant Commerce Operating System
The Architectural Problem
Third-party delivery aggregators charge predatory 25-35% commissions on orders, draining restaurant profit margins while disconnecting them from their customer relationships.
The Engineering Solution
Engineered a unified single-port monolith pairing Next.js 16 and NestJS 11 on Bun with 0% UPI PG webhooks, an autonomous WhatsApp ordering engine via Baileys, Web Audio polyphonic kitchen chimes, and strict IDOR isolation.
Technical Invariants Delivered:
- Dual-mode payments: PhonePe HMAC webhook auto-confirmation & Counter UPI QR with 12-digit UTR
- Persistent WhatsApp conversational bot with dynamic session carts
- Authoritative server-side price recalculation banning client price tampering




