How jeetpramanick07/scheme_sathi works
SchemaSaathi is a benefits-discovery and application-support platform, with a web client and a Fastify backend. The citizen workflow starts with a household questionnaire, evaluates scheme eligibility, then supports saving claims, planning documents, and tracking applications. The backend also manages household profiles and scheme data, with an admin dataset-ingestion path and documented voice, SMS, prefill, help, and partner capabilities. Edges follow shown imports/calls or the source index; several unsampled subsystems are included from the tree but their internal wiring is not asserted.
Main entry points: server.ts HTTP server · schema.ts Relational database · routes.ts Household routes · pipeline.ts Dataset ingestion
Components 24
Citizen web
- Application routes
HACK_KUMBH/schemesaathi-web/src/App.tsx - Questionnaire
HACK_KUMBH/schemesaathi-web/src/components/citizen/QuestionnaireView.tsx - Household state
HACK_KUMBH/schemesaathi-web/src/context/HouseholdContext.tsx - Profile dashboard
HACK_KUMBH/schemesaathi-web/src/components/citizen/ProfileDashboardView.tsx - API client
HACK_KUMBH/schemesaathi-web/src/api/client.ts
Backend API
- HTTP server
HACK_KUMBH/schemesaathi-backend/src/server.ts - Eligibility routes
HACK_KUMBH/schemesaathi-backend/src/modules/eligibility/routes.ts - Household routes
HACK_KUMBH/schemesaathi-backend/src/modules/households/routes.ts - Authentication
HACK_KUMBH/schemesaathi-backend/src/modules/auth/routes.ts - Scheme catalogue
HACK_KUMBH/schemesaathi-backend/src/modules/catalogue/routes.ts - Applications
HACK_KUMBH/schemesaathi-backend/src/modules/applications/routes.ts
Benefits domain
- Eligibility engine
HACK_KUMBH/schemesaathi-backend/src/modules/eligibility/service.ts - Answer handling
HACK_KUMBH/schemesaathi-backend/src/modules/households/answers-service.ts - Attribute normalization
HACK_KUMBH/schemesaathi-backend/src/engine/normalizer.ts - Profile sections
HACK_KUMBH/schemesaathi-backend/src/services/profile-sections.ts
Data operations
- Relational database
HACK_KUMBH/schemesaathi-backend/src/db/schema.ts - Dataset ingestion
HACK_KUMBH/schemesaathi-backend/src/ingest/pipeline.ts - Admin operations
HACK_KUMBH/schemesaathi-backend/src/modules/admin/routes.ts
Access and support
- Voice accessibility
HACK_KUMBH/schemesaathi-backend/src/modules/voice/routes.ts - SMS messaging
HACK_KUMBH/schemesaathi-backend/src/modules/sms/routes.ts - Identity prefill
HACK_KUMBH/schemesaathi-backend/src/modules/prefill/routes.ts - Reminders
HACK_KUMBH/schemesaathi-backend/src/modules/reminders/service.ts - Help centres
HACK_KUMBH/schemesaathi-web/src/components/help/HelpCentresView.tsx
Other components
- Citizen
Connections 32
- Citizen → Application routes: uses
HACK_KUMBH/schemesaathi-web/src/App.tsx - Application routes → Questionnaire: routes to
HACK_KUMBH/schemesaathi-web/src/App.tsx - Application routes → Profile dashboard: routes to
HACK_KUMBH/schemesaathi-web/src/App.tsx - Questionnaire → Household state: reads state
HACK_KUMBH/schemesaathi-web/src/components/citizen/QuestionnaireView.tsx - Questionnaire → API client: requests data
HACK_KUMBH/schemesaathi-web/src/components/citizen/QuestionnaireView.tsx - Household state → API client: requests updates
HACK_KUMBH/schemesaathi-web/src/context/HouseholdContext.tsx - API client → HTTP server: sends HTTP requests
- HTTP server → Eligibility routes: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Household routes: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Authentication: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Scheme catalogue: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Applications: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Admin operations: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Voice accessibility: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → SMS messaging: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - HTTP server → Identity prefill: registers routes
HACK_KUMBH/schemesaathi-backend/src/server.ts - Eligibility routes → Eligibility engine: evaluates eligibility
HACK_KUMBH/schemesaathi-backend/src/modules/eligibility/routes.ts - Eligibility routes → Relational database: reads household data
HACK_KUMBH/schemesaathi-backend/src/modules/eligibility/routes.ts - Household routes → Answer handling: stores answers
HACK_KUMBH/schemesaathi-backend/src/modules/households/routes.ts - Household routes → Profile sections: loads profile
HACK_KUMBH/schemesaathi-backend/src/modules/households/routes.ts - Household routes → Relational database: reads and writes
HACK_KUMBH/schemesaathi-backend/src/modules/households/routes.ts - Authentication → Relational database: reads and writes
HACK_KUMBH/schemesaathi-backend/src/modules/auth/routes.ts - Scheme catalogue → Relational database: queries schemes
HACK_KUMBH/schemesaathi-backend/src/modules/catalogue/routes.ts - Applications → Relational database: manages applications
- Admin operations → Dataset ingestion: starts import
HACK_KUMBH/schemesaathi-backend/src/modules/admin/routes.ts - Admin operations → Relational database: queries records
HACK_KUMBH/schemesaathi-backend/src/modules/admin/routes.ts - Dataset ingestion → Relational database: writes schemes
HACK_KUMBH/schemesaathi-backend/src/ingest/pipeline.ts - Dataset ingestion → Attribute normalization: normalizes attributes
HACK_KUMBH/schemesaathi-backend/src/ingest/pipeline.ts - Dataset ingestion → Profile sections: validates sections
HACK_KUMBH/schemesaathi-backend/src/ingest/pipeline.ts - Voice accessibility → Relational database: uses scheme content
- SMS messaging → Relational database: records messages
HACK_KUMBH/schemesaathi-backend/src/modules/sms/routes.ts - Reminders → Household routes: supports reminder flow
HACK_KUMBH/schemesaathi-backend/src/modules/households/routes.ts