QueueCure — Real-time Clinic Queue Management System
Eliminated 2-3hr blind waits for 76% of India's paper-token clinics with live WebSocket queue sync
Overview
76% of India's 1.5 million clinics run on paper token slips. Patients wait 2-3 hours with zero visibility into when they'll be called. Doctors have no dashboard. Receptionists manage everything from memory — one distraction breaks the entire flow. Process Started by identifying the core problem: queue state is shared data that two actors (receptionist and patients) need to see simultaneously. Chose WebSockets over polling for instant sync with zero latency. Built server-side state management so all mutations happen on the server — clients only send commands, never compute state. This eliminates race conditions and ensures every screen shows identical data at all times. Results Both screens sync instantly on "Call Next" with zero page refresh. Wait time is computed dynamically from receptionist-set consultation time × queue position — never hardcoded. Handles concurrent connections, reconnects, and empty queue edge cases gracefully. Live at classy-hamster-387837.netlify.app Reflection Add per-patient consultation timers to auto-update wait estimates in real time. Integrate SMS notifications via MSG91 when a patient is 2 tokens away. Add a multi-doctor routing system to assign tokens to specific doctors. Use Redis for persistent queue state so a server restart doesn't lose the queue.