Inspiration The inspiration came from a simple observation: in rural and underserved communities, the gap between having a smartphone and getting care quickly is rarely about information — it's about language, urgency, and handoff. A patient can describe symptoms in their own words but struggles in a clinic's language; families guess whether the nearest clinic is worth the travel; mild cases flood PHCs while emergencies arrive late; and even when help is found, the care team starts from zero details. I wanted to build something that works by simply speaking, in a language the patient actually uses, with no forms, no menus, and no paid API keys standing between a symptom and an urgency answer.
What it does PRAANA is a voice-first healthcare web app that turns spoken symptoms into a clear next step:
Speak or type in seven Indian languages (Hindi, Tamil, Kannada, Telugu, Bengali, Marathi, English). Understand — Web Speech API transcribes speech while Web Audio picks up distress cues (breathlessness, cough bursts, vocal strain). Triage — a deterministic rule engine scores risk and returns Emergency / Urgent / Normal with spoken, plain-language guidance and concrete steps in the patient's language. Route — two-step high-accuracy GPS lock, satellite-hybrid map, nearby clinics and pharmacies with real distances, OSRM directions, and one-tap "Send Here." Hand off — a structured pre-arrival case goes to a live care-team queue (Socket.io) plus a compact SMS-style payload that fits low-bandwidth networks, with a 24-hour vernacular follow-up scheduled. It is explicitly decision support, not a diagnosis — a clinician makes every final medical decision. Three one-click demo scenarios make the whole flow testable without setup.
How we built it Front end: React 19 + TypeScript + Vite + Tailwind v4, Leaflet with Esri imagery and CARTO labels, Web Speech / Web Audio / Speech Synthesis / Geolocation APIs, and socket.io-client. The triage engine is local and reviewable: eight multilingual symptom rules, acoustic weighting, an age/cardiac risk adjustment, and thresholds that produce the three urgency levels plus 63 hand-written guidance entries across languages.
Back end: Express 5 + TypeScript, Prisma/PostgreSQL, Zod validation, JWT + role-based access, bcrypt, Helmet, rate limiting, Pino logs, OpenAPI/Swagger docs, health/readiness endpoints, and Socket.io broadcasting throttled to one second. The whole stack runs with one docker compose up --build and no secrets; it's deployed on Railway. Nearby search uses Google Places when a key is configured, otherwise free OpenStreetMap/Overpass — so no paid key is ever in the critical path.
Challenges we ran into Language detection mid-speech — interim results made the UI flip languages mid-sentence, so only final recognition results are allowed to drive detection. Microphone uncertainty — denied permissions, unsupported browsers, and noisy rooms meant the acoustic layer had to fail gracefully while triage still runs on text alone. No paid APIs — Overpass rate limits led to three fallback endpoints, caching with stale-data tolerance, and 16 offline facilities; map tiles can toggle to standard OSM. GPS accuracy — a single fix was often too coarse, so we used a fast initial position followed by a high-accuracy watchPosition lock with smooth marker updates. Clinical safety — every output had to stay non-diagnostic and understandable; translating clinical guidance by machine was not acceptable, so the 63 guidance entries were written manually. Scope as a solo builder — balancing frontend, backend, tests, docs, and deployment meant prioritizing an end-to-end working flow over extra features. Accomplishments that we're proud of A complete flow from spoken symptom to care-team case queue, live on the web with API docs. Seven languages, 63 guidance entries, eight symptom rules, and three one-click demos. Real GPS, real distances, routing, and a dedicated pharmacy/medicine-access module. A production-shaped backend with auth, validation, tests, CI, and structured logging. One-command Docker startup with zero secrets required, and near-zero marginal cost per case since no AI model is called. Resilient by design: every external dependency has a fallback. What we learned Browser speech and audio APIs are powerful but inconsistent, so graceful degradation matters more than clever features. Constraints — especially "no paid keys" — actually produced a more robust architecture. In healthcare, restraint is a feature: deterministic, reviewable rules and plain words beat opaque outputs and clinical jargon. And shipping a deployed, documented product teaches far more than another prototype.
What's next for Pranna Pilot first: partner with three rural clinics/ASHA groups, have clinicians review every rule, integrate a real SMS gateway, and measure time-to-triage and correct escalation. Add consent and auth around live-location sharing. District scale: district health-officer partnerships, WhatsApp/SMS follow-up, pharmacy and ambulance ties, and more languages. State scale: telemedicine desk rollout, clinic analytics, and an open-source community build. Technical: a Redis adapter for Socket.io, stronger offline support, and — only with clinical validation — a model-based triage layer swapped behind the same deterministic interface. Demo SMS, telephony, and translation are simulated today; real gateways and clinical validation are Phase 1 deliverables.
Built With
- carto-labels
- docker-compose
- esri-world-imagery
- frontend:-react-19
- github-actions-ci-deployment-&-infra:-docker
- jwt
- lucide-icons-maps-&-location:-leaflet
- nginx
- openstreetmap/overpass
- pino
- supertest
- tailwind-css-v4
- typescript
- vite
- vitest
- web-audio-api-(distress-cues)