How coach-montanha/montanha-language-ai works
Smart Language Studio is a browser-based language-learning app. The main workflow enters through the home route, authenticates or loads a learner session, and presents learning activities such as tutor conversation, scenarios, vocabulary practice and placement testing; progress and chat history are persisted locally and can sync through the server. The tree documents additional study, gamification, avatar, and language tools. Some feature components and routes were not sampled, so their internal connections are omitted unless the route or README shows them.
Main entry points: index.tsx Home app · ConversationTab.tsx Tutor conversation · ai-engine.ts Tutor AI engine · storage.ts Progress and chat storage
Components 23
App and access
- Home app
src/routes/index.tsx - Login screen
src/components/LoginScreen.tsx
Learning activities
- Tutor conversation
src/components/tabs/ConversationTab.tsx - Voice call
src/components/VoiceCallModal.tsx - Daily sprint
src/components/tabs/DailySprintTab.tsx - Scenario practice
src/components/tabs/ScenarioTab.tsx - Flashcards
src/components/tabs/FlashcardsTab.tsx - Alphabet study
src/components/tabs/AlphabetTab.tsx - Language breakdown
src/components/tabs/BreakdownTab.tsx - Placement test
src/components/PlacementTestModal.tsx - Avatar rendering
src/components/avatar/ModularAvatar.tsx - Avatar item catalog
src/data/avatar-items.ts - Mission content
src/data/missions.ts - Vocabulary data
src/data/vocabulary.ts
Learning services
- Authentication
src/services/auth.ts - Tutor AI engine
src/services/ai-engine.ts - Gemini provider
src/services/gemini.ts - Speech services
src/services/speech.ts - Gamification
src/services/gamification.ts
Learner state
- Progress and chat storage
src/services/storage.ts - Sync API
src/server/api-handler.ts - Server user store
src/server/user-store.ts
Other components
- Learner
Connections 25
- Learner → Home app: opens
src/routes/index.tsx - Home app → Login screen: renders
src/routes/index.tsx - Login screen → Authentication: authenticates
src/components/LoginScreen.tsx - Home app → Tutor conversation: renders
src/routes/index.tsx - Home app → Daily sprint: renders
src/routes/index.tsx - Home app → Scenario practice: renders
src/routes/index.tsx - Home app → Flashcards: renders
src/routes/index.tsx - Home app → Alphabet study: renders
src/routes/index.tsx - Home app → Language breakdown: renders
src/routes/index.tsx - Home app → Placement test: renders
src/routes/index.tsx - Tutor conversation → Tutor AI engine: requests replies
src/components/tabs/ConversationTab.tsx - Voice call → Tutor AI engine: requests replies
src/components/VoiceCallModal.tsx - Tutor conversation → Progress and chat storage: loads and saves chat
src/components/tabs/ConversationTab.tsx - Voice call → Progress and chat storage: loads memory
src/components/VoiceCallModal.tsx - Tutor AI engine → Gemini provider: calls provider
src/services/ai-engine.ts - Home app → Progress and chat storage: loads and saves progress
src/routes/index.tsx - Home app → Authentication: loads session
src/routes/index.tsx - Home app → Sync API: syncs learner data
src/routes/index.tsx - Sync API → Server user store: reads and writes
src/server/api-handler.ts - Progress and chat storage → Gamification: updates rewards
src/services/storage.ts - Tutor conversation → Speech services: uses speech
src/components/tabs/ConversationTab.tsx - Voice call → Speech services: uses speech
src/components/VoiceCallModal.tsx - Tutor conversation → Avatar rendering: renders companion
src/components/tabs/ConversationTab.tsx - Avatar rendering → Avatar item catalog: uses defaults
src/components/avatar/ModularAvatar.tsx - Tutor AI engine → Vocabulary data: uses vocabulary
src/services/ai-engine.ts