How ambreshkalashtty44-crypto/karnataka-welfare-insights works
Karnataka Welfare Insight is a dashboard for exploring generated welfare-scheme coverage across Karnataka districts. Users enter through the shared application layout and choose a dashboard, map, scheme comparison, association-rule analysis, cluster analysis, or coverage report; the report also supports PDF export. The layout preloads cached data through the client data store, which calls server functions backed by dataset generation and analysis logic. README capabilities are represented even where their route implementations were not sampled; their detailed wiring is therefore not inferred. The optional Flask backend is documented as an equivalent alternative.
Main entry points: AppLayout.tsx App layout · dataStore.ts Data store · report.tsx Coverage report · api.functions.ts Server functions
Components 15
User experience
- App layout
src/components/app/AppLayout.tsx - Overview dashboard
src/routes/index.tsx - District map
src/routes/map.tsx - Scheme comparison
src/routes/schemes.tsx - Coverage report
src/routes/report.tsx - PDF export
src/routes/report.tsx
Analytics
- Association rules
src/routes/rules.tsx - District clusters
src/routes/clusters.tsx - Dataset and analysis
src/server/analyzer.logic.ts
Data and API
- Data store
src/lib/dataStore.ts - Server functions
src/server/api.functions.ts - Analysis types
src/server/analyzer.types.ts - District and scheme metadata
src/data/karnataka.ts
Optional backend
- Flask API
backend-flask/app.py
Other components
- Dashboard user
Connections 20
- Dashboard user → App layout: opens app
- App layout → Overview dashboard: routes to
- App layout → District map: routes to
- App layout → Scheme comparison: routes to
- App layout → Association rules: routes to
- App layout → District clusters: routes to
- App layout → Coverage report: routes to
- App layout → Data store: preloads
- Overview dashboard → Data store: reads data
- District map → Data store: reads data
- Scheme comparison → Data store: reads data
- Association rules → Data store: reads rules
- District clusters → Data store: reads clusters
- Coverage report → Data store: reads data
- Coverage report → PDF export: exports PDF
- Data store → Server functions: requests data
- Server functions → Dataset and analysis: dispatches analysis
- Dataset and analysis → District and scheme metadata: reads metadata
- Server functions → Data store: returns results
- Dashboard user → Flask API: optional API client