How harsh01-ux/sarkar-sathi works
Sarkari Saathi is a bilingual guide to Indian government services. Users can browse the service catalog or search by text or voice, then open a service guide with eligibility, application details, required documents, process steps, fees, notes, and official sources. The graph follows the documented React routes and component relationships; browser speech capabilities are shown as external integrations. Unsampled modules are included where the SOURCE INDEX identifies their role, but no unverified links are inferred.
Main entry points: useLanguage.js Language preference · ServiceDetail.jsx Service detail page · App.jsx App router · Home.jsx Home page
Components 23
App navigation
- App router
src/App.jsx - Navigation bar
src/components/Navbar.jsx - Footer
src/components/Footer.jsx
Service discovery
- Home page
src/pages/Home.jsx - Services page
src/pages/Services.jsx - Service search
src/components/SearchBox.jsx - Example queries
src/components/ExampleQueries.jsx - Service card
src/components/ServiceCard.jsx - Empty states
src/components/States.jsx
Service guides
- Service detail page
src/pages/ServiceDetail.jsx - Guide header
src/components/GuideHeader.jsx - Document checklist
src/components/DocumentChecklist.jsx - Process steps
src/components/ProcessSteps.jsx - Official sources
src/components/OfficialSource.jsx - Guide information section
src/components/InfoSection.jsx
Shared language and voice
- Voice input
src/hooks/useVoiceInput.js - Voice playback
src/hooks/useVoiceOutput.js - Language preference
src/hooks/useLanguage.js
Service content
- UI translations
src/data/translations.js - Service catalog and matching
src/data/services.js
Other components
- Service seeker
- Browser speech recognition
- Browser speech synthesis
Connections 37
- Service seeker → App router: opens
- App router → Navigation bar: renders
src/App.jsx - App router → Home page: routes to
src/App.jsx - App router → Services page: routes to
src/App.jsx - App router → Service detail page: routes to
src/App.jsx - App router → Footer: renders
src/App.jsx - Home page → Service search: renders
src/pages/Home.jsx - Home page → Example queries: renders
src/pages/Home.jsx - Home page → Service card: renders
src/pages/Home.jsx - Home page → Service catalog and matching: reads
src/pages/Home.jsx - Services page → Service search: renders
src/pages/Services.jsx - Services page → Service card: renders
src/pages/Services.jsx - Services page → Empty states: renders
src/pages/Services.jsx - Services page → Service catalog and matching: reads
src/pages/Services.jsx - Service search → Service catalog and matching: matches query
src/components/SearchBox.jsx - Service search → Voice input: uses
src/components/SearchBox.jsx - Voice input → Browser speech recognition: requests speech
src/hooks/useVoiceInput.js - Example queries → Service catalog and matching: reads
src/components/ExampleQueries.jsx - Service detail page → Service catalog and matching: reads
src/pages/ServiceDetail.jsx - Service detail page → Guide header: renders
src/pages/ServiceDetail.jsx - Service detail page → Document checklist: renders
src/pages/ServiceDetail.jsx - Service detail page → Process steps: renders
src/pages/ServiceDetail.jsx - Service detail page → Official sources: renders
src/pages/ServiceDetail.jsx - Service detail page → Guide information section: renders
src/pages/ServiceDetail.jsx - Process steps → Voice playback: uses
src/components/ProcessSteps.jsx - Voice playback → Browser speech synthesis: speaks through
src/hooks/useVoiceOutput.js - Service search → Language preference: reads
src/components/SearchBox.jsx - Home page → Language preference: reads
src/pages/Home.jsx - Service detail page → Language preference: reads
src/pages/ServiceDetail.jsx - Navigation bar → Language preference: uses
src/components/Navbar.jsx - Service card → Language preference: uses
src/components/ServiceCard.jsx - Document checklist → Language preference: uses
src/components/DocumentChecklist.jsx - Guide header → Language preference: uses
src/components/GuideHeader.jsx - Process steps → Language preference: uses
src/components/ProcessSteps.jsx - Empty states → Language preference: uses
src/components/States.jsx - Example queries → Language preference: uses
src/components/ExampleQueries.jsx - Language preference → UI translations: reads
src/hooks/useLanguage.js