How glitchx-harshit/swasthyasetu works
SwasthyaSetu is a healthcare-platform scaffold for frontline health workers and healthcare facilities, with a Flutter mobile client, a Next.js facility dashboard, and a FastAPI service. The visible backend workflow is an HTTP health request routed through the versioned API to a database connectivity check and a typed health response. README capabilities such as offline-first mobile use, facility triage, and Redis are represented cautiously: their implementation is not present in the sampled source, so connections to the backend are unverified.
Main entry points: main.py FastAPI entry · health.py Health endpoint · session.py Database sessions · frontline-mobile Offline mobile app
Components 17
User applications
- Offline mobile app
apps/frontline-mobile - Facility dashboard
apps/facility-dashboard/src/app/page.tsx - Dashboard layout
apps/facility-dashboard/src/app/layout.tsx - Dashboard navigation
apps/facility-dashboard/src/components/Navigation.tsx
Backend API
- FastAPI entry
backend/app/main.py - Versioned API router
backend/app/api/v1/router.py - Health endpoint
backend/app/api/v1/endpoints/health.py - Health response schema
backend/app/schemas/health.py
Backend foundations
- Request dependencies
backend/app/api/deps.py - Application settings
backend/app/core/config.py - Logging setup
backend/app/core/logging.py - Database sessions
backend/app/db/session.py - ORM base
backend/app/db/base.py
Data services
- PostgreSQL
- Redis cache
Other components
- Frontline workers
- Facility staff
Connections 15
- Dashboard layout → Dashboard navigation: renders
apps/facility-dashboard/src/app/layout.tsx - FastAPI entry → Versioned API router: mounts routes
backend/app/main.py - FastAPI entry → Application settings: reads settings
backend/app/main.py - FastAPI entry → Logging setup: configures logging
backend/app/main.py - Versioned API router → Health endpoint: routes to
backend/app/api/v1/router.py - Health endpoint → Request dependencies: injects dependencies
backend/app/api/v1/endpoints/health.py - Health endpoint → Health response schema: returns schema
backend/app/api/v1/endpoints/health.py - Request dependencies → Database sessions: opens session
backend/app/api/deps.py - Database sessions → Application settings: gets connection config
backend/app/db/session.py - Database sessions → PostgreSQL: connects to
README.md - Frontline workers → Offline mobile app: uses
README.md - Facility staff → Facility dashboard: uses
README.md - Offline mobile app → FastAPI entry: may call API
- Facility dashboard → FastAPI entry: may call API
- FastAPI entry → Redis cache: optional cache