How samyukthagovardhan-prog/nammabridge works
NammaBridge is a bilingual Tamil/English government-scheme guide. Citizens browse or search scheme listings, inspect scheme details and application steps, and can open an eligibility/document verifier or ask the assistant; voice input and playback support these interactions. App owns the main search flow, while dedicated components provide the distinct browsing, details, verification, chat, and language experiences. The excerpts establish component imports and selected utility calls; implementation details of unsampled components and the server are not assumed.
Main entry points: App.tsx App Orchestrator · i18n.ts Translations · ChatDrawer.tsx AI Assistant · schemes.ts Scheme Listings
Components 16
Application
- App Orchestrator
src/App.tsx - Navigation
src/components/Navbar.tsx - Search Interface
src/components/HeroSearch.tsx - Portal Footer
src/components/Footer.tsx
Scheme Catalog
- Category Filters
src/components/CategoryBar.tsx - Scheme Cards
src/components/SchemeCard.tsx - Scheme Details
src/components/SchemeModal.tsx - Scheme Listings
src/data/schemes.ts
Citizen Tools
- Eligibility Verifier
src/components/DocVerifierModal.tsx - AI Assistant
src/components/ChatDrawer.tsx - Language Selector
src/components/LanguageModal.tsx
Shared Services
- Search Ranking
src/utils/searchMatcher.ts - Speech Utilities
src/utils/speech.ts - Translations
src/data/i18n.ts - Scheme Types
src/types/scheme.ts
Other components
- Citizen
Connections 24
- Citizen → App Orchestrator: uses
src/App.tsx - App Orchestrator → Navigation: renders
src/App.tsx - App Orchestrator → Search Interface: renders
src/App.tsx - App Orchestrator → Category Filters: renders
src/App.tsx - App Orchestrator → Scheme Cards: renders
src/App.tsx - App Orchestrator → Scheme Details: renders
src/App.tsx - App Orchestrator → Eligibility Verifier: renders
src/App.tsx - App Orchestrator → AI Assistant: renders
src/App.tsx - App Orchestrator → Language Selector: renders
src/App.tsx - App Orchestrator → Portal Footer: renders
src/App.tsx - App Orchestrator → Search Ranking: ranks listings
src/App.tsx - App Orchestrator → Scheme Listings: filters listings
src/App.tsx - Category Filters → Scheme Listings: reads categories
src/components/CategoryBar.tsx - Scheme Cards → Translations: reads labels
src/components/SchemeCard.tsx - Scheme Details → Translations: reads labels
src/components/SchemeModal.tsx - Navigation → Translations: reads labels
src/components/Navbar.tsx - Search Interface → Translations: reads labels
src/components/HeroSearch.tsx - AI Assistant → Speech Utilities: plays voice
src/components/ChatDrawer.tsx - App Orchestrator → Speech Utilities: plays voice
src/App.tsx - Search Ranking → Scheme Types: uses types
src/utils/searchMatcher.ts - Scheme Listings → Scheme Types: uses types
src/data/schemes.ts - Eligibility Verifier → Scheme Types: uses types
src/components/DocVerifierModal.tsx - AI Assistant → Translations: reads labels
src/components/ChatDrawer.tsx - App Orchestrator → Translations: reads labels
src/App.tsx