# kwrsahil/learning-roadmap architecture

> Architecture diagram of the GitHub repository kwrsahil/learning-roadmap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kwrsahil/learning-roadmap
- Repository: https://github.com/kwrsahil/learning-roadmap

## Overview

Learning Roadmap is a React tracker for a 13-week, 65-session curriculum. Users browse sessions, open a session to record status, study time, checklist progress and learning notes, then review due material and monitor completion. The app assembles Home, Plan, Review and Progress views around shared progress state. Curriculum content is split by subject; progress calculations and date utilities support the workflow, while persistence handles migration and portable backups. The README describes local browser storage, but sampled storage code also calls a local server API; unsampled server behavior is not detailed here.

Main entry points: [`src/data/roadmap.js`](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/roadmap.js) (Roadmap assembly), [`src/App.jsx`](https://github.com/kwrsahil/learning-roadmap/blob/main/src/App.jsx) (App shell), [`src/utils/progress.js`](https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/progress.js) (Progress calculations), [`src/hooks/useLearningProgress.js`](https://github.com/kwrsahil/learning-roadmap/blob/main/src/hooks/useLearningProgress.js) (Progress state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["App shell<br/>[App.jsx]"]
  node_home["Home view<br/>[HomePage.jsx]"]
  node_plan["Plan view<br/>[PlanPage.jsx]"]
  node_review["Review view<br/>[ReviewPage.jsx]"]
  node_progressview["Progress view<br/>[ProgressPage.jsx]"]
  node_sessiondialog["Session detail<br/>[SessionDialog.jsx]"]
  node_sessionrow["Session row<br/>[SessionRow.jsx]"]
  node_subjectchip["Subject chip<br/>[SubjectChip.jsx]"]
end

subgraph group_curriculum["Curriculum data"]
  node_roadmap["Roadmap assembly<br/>[roadmap.js]"]
  node_personal["Personal syllabus"]
  node_math["Math syllabus<br/>[mathematics.js]"]
  node_programming["Programming syllabus<br/>[programming.js]"]
  node_softwaredev["Software syllabus"]
  node_computersci["CS syllabus"]
  node_subjectmeta["Subject metadata<br/>[subjects.js]"]
end

subgraph group_progress["Progress domain"]
  node_progresshook["Progress state"]
  node_calculations["Progress calculations<br/>[progress.js]"]
  node_dates["Date utilities<br/>[dates.js]"]
end

subgraph group_persistence["Persistence"]
  node_storage["Progress persistence<br/>[storage.js]"]
  node_legacy["Legacy ID map<br/>[legacyIdMap.js]"]
  node_server["Save API server<br/>[index.js]"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"uses state"| node_progresshook
node_app -->|"gets current week"| node_dates
node_app -->|"builds review queues"| node_calculations
node_app -->|"renders"| node_home
node_app -->|"renders"| node_plan
node_app -->|"renders"| node_review
node_app -->|"renders"| node_progressview
node_app -->|"renders"| node_sessiondialog
node_home -->|"reads sessions"| node_roadmap
node_home -->|"calculates summaries"| node_calculations
node_plan -->|"filters sessions"| node_roadmap
node_plan -->|"reads status"| node_calculations
node_plan -->|"renders rows"| node_sessionrow
node_sessionrow -->|"renders"| node_subjectchip
node_sessionrow -->|"reads checklist"| node_calculations
node_review -->|"renders"| node_subjectchip
node_progressview -->|"reads sessions"| node_roadmap
node_progressview -->|"calculates totals"| node_calculations
node_progressview -->|"exports backups"| node_storage
node_sessiondialog -->|"renders"| node_subjectchip
node_sessiondialog -->|"calculates session details"| node_calculations
node_sessiondialog -->|"invokes supplied handlers"| node_progresshook
node_roadmap -->|"combines"| node_personal
node_roadmap -->|"combines"| node_math
node_roadmap -->|"combines"| node_programming
node_roadmap -->|"combines"| node_softwaredev
node_roadmap -->|"combines"| node_computersci
node_progresshook -->|"loads sessions"| node_roadmap
node_progresshook -->|"uses helpers"| node_calculations
node_progresshook -->|"gets today"| node_dates
node_progresshook -->|"loads and saves"| node_storage
node_calculations -->|"computes review dates"| node_dates
node_calculations -->|"uses subject metadata"| node_subjectmeta
node_subjectchip -->|"reads labels and colors"| node_subjectmeta
node_storage -->|"validates session IDs"| node_roadmap
node_storage -->|"maps legacy IDs"| node_legacy
node_storage -->|"normalizes records"| node_calculations
node_storage -->|"requests progress API"| node_server

click node_entry "https://github.com/kwrsahil/learning-roadmap/blob/main/src/main.jsx"
click node_app "https://github.com/kwrsahil/learning-roadmap/blob/main/src/App.jsx"
click node_home "https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/HomePage.jsx"
click node_plan "https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/PlanPage.jsx"
click node_review "https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/ReviewPage.jsx"
click node_progressview "https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/ProgressPage.jsx"
click node_sessiondialog "https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SessionDialog.jsx"
click node_sessionrow "https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SessionRow.jsx"
click node_subjectchip "https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SubjectChip.jsx"
click node_roadmap "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/roadmap.js"
click node_personal "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/personal-integration.js"
click node_math "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/mathematics.js"
click node_programming "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/programming.js"
click node_softwaredev "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/software-development.js"
click node_computersci "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/computer-science.js"
click node_subjectmeta "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects.js"
click node_progresshook "https://github.com/kwrsahil/learning-roadmap/blob/main/src/hooks/useLearningProgress.js"
click node_calculations "https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/progress.js"
click node_dates "https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/dates.js"
click node_storage "https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/storage.js"
click node_legacy "https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/legacyIdMap.js"
click node_server "https://github.com/kwrsahil/learning-roadmap/blob/main/server/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_home,node_plan,node_review,node_progressview,node_sessiondialog,node_sessionrow,node_subjectchip toneBlue
class node_roadmap,node_personal,node_math,node_programming,node_softwaredev,node_computersci,node_subjectmeta toneAmber
class node_progresshook,node_calculations,node_dates toneMint
class node_storage,node_legacy,node_server toneRose
class node_learner toneIndigo
```

## Components

### App experience

- [React entry](https://github.com/kwrsahil/learning-roadmap/blob/main/src/main.jsx): `src/main.jsx`
- [App shell](https://github.com/kwrsahil/learning-roadmap/blob/main/src/App.jsx): `src/App.jsx`
- [Home view](https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [Plan view](https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/PlanPage.jsx): `src/pages/PlanPage.jsx`
- [Review view](https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/ReviewPage.jsx): `src/pages/ReviewPage.jsx`
- [Progress view](https://github.com/kwrsahil/learning-roadmap/blob/main/src/pages/ProgressPage.jsx): `src/pages/ProgressPage.jsx`
- [Session detail](https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SessionDialog.jsx): `src/components/SessionDialog.jsx`
- [Session row](https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SessionRow.jsx): `src/components/SessionRow.jsx`
- [Subject chip](https://github.com/kwrsahil/learning-roadmap/blob/main/src/components/SubjectChip.jsx): `src/components/SubjectChip.jsx`

### Curriculum data

- [Roadmap assembly](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/roadmap.js): `src/data/roadmap.js`
- [Personal syllabus](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/personal-integration.js): `src/data/subjects/personal-integration.js`
- [Math syllabus](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/mathematics.js): `src/data/subjects/mathematics.js`
- [Programming syllabus](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/programming.js): `src/data/subjects/programming.js`
- [Software syllabus](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/software-development.js): `src/data/subjects/software-development.js`
- [CS syllabus](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects/computer-science.js): `src/data/subjects/computer-science.js`
- [Subject metadata](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/subjects.js): `src/data/subjects.js`

### Progress domain

- [Progress state](https://github.com/kwrsahil/learning-roadmap/blob/main/src/hooks/useLearningProgress.js): `src/hooks/useLearningProgress.js`
- [Progress calculations](https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/progress.js): `src/utils/progress.js`
- [Date utilities](https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/dates.js): `src/utils/dates.js`

### Persistence

- [Progress persistence](https://github.com/kwrsahil/learning-roadmap/blob/main/src/utils/storage.js): `src/utils/storage.js`
- [Legacy ID map](https://github.com/kwrsahil/learning-roadmap/blob/main/src/data/legacyIdMap.js): `src/data/legacyIdMap.js`
- [Save API server](https://github.com/kwrsahil/learning-roadmap/blob/main/server/index.js): `server/index.js`

### Other components

- **Learner**

## Connections

- Learner → React entry: opens app (evidence: `README.md`)
- React entry → App shell: renders (evidence: `src/main.jsx`)
- App shell → Progress state: uses state (evidence: `src/App.jsx`)
- App shell → Date utilities: gets current week (evidence: `src/App.jsx`)
- App shell → Progress calculations: builds review queues (evidence: `src/App.jsx`)
- App shell → Home view: renders (evidence: `src/App.jsx`)
- App shell → Plan view: renders (evidence: `src/App.jsx`)
- App shell → Review view: renders (evidence: `src/App.jsx`)
- App shell → Progress view: renders (evidence: `src/App.jsx`)
- App shell → Session detail: renders (evidence: `src/App.jsx`)
- Home view → Roadmap assembly: reads sessions (evidence: `src/pages/HomePage.jsx`)
- Home view → Progress calculations: calculates summaries (evidence: `src/pages/HomePage.jsx`)
- Plan view → Roadmap assembly: filters sessions (evidence: `src/pages/PlanPage.jsx`)
- Plan view → Progress calculations: reads status (evidence: `src/pages/PlanPage.jsx`)
- Plan view → Session row: renders rows (evidence: `src/pages/PlanPage.jsx`)
- Session row → Subject chip: renders (evidence: `src/components/SessionRow.jsx`)
- Session row → Progress calculations: reads checklist (evidence: `src/components/SessionRow.jsx`)
- Review view → Subject chip: renders (evidence: `src/pages/ReviewPage.jsx`)
- Progress view → Roadmap assembly: reads sessions (evidence: `src/pages/ProgressPage.jsx`)
- Progress view → Progress calculations: calculates totals (evidence: `src/pages/ProgressPage.jsx`)
- Progress view → Progress persistence: exports backups (evidence: `src/pages/ProgressPage.jsx`)
- Session detail → Subject chip: renders (evidence: `src/components/SessionDialog.jsx`)
- Session detail → Progress calculations: calculates session details (evidence: `src/components/SessionDialog.jsx`)
- Session detail → Progress state: invokes supplied handlers (evidence: `README.md`)
- Roadmap assembly → Personal syllabus: combines (evidence: `src/data/roadmap.js`)
- Roadmap assembly → Math syllabus: combines (evidence: `src/data/roadmap.js`)
- Roadmap assembly → Programming syllabus: combines (evidence: `src/data/roadmap.js`)
- Roadmap assembly → Software syllabus: combines (evidence: `src/data/roadmap.js`)
- Roadmap assembly → CS syllabus: combines (evidence: `src/data/roadmap.js`)
- Progress state → Roadmap assembly: loads sessions (evidence: `src/hooks/useLearningProgress.js`)
- Progress state → Progress calculations: uses helpers (evidence: `src/hooks/useLearningProgress.js`)
- Progress state → Date utilities: gets today (evidence: `src/hooks/useLearningProgress.js`)
- Progress state → Progress persistence: loads and saves (evidence: `src/hooks/useLearningProgress.js`)
- Progress calculations → Date utilities: computes review dates (evidence: `src/utils/progress.js`)
- Progress calculations → Subject metadata: uses subject metadata (evidence: `src/utils/progress.js`)
- Subject chip → Subject metadata: reads labels and colors (evidence: `src/components/SubjectChip.jsx`)
- Progress persistence → Roadmap assembly: validates session IDs (evidence: `src/utils/storage.js`)
- Progress persistence → Legacy ID map: maps legacy IDs (evidence: `src/utils/storage.js`)
- Progress persistence → Progress calculations: normalizes records (evidence: `src/utils/storage.js`)
- Progress persistence → Save API server: requests progress API (evidence: `src/utils/storage.js`)
