How taazcode/explore_india works
Bharat Connect is a cultural-exploration web app with state guides, cultural highlights, language learning, quizzes, and a saved traveller profile. The main journey is to explore a state, view its guide and cultural content, then earn and track progress through learning activities. The graph also shows shared translation and progress layers and the AI guide and speech capabilities. Some page and integration links are based on the SOURCE INDEX or excerpts; unsampled behavior is not inferred beyond those references.
Main entry points: App.tsx App & State Guide · ProfilePage.tsx Traveller Profile · LanguageContext.tsx Language Context · LanguagesPage.tsx Languages Page
Components 24
Explore India
- App & State Guide
src/App.tsx - Culture Page
src/CulturePage.tsx - Highlight Gallery
src/components/HighlightGrid.tsx - About Page
src/AboutPage.tsx
Learn & Play
- Languages Page
src/LanguagesPage.tsx - Quests & Quizzes
src/QuestsPage.tsx - Traveller Profile
src/ProfilePage.tsx
Shared Services
- Language Context
src/components/LanguageContext.tsx - Live Translation
src/lib/translate.ts - Progress Store
src/lib/progress.ts - Avatar Helpers
src/lib/avatars.ts - Speech Playback
src/lib/tts.ts - AI Guide Client
src/lib/groq.ts
Cultural Data
- Phrasebook Data
src/data/phrases.ts - Quiz Data
src/data/quiz.ts - State Highlights
src/data/exploreContent.ts - State Catalog
src/data/states.ts - All-State Catalog
src/data/allStates.ts - India Map Paths
src/data/indiaPaths.ts - State Codes
src/data/stateCodes.ts - Translation Catalog
src/data/translations.ts
Other components
- Traveller
- Groq API
- Browser Speech
Connections 35
- Traveller → App & State Guide: explores states
src/App.tsx - App & State Guide → Culture Page: opens page
src/App.tsx - App & State Guide → About Page: opens page
src/App.tsx - App & State Guide → Languages Page: opens page
src/App.tsx - App & State Guide → Quests & Quizzes: opens page
src/App.tsx - App & State Guide → Traveller Profile: opens page
src/App.tsx - App & State Guide → State Catalog: reads state details
src/App.tsx - App & State Guide → State Highlights: reads highlights
src/App.tsx - App & State Guide → India Map Paths: renders map
src/App.tsx - App & State Guide → State Codes: uses state codes
src/App.tsx - App & State Guide → All-State Catalog: reads state list
src/App.tsx - App & State Guide → AI Guide Client: requests guide reply
src/App.tsx - AI Guide Client → Groq API: sends API request
- Culture Page → Highlight Gallery: renders gallery
src/CulturePage.tsx - Culture Page → State Highlights: reads highlights
src/CulturePage.tsx - Highlight Gallery → State Highlights: loads highlight data
src/components/HighlightGrid.tsx - Highlight Gallery → Progress Store: toggles bookmarks
src/components/HighlightGrid.tsx - Languages Page → Phrasebook Data: reads phrases
src/LanguagesPage.tsx - Languages Page → Progress Store: tracks learning
src/LanguagesPage.tsx - Quests & Quizzes → Quiz Data: loads questions
src/QuestsPage.tsx - Quests & Quizzes → Progress Store: records quest progress
src/QuestsPage.tsx - Traveller Profile → Progress Store: reads journey
src/ProfilePage.tsx - Traveller Profile → Avatar Helpers: uses avatar helpers
src/ProfilePage.tsx - Traveller Profile → Speech Playback: speaks greeting
src/ProfilePage.tsx - Traveller Profile → Phrasebook Data: reads phrase history
src/ProfilePage.tsx - Quiz Data → All-State Catalog: uses state data
src/data/quiz.ts - Quiz Data → Phrasebook Data: uses phrase data
src/data/quiz.ts - Language Context → Translation Catalog: reads translations
src/components/LanguageContext.tsx - Language Context → Live Translation: requests missing translations
src/components/LanguageContext.tsx - App & State Guide → Language Context: uses language context
src/App.tsx - Languages Page → Language Context: uses language context
src/LanguagesPage.tsx - Quests & Quizzes → Language Context: uses language context
src/QuestsPage.tsx - Traveller Profile → Language Context: uses language context
src/ProfilePage.tsx - Speech Playback → Groq API: requests neural speech
- Speech Playback → Browser Speech: uses speech synthesis