How realkai42/qwerty-learner works
Qwerty Learner is a word-learning and English typing-practice app: users choose a dictionary and chapter, practice words with pronunciation and dictation support, then review performance and mistakes. The graph follows the documented routes and sampled data access; several page internals were not sampled, so uncertain links to those subsystems are dashed. Dictionary, audio, local persistence, analysis, and error review remain distinct capabilities.
Main entry points: index.tsx Route entry · useWordList.ts Chapter words · store/index.ts User settings · db/index.ts Local database
Components 21
Typing practice
- Typing session
src/pages/Typing/index.tsx - Word input
src/pages/Typing/components/WordPanel/index.tsx - Session state
src/pages/Typing/store/index.ts - Chapter words
src/pages/Typing/hooks/useWordList.ts - Word pronunciation
src/hooks/usePronunciation.ts - Sound resources
src/resources/soundResource.ts - Mobile practice
src/pages/Mobile/index.tsx
Word learning
- Dictionary catalog
src/resources/dictionary.ts - Dictionary gallery
src/pages/Gallery-N/index.tsx
Progress and review
- Practice records
src/utils/db/record.ts - Local database
src/utils/db/index.ts - Performance analysis
src/pages/Analysis/index.tsx - Practice statistics
src/pages/Analysis/hooks/useWordStats.ts - Error book
src/pages/ErrorBook/index.tsx - Mistake aggregation
src/pages/Gallery-N/hooks/useErrorWords.ts - Review records
src/utils/db/review-record.ts - Record export
src/pages/ErrorBook/DropdownExport.tsx
App and state
- Route entry
src/index.tsx - User settings
src/store/index.ts - Usage analytics
src/utils/mixpanel.ts
Other components
- Learner
Connections 26
- Learner → Route entry: opens app
src/index.tsx - Route entry → Typing session: routes to
src/index.tsx - Route entry → Dictionary gallery: routes to
src/index.tsx - Route entry → Performance analysis: routes to
src/index.tsx - Route entry → Error book: routes to
src/index.tsx - Route entry → Mobile practice: routes to
src/index.tsx - Typing session → Word input: presents input
- Typing session → Chapter words: loads chapter
- Chapter words → Dictionary catalog: uses catalog
src/pages/Typing/hooks/useWordList.ts - Chapter words → User settings: reads settings
src/pages/Typing/hooks/useWordList.ts - Chapter words → Session state: provides words
- Word input → Word pronunciation: plays word audio
- Word pronunciation → User settings: reads preferences
src/hooks/usePronunciation.ts - Word pronunciation → Learner: requests audio
- User settings → Dictionary catalog: resolves dictionary
src/store/index.ts - User settings → Sound resources: loads sound choices
src/store/index.ts - Dictionary gallery → Dictionary catalog: lists dictionaries
src/pages/Gallery-N/index.tsx - Performance analysis → Practice statistics: renders statistics
src/pages/Analysis/index.tsx - Practice statistics → Local database: queries records
src/pages/Analysis/hooks/useWordStats.ts - Practice statistics → Practice records: aggregates record fields
src/pages/Analysis/hooks/useWordStats.ts - Error book → Local database: reads records
src/pages/ErrorBook/index.tsx - Error book → Record export: offers export
src/pages/ErrorBook/index.tsx - Mistake aggregation → Local database: queries mistakes
src/pages/Gallery-N/hooks/useErrorWords.ts - Mistake aggregation → Chapter words: fetches dictionary words
src/pages/Gallery-N/hooks/useErrorWords.ts - Review records → Local database: stores review sessions
src/utils/db/review-record.ts - Usage analytics → Learner: tracks usage