PragatiPath ("Path of Progress") is a full-stack, offline-first digital health platform built for rural India โ designed to work in low-connectivity villages where internet is unreliable or unavailable.
- Patients & Villagers โ Access health services, request ASHA home visits, order medicines, track maternal care & vaccinations
- ASHA Workers โ Manage patient requests, record voice complaints, request medicine delivery, escalate emergencies โ all offline
- Pharmacy Owners โ Swiggy-style dashboard to manage orders, live stock, invoices, delivery partners and ratings
- Delivery Partners โ GPS-guided deliveries, OTP proof, earnings tracker
- District Health Officers / Admin โ Command center with live maps, outbreak detection, analytics, broadcast advisories and NHM-compatible report exports
- ๐ต Offline-first โ Works without internet using IndexedDB + Service Worker
- ๐ต Mesh Sync โ P2P data sync via Web Bluetooth between ASHA worker devices
- ๐ Eventual consistency โ Data syncs to Firestore automatically when connectivity returns
- ๐ค Voice complaints โ ASHA workers record patient complaints via Web Speech API
- ๐บ๏ธ Live maps โ Nearby hospitals, pharmacies, schools via OpenStreetMap
- ๐ Medicine delivery โ Full order โ assign โ deliver โ OTP confirm pipeline
- ๐คฑ Maternal care โ Pregnancy tracking, vaccination scheduler, AI health prediction
- ๐ Admin analytics โ Disease burden by village, referral success rates, ASHA performance
- ๐ข Broadcast advisories โ Admin sends health alerts to all ASHA workers or patients
- ๐ NHM-compatible exports โ CSV reports for government submission
- Frontend: React 19, TypeScript, Tailwind CSS, Framer Motion
- Backend: Node.js, Express, SQLite (better-sqlite3)
- Database: Firebase Firestore + IndexedDB (offline)
- Auth: Firebase Authentication (Google + Email/Password + Phone OTP)
- AI: Google Gemini 2.0 Flash (health predictions, OCR prescription scanner)
- Maps: Leaflet + OpenStreetMap + Overpass API
- Realtime: Socket.io
- Offline: Service Worker + Web Bluetooth mesh sync
- Hosting: Firebase Hosting
git clone https://github.com/yourname/pragatipath.git
cd pragatipath
npm install
cp .env.example .env.local
# Add your GEMINI_API_KEY to .env.local
npm run devSee .env.example for all required variables including Firebase config and Gemini API key.
PragatiPath is a Progressive Web App โ installable on Android phones for full offline use in the field.
Built with โค๏ธ for rural India ๐ฎ๐ณ
---
**Topics/Tags:**
react typescript firebase gemini-ai offline-first pwa rural-health india asha-worker mesh-networking web-bluetooth healthcare