Skip to content

slowtypist/pragatipath_production

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅ PragatiPath โ€” Rural Health & Development Platform

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.

๐ŸŽฏ Who is it for?

  • 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

โœจ Key Features

  • ๐Ÿ“ต 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

๐Ÿ› ๏ธ Tech Stack

  • 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

๐Ÿš€ Getting Started

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 dev

๐Ÿ”‘ Environment Variables

See .env.example for all required variables including Firebase config and Gemini API key.

๐Ÿ“ฑ PWA

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

About

A rural sustainability and heathcare focussed digital platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages