# nagaraj-s-patil/revise_stack architecture

> Architecture diagram of the GitHub repository nagaraj-s-patil/revise_stack, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nagaraj-s-patil/revise_stack
- Repository: https://github.com/nagaraj-s-patil/revise_stack

## Overview

Revise Stack is an installable, offline-capable revision tracker for a Java Full Stack syllabus. A learner reviews the day’s due revision or new topic, takes a test in an external AI chat, pastes the structured result (or enters a manual score), and the app records progress and schedules revisions. The map also includes learning-path, readiness, analysis, project, interview, backup, profile, and cloud-sync capabilities documented in the README. Edges are limited to relationships shown in excerpts or explicitly documented; unsampled internals are represented by their listed source paths.

Main entry points: [`js/shell.js`](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/shell.js) (Page shell), [`js/pages/topic.js`](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/topic.js) (Topic study), [`js/state/store.js`](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/state/store.js) (Saved local state), [`js/pages/progress.js`](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/progress.js) (Progress and readiness)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study["Study workflow"]
  node_syllabus_data["Syllabus data<br/>[syllabus.js]"]
  node_today["Today plan<br/>[today.js]"]
  node_topic["Topic study<br/>[topic.js]"]
  node_prompts["Test prompts<br/>[prompts.js]"]
  node_result_flow["Result capture<br/>[result-flow.js]"]
  node_parser["Result parser<br/>[parser.js]"]
  node_levels_schedule["Levels and revisions<br/>[levels.js]"]
  node_study_planning["Study planning<br/>[plan.js]"]
  node_prerequisites["Prerequisites<br/>[prereq.js]"]
  node_youtube["YouTube searches<br/>[youtube.js]"]
  node_learning_path["Learning Path<br/>[syllabus.js]"]
end

subgraph group_progress["Progress insights"]
  node_progress_page["Progress and readiness<br/>[progress.js]"]
  node_progress_logic["Progress logic<br/>[progress.js]"]
  node_mistakes["Mistake review<br/>[mistakes.js]"]
  node_analysis_page["Analysis<br/>[analysis.js]"]
  node_analysis_logic["Analysis metrics<br/>[analysis.js]"]
  node_dashboard["Dashboard metrics<br/>[dashboard-data.js]"]
  node_projects["Projects<br/>[projects.js]"]
  node_interview["Interview prep<br/>[interview.js]"]
end

subgraph group_account["Account and sync"]
  node_state[("Saved local state<br/>[store.js]")]
  node_backup["Backup and restore<br/>[backup.js]"]
  node_profile["Learner profile<br/>[profile.js]"]
  node_cloud_sync["Cloud sync<br/>[sync.js]"]
end

subgraph group_presentation["App navigation and UI"]
  node_app_entry["App startup<br/>[app.js]"]
  node_router["Hash router<br/>[router.js]"]
  node_shell["Page shell<br/>[shell.js]"]
  node_dom["DOM builder<br/>[dom.js]"]
end

node_learner(("Learner"))
node_ai_chat{{"AI chat"}}
node_firebase[("Firebase / Firestore")]

node_learner -->|"chooses task"| node_today
node_today -->|"opens topic"| node_topic
node_learner -->|"studies topic"| node_topic
node_topic -.->|"builds prompt"| node_prompts
node_prompts -->|"copies prompt"| node_ai_chat
node_ai_chat -->|"returns test"| node_learner
node_learner -->|"pastes result"| node_result_flow
node_result_flow -->|"parses reply"| node_parser
node_result_flow -->|"saves result"| node_state
node_learner -->|"enters score"| node_result_flow
node_learning_path -->|"links topic"| node_topic
node_syllabus_data -->|"provides topics"| node_learning_path
node_state -->|"supplies test history"| node_levels_schedule
node_levels_schedule -->|"guides next task"| node_today
node_state -->|"provides progress"| node_progress_page
node_progress_page -->|"calculates progress"| node_progress_logic
node_progress_page -->|"checks readiness"| node_projects
node_progress_page -->|"shows repeated mistakes"| node_mistakes
node_state -->|"provides saved tests"| node_analysis_page
node_analysis_page -->|"requests metrics"| node_analysis_logic
node_dashboard -->|"supplies dashboard data"| node_today
node_learner -->|"builds mock interview"| node_interview
node_learner -->|"backs up data"| node_backup
node_learner -->|"edits profile"| node_profile
node_app_entry -->|"loads syllabus"| node_syllabus_data
node_app_entry -->|"loads local data"| node_state
node_app_entry -->|"starts sync"| node_cloud_sync
node_cloud_sync -->|"merges local data"| node_state
node_cloud_sync -->|"reads and writes"| node_firebase
node_learner -->|"signs in"| node_firebase
node_router -->|"selects route"| node_shell
node_shell -->|"renders page"| node_today
node_shell -->|"renders page"| node_learning_path
node_shell -->|"renders page"| node_progress_page
node_shell -->|"renders page"| node_analysis_page
node_shell -->|"renders page"| node_interview
node_learning_path -->|"builds interface"| node_dom
node_app_entry -->|"renders app"| node_shell
node_topic -->|"shows requirements"| node_prerequisites
node_topic -->|"offers searches"| node_youtube

click node_app_entry "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/app.js"
click node_syllabus_data "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/data/syllabus.js"
click node_today "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/today.js"
click node_topic "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/topic.js"
click node_prompts "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/prompts.js"
click node_result_flow "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/components/result-flow.js"
click node_parser "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/parser.js"
click node_levels_schedule "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/levels.js"
click node_study_planning "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/plan.js"
click node_prerequisites "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/prereq.js"
click node_youtube "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/youtube.js"
click node_learning_path "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/syllabus.js"
click node_progress_page "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/progress.js"
click node_progress_logic "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/progress.js"
click node_mistakes "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/mistakes.js"
click node_analysis_page "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/analysis.js"
click node_analysis_logic "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/analysis.js"
click node_dashboard "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/dashboard-data.js"
click node_projects "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/projects.js"
click node_interview "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/interview.js"
click node_state "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/state/store.js"
click node_backup "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/backup.js"
click node_profile "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/profile.js"
click node_cloud_sync "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/cloud/sync.js"
click node_router "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/router.js"
click node_shell "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/shell.js"
click node_dom "https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/dom.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_syllabus_data,node_today,node_topic,node_prompts,node_result_flow,node_parser,node_levels_schedule,node_study_planning,node_prerequisites,node_youtube,node_learning_path toneBlue
class node_progress_page,node_progress_logic,node_mistakes,node_analysis_page,node_analysis_logic,node_dashboard,node_projects,node_interview,node_firebase toneAmber
class node_state,node_backup,node_profile,node_cloud_sync toneMint
class node_app_entry,node_router,node_shell,node_dom toneRose
class node_learner,node_ai_chat toneIndigo
```

## Components

### Study workflow

- [Syllabus data](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/data/syllabus.js): `js/data/syllabus.js`
- [Today plan](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/today.js): `js/pages/today.js`
- [Topic study](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/topic.js): `js/pages/topic.js`
- [Test prompts](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/prompts.js): `js/core/prompts.js`
- [Result capture](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/components/result-flow.js): `js/ui/components/result-flow.js`
- [Result parser](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/parser.js): `js/core/parser.js`
- [Levels and revisions](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/levels.js): `js/core/levels.js`
- [Study planning](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/plan.js): `js/core/plan.js`
- [Prerequisites](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/prereq.js): `js/core/prereq.js`
- [YouTube searches](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/youtube.js): `js/core/youtube.js`
- [Learning Path](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/syllabus.js): `js/pages/syllabus.js`

### Progress insights

- [Progress and readiness](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/progress.js): `js/pages/progress.js`
- [Progress logic](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/progress.js): `js/core/progress.js`
- [Mistake review](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/mistakes.js): `js/core/mistakes.js`
- [Analysis](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/analysis.js): `js/pages/analysis.js`
- [Analysis metrics](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/analysis.js): `js/core/analysis.js`
- [Dashboard metrics](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/dashboard-data.js): `js/core/dashboard-data.js`
- [Projects](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/projects.js): `js/core/projects.js`
- [Interview prep](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/pages/interview.js): `js/pages/interview.js`

### Account and sync

- [Saved local state](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/state/store.js): `js/state/store.js`
- [Backup and restore](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/backup.js): `js/core/backup.js`
- [Learner profile](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/core/profile.js): `js/core/profile.js`
- [Cloud sync](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/cloud/sync.js): `js/cloud/sync.js`

### App navigation and UI

- [App startup](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/app.js): `js/app.js`
- [Hash router](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/router.js): `js/ui/router.js`
- [Page shell](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/shell.js): `js/shell.js`
- [DOM builder](https://github.com/nagaraj-s-patil/revise_stack/blob/main/js/ui/dom.js): `js/ui/dom.js`

### Other components

- **Learner**
- **AI chat**
- **Firebase / Firestore**

## Connections

- Learner → Today plan: chooses task (evidence: `README.md`)
- Today plan → Topic study: opens topic (evidence: `README.md`)
- Learner → Topic study: studies topic (evidence: `README.md`)
- Topic study → Test prompts: builds prompt
- Test prompts → AI chat: copies prompt (evidence: `README.md`)
- AI chat → Learner: returns test (evidence: `README.md`)
- Learner → Result capture: pastes result (evidence: `README.md`)
- Result capture → Result parser: parses reply (evidence: `js/ui/components/result-flow.js`)
- Result capture → Saved local state: saves result (evidence: `js/ui/components/result-flow.js`)
- Learner → Result capture: enters score (evidence: `README.md`)
- Learning Path → Topic study: links topic (evidence: `js/pages/syllabus.js`)
- Syllabus data → Learning Path: provides topics
- Saved local state → Levels and revisions: supplies test history (evidence: `README.md`)
- Levels and revisions → Today plan: guides next task (evidence: `README.md`)
- Saved local state → Progress and readiness: provides progress (evidence: `js/pages/progress.js`)
- Progress and readiness → Progress logic: calculates progress (evidence: `js/pages/progress.js`)
- Progress and readiness → Projects: checks readiness (evidence: `js/pages/progress.js`)
- Progress and readiness → Mistake review: shows repeated mistakes (evidence: `README.md`)
- Saved local state → Analysis: provides saved tests (evidence: `js/pages/analysis.js`)
- Analysis → Analysis metrics: requests metrics (evidence: `js/pages/analysis.js`)
- Dashboard metrics → Today plan: supplies dashboard data (evidence: `README.md`)
- Learner → Interview prep: builds mock interview (evidence: `README.md`)
- Learner → Backup and restore: backs up data (evidence: `README.md`)
- Learner → Learner profile: edits profile (evidence: `README.md`)
- App startup → Syllabus data: loads syllabus (evidence: `js/app.js`)
- App startup → Saved local state: loads local data (evidence: `js/app.js`)
- App startup → Cloud sync: starts sync (evidence: `js/app.js`)
- Cloud sync → Saved local state: merges local data (evidence: `js/cloud/sync.js`)
- Cloud sync → Firebase / Firestore: reads and writes (evidence: `js/cloud/sync.js`)
- Learner → Firebase / Firestore: signs in (evidence: `README.md`)
- Hash router → Page shell: selects route (evidence: `js/shell.js`)
- Page shell → Today plan: renders page (evidence: `js/shell.js`)
- Page shell → Learning Path: renders page (evidence: `js/shell.js`)
- Page shell → Progress and readiness: renders page (evidence: `js/shell.js`)
- Page shell → Analysis: renders page (evidence: `js/shell.js`)
- Page shell → Interview prep: renders page (evidence: `js/shell.js`)
- Learning Path → DOM builder: builds interface (evidence: `js/pages/syllabus.js`)
- App startup → Page shell: renders app (evidence: `js/app.js`)
- Topic study → Prerequisites: shows requirements (evidence: `README.md`)
- Topic study → YouTube searches: offers searches (evidence: `README.md`)
