How avnipahal624/sahyaak- works
Sahaayak is a bilingual (English/Hindi) augmentative communication app: users build phrases from scene-based word tiles, then speak them aloud; the board adapts suggestions using usage and correction history. The tree also shows learning, progress, insights, care, settings, exploration and help experiences, plus authentication. The app entry point establishes shared providers and routing. BoardProvider’s excerpt supports its ties to event logging, custom scenes and speech; its imports also identify ranking, vocabulary and preferences. Several page implementations and backend behavior were not sampled, so their internal connections are omitted.
Main entry points: main.tsx App routes · BoardProvider.tsx Board state · eventLog.ts Usage and repairs · progress.ts Progress tracking
Components 23
App and access
- App routes
main.tsx - Sign-in
Auth.tsx - Route guard
components/RequireAuth.tsx - Auth hook
hooks/use-auth.ts - Dashboard
Dashboard.tsx - Convex services
convex - UI primitives
components/ui
Communication board
- Phrase board
Board.tsx - Board state
components/board/BoardProvider.tsx - Scene and word tiles
components/board - Bilingual vocabulary
lib/vocabulary.ts - Text-to-speech
lib/tts.ts
Learning and support
- Learning
Learn.tsx - Care support
Care.tsx - Explore
Explore.tsx - Help
Help.tsx
Personalization and insights
- Usage and repairs
lib/eventLog.ts - Word ranking
lib/ranking.ts - Progress tracking
lib/progress.ts - Insights
Insights.tsx - Preferences
components/PrefsProvider.tsx - Custom scenes
lib/customScenes.ts
Other components
- User
Connections 22
- User → App routes: opens app
main.tsx - App routes → Sign-in: routes to
main.tsx - App routes → Route guard: protects routes
main.tsx - Route guard → Auth hook: checks session
components/RequireAuth.tsx - Sign-in → Auth hook: uses auth
Auth.tsx - App routes → Board state: provides state
main.tsx - Board state → Usage and repairs: loads and logs
components/board/BoardProvider.tsx - Board state → Custom scenes: loads scenes
components/board/BoardProvider.tsx - Board state → Text-to-speech: speaks phrase
components/board/BoardProvider.tsx - Board state → Word ranking: ranks words
components/board/BoardProvider.tsx - Board state → Bilingual vocabulary: uses words
components/board/BoardProvider.tsx - Board state → Preferences: reads preferences
components/board/BoardProvider.tsx - Scene and word tiles → Board state: reads board state
components/board/SceneTabs.tsx - Usage and repairs → Word ranking: supplies usage
lib/eventLog.ts - Progress tracking → Usage and repairs: reads activity
lib/progress.ts - Progress tracking → Bilingual vocabulary: uses vocabulary
lib/progress.ts - App routes → Dashboard: routes to
main.tsx - App routes → Learning: routes to
main.tsx - App routes → Care support: routes to
main.tsx - App routes → Explore: routes to
main.tsx - App routes → Help: routes to
main.tsx - App routes → UI primitives: renders toaster
main.tsx