🌍 Swasthya: AI-Powered Offline Health Triage & Referral System for Rural Haiti
🧠 Inspiration
In rural areas like many parts of Haiti, access to immediate healthcare is limited by geography, infrastructure, language barriers, and poor internet connectivity. Inspired by stories of people walking hours to clinics only to be turned away or misdiagnosed due to limited resources, I envisioned a tool that could guide, triage, and connect patients — even when offline.
The name “Swasthya” means health in Hindi, symbolizing universal wellness and access for all.
💡 What it does
- Swasthya is an offline-capable AI triage tool that analyzes symptoms in Haitian Creole or English.
- It provides a likely condition , urgency level , and recommended action using open-source AI.
- Users can also find nearby clinics with directions, contacts, and emergency info — even without internet.
🛠️ How we built it
- Built with React (Vite), Express, and Tailwind CSS for a responsive PWA frontend.
- Used Hugging Face’s Mistral model via Cloudflare Workers AI for AI triage and translation.
- Implemented offline-first logic with localStorage, voice input using Web Speech API, and Leaflet for clinic maps. Redis for the cache.
⚔️ Challenges we ran into
- ⚠️ Integrating Hugging Face's AI with strict JSON output requirements and rate limits
- 🌐 Implementing accurate offline detection and localStorage-based triage queuing
- 🎤 Getting Web Speech API to support both Haitian Creole and English reliably
- 🗺️ Mapping and filtering clinics based on geolocation and radius in Leaflet.js
- ⏱️ Managing all features within a tight 24-hour solo development timeline
🏅 Accomplishments that we're proud of
- Built a fully functional AI-powered triage system that works offline-first in just one day.
- Integrated multilingual voice input and open-source AI for accessible healthcare insights.
- Created a live clinic locator with directions and emergency info tailored for rural Haiti.
📚 What we learned
- We deepened our understanding of Haiti’s healthcare challenges — especially in rural regions where access to clinics, internet, and consistent electricity is limited.
- This inspired us to design with resilience in mind: offline support, multilingual access, and low-resource AI tools.
- We also gained hands-on experience with building PWAs, integrating Hugging Face models, and handling voice + location APIs in real-world conditions.
🚀 What's next for Swasthya
- 🔐 Add user accounts to store personal triage history securely
- 🌍 Improve translation with a dedicated Haitian Creole NLP model
- 📱 Integrate SMS fallback for users without smartphones or internet
- 🏥 Partner with local Haitian clinics to expand static medical directory
- 📦 Package as an installable PWA for broader offline distribution in rural areas
Built With
- cloudflare-workers-ai
- express.js
- hugging-face-inference-api-(mistral-7b)
- leaflet.js
- mongodb
- node.js
- openstreetmap
- pwa-(service-workers)
- react
- redis
- tailwind
- web-speech-api

Log in or sign up for Devpost to join the conversation.