How hruler19/lingo-reflex works
LexiPulse is a local-first vocabulary and phrase trainer. The main user journey is to choose a language pair, add or manage entries, configure timed typed-recall practice, and review results and learning trends. Settings provide pair management and JSON/CSV portability; IndexedDB is the app’s persistent domain store. The graph reflects sampled code and README capabilities; several page implementations and analytics modules are represented from the source index or README, so their internal details are not inferred.
Main entry points: App.tsx App routing · PracticeArena.tsx Practice arena · schema.ts IndexedDB domain store · Library.tsx Search and edit library
Components 26
App experience
- App routing
src/App.tsx - App layout
src/components/layout/AppLayout.tsx
Vocabulary and practice
- Add words
src/pages/AddWord.tsx - Add phrases
src/pages/AddPhrase.tsx - Search and edit library
src/pages/Library.tsx - Entry editor
src/components/library/EditItemDialog.tsx - Practice arena
src/pages/PracticeArena.tsx - Session timing and scoring
src/hooks/use-practice-session.ts - Practice configuration
src/components/practice/PreGameConfig.tsx - Timed answer screen
src/components/practice/GameScreen.tsx - Session results
src/components/practice/ResultView.tsx - Practice rules
src/lib/practice.ts
Progress insights
- Dashboard
src/pages/Dashboard.tsx - Analytics calculations
src/lib/analytics.ts - Dashboard charts
src/components/dashboard
Local data and settings
- Settings and pairs
src/pages/Settings.tsx - JSON and CSV portability
src/lib/backup.ts - IndexedDB domain store
src/db/schema.ts
Shared UI and state
- Selected language pair
src/store/language-pair-store.ts - Store persistence fallback
src/store/persist-storage.ts - Shared UI components
src/components/ui - Headers and mascot
src/components/PageHeader.tsx - Error boundary
src/components/ErrorBoundary.tsx - Toast state and errors
src/store/toast-store.ts - Toast display
src/components/Toaster.tsx
Other components
- Learner
Connections 35
- Learner → App routing: opens
README.md - App routing → App layout: wraps routes
src/App.tsx - App routing → Dashboard: routes to
src/App.tsx - App routing → Add words: routes to
src/App.tsx - App routing → Add phrases: routes to
src/App.tsx - App routing → Search and edit library: routes to
src/App.tsx - App routing → Practice arena: routes to
src/App.tsx - App routing → Settings and pairs: routes to
src/App.tsx - Dashboard → IndexedDB domain store: reads progress
src/pages/Dashboard.tsx - Dashboard → Analytics calculations: uses metrics
src/pages/Dashboard.tsx - Dashboard → Dashboard charts: renders
src/pages/Dashboard.tsx - Add words → IndexedDB domain store: saves entries
- Add phrases → IndexedDB domain store: saves entries
- Search and edit library → IndexedDB domain store: reads and mutates
src/pages/Library.tsx - Search and edit library → Selected language pair: uses selection
src/pages/Library.tsx - Search and edit library → Entry editor: opens editor
src/pages/Library.tsx - Practice arena → IndexedDB domain store: loads and saves sessions
src/pages/PracticeArena.tsx - Practice arena → Selected language pair: uses selection
src/pages/PracticeArena.tsx - Practice arena → Practice configuration: renders
src/pages/PracticeArena.tsx - Practice arena → Session timing and scoring: starts session
src/pages/PracticeArena.tsx - Session timing and scoring → Practice rules: checks answers
src/hooks/use-practice-session.ts - Practice arena → Timed answer screen: renders
src/pages/PracticeArena.tsx - Practice arena → Session results: renders
src/pages/PracticeArena.tsx - Settings and pairs → IndexedDB domain store: manages pairs and data
src/pages/Settings.tsx - Settings and pairs → JSON and CSV portability: imports and exports
src/pages/Settings.tsx - Settings and pairs → Selected language pair: uses pair state
src/pages/Settings.tsx - Selected language pair → Store persistence fallback: persists through
src/store/language-pair-store.ts - App routing → Error boundary: renders within
src/main.tsx - App routing → Toast display: renders alongside
src/main.tsx - Toast display → Toast state and errors: reads notifications
src/components/Toaster.tsx - App layout → Shared UI components: uses controls
src/components/layout/AppLayout.tsx - App layout → Error boundary: uses boundary
src/components/layout/AppLayout.tsx - Dashboard → Headers and mascot: uses header
src/pages/Dashboard.tsx - Search and edit library → Toast state and errors: reports mutation errors
src/pages/Library.tsx - Settings and pairs → Toast state and errors: reports database errors
src/pages/Settings.tsx