How jung028/leetcode-spaced-repetition-tool works
LeetCode Review Board is a Bun/React app centered on capturing coding solutions, scheduling spaced reviews, and presenting due work. Its documented workflow runs from manual or LeetCode-page capture through review scheduling to a hidden-solution review and pass/fail rescheduling; the calendar mirrors that schedule on request. The app also has independent Todo, Exam, Jobs, and Home workflows, plus study and planning areas visible in the tree. Edges use README statements or shown imports/registrations; several unsampled subsystems are represented without guessing their internal calls.
Main entry points: index.ts Bun server · api.ts Exam API · leetcode.ts LeetCode reviews · HomeApp.tsx Home board
Components 28
App shell
- Bun server
index.ts - Home board
HomeApp.tsx
Review and due work
- LeetCode reviews
leetcode/leetcode.ts - Review data
leetcode/db.ts - Review API
leetcode/api.ts - Review scheduling
shared/scheduling.ts - Page capture
userscript/leetcode-sync.user.js - Todo list
todo/App.tsx - Todo data
todo/db.ts - Job pipeline
jobs/App.tsx - Job data
jobs/db.ts - Calendar view
UniCalendar.tsx
Exam practice
- Exam practice
exam/App.tsx - Exam API
exam/api.ts - Exam progress
exam/db.ts - Course papers
exam-content - Paper schedule
exam/content.ts - Paper generation
exam/generate.ts
Planning and notes
- Weekly planner
shared/weekly-plan/WeeklyPlanView.tsx - Notes
notes/App.tsx - Module planner
ModulePlanner.tsx - Training plan
training/plan.ts
Other study tools
- Announcements
AnnouncementsBoard.tsx - Interview practice
interview/App.tsx - LeetCode 150
leetcode150/content.ts
Other components
- Learner
- LeetCode page
- Google Calendar
Connections 32
- Learner → Bun server: uses app
- Bun server → Review API: registers routes
index.ts - Bun server → Todo list: serves app
- Bun server → Exam API: registers routes
index.ts - Bun server → Job pipeline: serves app
- Learner → LeetCode reviews: adds solution
- LeetCode page → Page capture: provides solution
- Page capture → Review API: captures problem
- Review API → Review data: reads and writes
leetcode/api.ts - Review data → Review scheduling: uses ladder
leetcode/db.ts - Learner → LeetCode reviews: reviews due items
- LeetCode reviews → Review API: loads and updates
- LeetCode reviews → Calendar view: shows schedule
- Calendar view → Google Calendar: embeds calendar
- Home board → LeetCode reviews: merges due items
- Home board → Todo list: merges due items
- Home board → Exam practice: merges due items
- Home board → Job pipeline: merges next actions
- Todo list → Todo data: manages tasks
todo/App.tsx - Job pipeline → Job data: manages roles
jobs/App.tsx - Exam practice → Exam API: requests papers
exam/App.tsx - Exam API → Exam progress: reads and writes
exam/api.ts - Exam API → Paper schedule: builds schedule
exam/api.ts - Paper schedule → Course papers: aggregates papers
exam/content.ts - Exam API → Paper generation: starts generation
exam/api.ts - Learner → Exam practice: practices papers
- Notes → Weekly planner: renders training
notes/App.tsx - Training plan → Weekly planner: supplies plan
training/App.tsx - Learner → Module planner: plans modules
- Learner → Announcements: views announcements
- Learner → Interview practice: practices interviews
- Learner → LeetCode 150: studies problems