How ssreal/lc-recall works
LC Recall is a browser-based coding-interview flashcard app. Users review due cards (or cram), rate recall, and see updated schedules; they can also browse and edit a problem deck, create cards, import LLM-generated cards, inspect analytics, and back up or restore data. The graph separates the React interface, study/card domain logic, and browser persistence, with Markdown/code rendering as an internal presentation layer. Some links rely on the SOURCE INDEX or README because the relevant source was not fully sampled.
Main entry points: App.tsx App coordinator · storage.ts Deck storage and JSON · fsrs.ts FSRS scheduler · ReviewSession.tsx Review session
Components 19
Application interface
- App coordinator
src/App.tsx - Navigation and theme
src/components/Header.tsx - Review session
src/components/ReviewSession.tsx - Problem deck
src/components/CardList.tsx - Card editor
src/components/CardModal.tsx - Backup and restore
src/components/ImportExportModal.tsx - Prompt import
src/components/LLMPromptImportModal.tsx - Memory analytics
src/components/StatsView.tsx
Study and card logic
- FSRS scheduler
lib/fsrs.ts - Prompt and response parsing
lib/promptGenerator.ts - Starter deck
lib/starterCards.ts - Card shuffling
lib/shuffle.ts - Flashcard model
types/flashcard.ts
Deck persistence
- Deck storage and JSON
lib/storage.ts - Browser local storage
Content rendering
- Markdown renderer
src/components/common/MarkdownRenderer.tsx - Code block renderer
src/components/common/CodeBlock.tsx - Syntax highlighting
src/lib/prism.ts
Other components
- Learner
Connections 30
- Learner → App coordinator: uses
README.md - App coordinator → Deck storage and JSON: loads and saves
src/App.tsx - App coordinator → Navigation and theme: renders
src/App.tsx - App coordinator → Review session: renders
src/App.tsx - App coordinator → Problem deck: renders
src/App.tsx - App coordinator → Memory analytics: renders
src/App.tsx - App coordinator → Card editor: renders
src/App.tsx - App coordinator → Backup and restore: renders
src/App.tsx - App coordinator → Prompt import: renders
src/App.tsx - Review session → FSRS scheduler: updates schedule
src/components/ReviewSession.tsx - Review session → Card shuffling: shuffles cards
src/components/ReviewSession.tsx - Problem deck → Markdown renderer: renders content
src/components/CardList.tsx - Problem deck → FSRS scheduler: uses scheduling
src/components/CardList.tsx - Card editor → FSRS scheduler: uses scheduling
src/components/CardModal.tsx - Card editor → Markdown renderer: renders content
src/components/CardModal.tsx - Card editor → Code block renderer: renders snippets
src/components/CardModal.tsx - Backup and restore → Deck storage and JSON: imports and exports
src/components/ImportExportModal.tsx - Backup and restore → Starter deck: resets to starters
src/components/ImportExportModal.tsx - Prompt import → Prompt and response parsing: generates and parses
src/components/LLMPromptImportModal.tsx - Prompt import → Code block renderer: renders snippets
src/components/LLMPromptImportModal.tsx - Markdown renderer → Code block renderer: renders code
src/components/common/MarkdownRenderer.tsx - Code block renderer → Syntax highlighting: highlights code
src/components/common/CodeBlock.tsx - Deck storage and JSON → Browser local storage: reads and writes
lib/storage.ts - Deck storage and JSON → Starter deck: initializes deck
lib/storage.ts - Starter deck → FSRS scheduler: creates scheduler cards
lib/starterCards.ts - Prompt and response parsing → FSRS scheduler: creates scheduler cards
lib/promptGenerator.ts - Deck storage and JSON → Flashcard model: converts card data
lib/storage.ts - Prompt and response parsing → Flashcard model: builds flashcards
lib/promptGenerator.ts - Review session → Flashcard model: uses card model
src/components/ReviewSession.tsx - Memory analytics → Flashcard model: reads card model
src/components/StatsView.tsx