How eshwarhs170-a11y/gramsetu works
GramSetu is a Karnataka civic and farmer-services portal. Citizens enter through the public site, sign in, and use a location-aware dashboard for schemes, market information, weather, crop diagnosis, inquiries, and grievances; officials use a separate dashboard to manage cases. The graph includes documented product branches even where their implementation was not sampled. Edges reflect excerpts, the source index, or README statements; unsampled subsystem links are omitted rather than inferred.
Main entry points: App.jsx Route dispatcher · VillagerDashboard.jsx Citizen dashboard · CropScanner.jsx Crop disease scanner · OfficialDashboard.jsx Official case hub
Components 24
Access & navigation
- Route dispatcher
src/App.jsx - Public landing
src/pages/LandingPage.jsx - District explorer
src/pages/DistrictPage.jsx
Citizen services
- Citizen login
src/pages/VillagerLogin.jsx - Citizen dashboard
src/pages/VillagerDashboard.jsx - Citizen service screens
src/components/VillagerScreens.jsx - Crop disease scanner
src/components/CropScanner.jsx - Farmer helpdesk
src/components/FarmerInquiryModal.jsx
Administration
- Official login
src/pages/OfficialLogin.jsx - Official case hub
src/pages/OfficialDashboard.jsx - Grievance escalation
src/utils/escalation.js
Shared capabilities
- Voice assistant widget
src/components/VoiceAssistantWidget.jsx - Speech context
src/context/VoiceContext.jsx - Voice and AI services
src/utils/voiceCommands.js - Crop disease data
src/data/cropDiseasesData.js - Schemes catalogue
src/data/schemesData.js - APMC price feeds
src/utils/fetchPrices.js - Weather advisories
src/utils/fetchWeather.js
Data & integrations
- Firebase client
src/firebase.js - Firestore
- Google Gemini
- Browser speech APIs
Other components
- Rural citizens
- Government officials
Connections 23
- Rural citizens → Route dispatcher: opens portal
README.md - Government officials → Route dispatcher: opens portal
README.md - Route dispatcher → Public landing: routes to
src/App.jsx - Route dispatcher → District explorer: routes to
src/App.jsx - Route dispatcher → Citizen login: routes to
src/App.jsx - Route dispatcher → Citizen dashboard: routes to
src/App.jsx - Route dispatcher → Official login: routes to
src/App.jsx - Route dispatcher → Official case hub: routes to
src/App.jsx - Citizen dashboard → Crop disease scanner: offers diagnosis
README.md - Citizen dashboard → Farmer helpdesk: offers helpdesk
- Farmer helpdesk → Firebase client: writes inquiries
src/components/FarmerInquiryModal.jsx - Official case hub → Firebase client: updates inquiries
src/pages/OfficialDashboard.jsx - Firebase client → Firestore: connects to
src/firebase.js - Official case hub → Grievance escalation: uses escalation
src/pages/OfficialDashboard.jsx - Citizen dashboard → APMC price feeds: loads prices
- Citizen dashboard → Weather advisories: offers forecasts
README.md - Citizen dashboard → Schemes catalogue: browses schemes
- Crop disease scanner → Voice and AI services: requests AI analysis
src/components/CropScanner.jsx - Crop disease scanner → Crop disease data: uses disease data
src/components/CropScanner.jsx - Voice assistant widget → Speech context: uses speech state
src/components/VoiceAssistantWidget.jsx - Speech context → Browser speech APIs: recognizes and speaks
README.md - Voice and AI services → Google Gemini: requests AI
src/utils/voiceCommands.js - Public landing → Farmer helpdesk: opens helpdesk
src/pages/LandingPage.jsx