How sushanyn/lingora works
Lingora is a language-learning app whose main workflow is: authenticate, create or clone a dictionary, add vocabulary, then practice and track progress. The graph also preserves the documented translation, public-library, learning-game, analytics, and Stripe capabilities. The excerpts show key data access and routing; some unsampled integrations are represented only where the README documents them, and uncertain connections are omitted.
Main entry points: App.tsx Routes & guards · supabase.ts Supabase client · DictionaryView.tsx Dictionary contents · Auth.tsx Sign-in page
Components 34
Application
- Routes & guards
src/App.tsx - App shell
src/layouts/AppLayout.tsx - Supabase client
src/lib/supabase.ts - Learning dashboard
src/pages/Home.tsx
Vocabulary
- Dictionary manager
src/pages/Dictionaries.tsx - Dictionary operations
src/hooks/useDictionaries.ts - Dictionary editor
src/components/DictionaryModal.tsx - Dictionary contents
src/pages/DictionaryView.tsx - Word operations
src/hooks/useWords.ts - Word editor
src/components/WordModal.tsx - Vocabulary import
src/components/ImportModal.tsx - Import parser
src/utils/importParser.ts - Word suggestions
src/components/PandaSuggestModal.tsx - Translation endpoint
api/translate.ts - Public library
src/pages/Library.tsx - Dictionary cloning
src/hooks/useLibrary.ts
Learning
- Practice hub
src/pages/Practice.tsx - Flashcard practice
src/pages/PracticeFlashcards.tsx - Flashcard view
src/components/Flashcard.tsx - Quiz mode
src/pages/QuizMode.tsx - Word match
src/pages/WordMatch.tsx - Listening challenge
src/pages/ListeningChallenge.tsx - Immersion practice
src/pages/ImmersionPractice.tsx - Music challenge
src/pages/MusicChallenge.tsx - Music endpoint
api/music.ts - Review scheduling
src/utils/sm2.ts
Account & Insights
- Sign-in page
src/pages/Auth.tsx - Login form
src/components/LoginForm.tsx - Auth session
src/hooks/useAuth.ts - Profile & streaks
src/hooks/useProfile.ts
Other components
- Learner
- Supabase data store
- MyMemory API
- Video clip service
Connections 41
- Learner → Routes & guards: opens
src/App.tsx - Routes & guards → Sign-in page: routes to
src/App.tsx - Routes & guards → App shell: guards routes
src/App.tsx - Routes & guards → Dictionary manager: routes to
src/App.tsx - Routes & guards → Dictionary contents: routes to
src/App.tsx - Routes & guards → Practice hub: routes to
src/App.tsx - Routes & guards → Flashcard practice: routes to
src/App.tsx - Routes & guards → Quiz mode: routes to
src/App.tsx - Routes & guards → Word match: routes to
src/App.tsx - Routes & guards → Listening challenge: routes to
src/App.tsx - Routes & guards → Immersion practice: routes to
src/App.tsx - Routes & guards → Music challenge: routes to
src/App.tsx - Routes & guards → Learning dashboard: routes to
src/App.tsx - Sign-in page → Login form: renders
src/pages/Auth.tsx - Sign-in page → Auth session: checks session
src/pages/Auth.tsx - Login form → Supabase client: authenticates with
src/components/LoginForm.tsx - Auth session → Supabase client: reads session
src/hooks/useAuth.ts - Supabase client → Supabase data store: connects to
src/lib/supabase.ts - Dictionary manager → Dictionary operations: manages dictionaries
src/pages/Dictionaries.tsx - Dictionary manager → Dictionary editor: opens editor
src/pages/Dictionaries.tsx - Dictionary operations → Auth session: gets user
src/hooks/useDictionaries.ts - Dictionary operations → Supabase client: reads and writes
src/hooks/useDictionaries.ts - Dictionary contents → Word operations: loads words
src/pages/DictionaryView.tsx - Dictionary contents → Word editor: opens editor
src/pages/DictionaryView.tsx - Dictionary contents → Vocabulary import: opens importer
src/pages/DictionaryView.tsx - Dictionary contents → Word suggestions: opens suggestions
src/pages/DictionaryView.tsx - Word operations → Auth session: gets user
src/hooks/useWords.ts - Word operations → Supabase client: reads and writes
src/hooks/useWords.ts - Vocabulary import → Import parser: parses input
src/utils/importParser.ts - Word editor → Translation endpoint: requests translation
- Translation endpoint → MyMemory API: translates with
README.md - Public library → Dictionary cloning: loads public lists
src/pages/Library.tsx - Dictionary cloning → Supabase client: clones dictionary
src/hooks/useLibrary.ts - Flashcard practice → Flashcard view: renders cards
- Flashcard practice → Review scheduling: schedules reviews
README.md - Immersion practice → Video clip service: searches clips
src/pages/ImmersionPractice.tsx - Music challenge → Music endpoint: loads music data
- Learning dashboard → Profile & streaks: reads profile
src/pages/Home.tsx - Profile & streaks → Supabase client: reads and updates
src/hooks/useProfile.ts - Learner → Public library: browses
src/pages/Library.tsx - Learner → Sign-in page: signs in