# abhinavmaurya29612-ai/study-tracker- architecture

> Architecture diagram of the GitHub repository abhinavmaurya29612-ai/study-tracker-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhinavmaurya29612-ai/study-tracker-
- Repository: https://github.com/abhinavmaurya29612-ai/study-tracker-

## Overview

This is a browser-based Class 9 study tracker, not the generic Vite template described in the README. The main workflow mounts the app, loads study data and actions, then presents dashboard, syllabus, timer, quiz, and task views. The app owns shared state; the hook persists it in localStorage. The excerpts establish the component structure, initial syllabus/quiz data, and persistence, but do not show every callback implementation or the full behavior of each view.

Main entry points: [`src/App.tsx`](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/App.tsx) (Study app), [`src/types.ts`](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/types.ts) (Study data types), [`src/hooks/useStudyApp.ts`](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/hooks/useStudyApp.ts) (Study state), [`src/components/QuizGenerator.tsx`](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/QuizGenerator.tsx) (Quiz generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["Study app<br/>[App.tsx]"]
  node_navigation["Navigation<br/>[Navbar.tsx]"]
end

subgraph group_study["Study features"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_syllabus["Syllabus tracker<br/>[SubjectTracker.tsx]"]
  node_timer["Study timer<br/>[StudyTimer.tsx]"]
  node_quiz["Quiz generator<br/>[QuizGenerator.tsx]"]
  node_tasks["Task planner<br/>[TaskPlanner.tsx]"]
end

subgraph group_state["State and content"]
  node_study_state["Study state<br/>[useStudyApp.ts]"]
  node_local_storage[("Browser storage")]
  node_curriculum["Syllabus and quiz bank<br/>[ncertData.ts]"]
  node_domain_types["Study data types<br/>[types.ts]"]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_syllabus
node_app -->|"renders"| node_timer
node_app -->|"renders"| node_quiz
node_app -->|"renders"| node_tasks
node_app -->|"loads state"| node_study_state
node_study_state -->|"reads and writes"| node_local_storage
node_study_state -->|"loads defaults"| node_curriculum
node_quiz -->|"uses quiz bank"| node_curriculum
node_dashboard -->|"uses data types"| node_domain_types
node_syllabus -->|"uses data types"| node_domain_types
node_timer -->|"uses data types"| node_domain_types
node_quiz -->|"uses data types"| node_domain_types
node_tasks -->|"uses data types"| node_domain_types
node_study_state -->|"uses data types"| node_domain_types
node_curriculum -->|"uses data types"| node_domain_types

click node_app "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/App.tsx"
click node_navigation "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/Navbar.tsx"
click node_dashboard "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/Dashboard.tsx"
click node_syllabus "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/SubjectTracker.tsx"
click node_timer "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/StudyTimer.tsx"
click node_quiz "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/QuizGenerator.tsx"
click node_tasks "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/TaskPlanner.tsx"
click node_study_state "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/hooks/useStudyApp.ts"
click node_curriculum "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/data/ncertData.ts"
click node_domain_types "https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/types.ts"

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_app,node_navigation toneBlue
class node_dashboard,node_syllabus,node_timer,node_quiz,node_tasks toneAmber
class node_study_state,node_local_storage,node_curriculum,node_domain_types toneMint
class node_learner toneIndigo
```

## Components

### App shell

- [Study app](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/Navbar.tsx): `src/components/Navbar.tsx`

### Study features

- [Dashboard](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/Dashboard.tsx): `src/components/Dashboard.tsx`
- [Syllabus tracker](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/SubjectTracker.tsx): `src/components/SubjectTracker.tsx`
- [Study timer](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/StudyTimer.tsx): `src/components/StudyTimer.tsx`
- [Quiz generator](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/QuizGenerator.tsx): `src/components/QuizGenerator.tsx`
- [Task planner](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/components/TaskPlanner.tsx): `src/components/TaskPlanner.tsx`

### State and content

- [Study state](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/hooks/useStudyApp.ts): `src/hooks/useStudyApp.ts`
- **Browser storage**
- [Syllabus and quiz bank](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/data/ncertData.ts): `src/data/ncertData.ts`
- [Study data types](https://github.com/abhinavmaurya29612-ai/study-tracker-/blob/feat/study-tracker-app-15629166846308550805/src/types.ts): `src/types.ts`

### Other components

- **Learner**

## Connections

- Learner → Study app: uses
- Study app → Navigation: renders (evidence: `src/App.tsx`)
- Study app → Dashboard: renders (evidence: `src/App.tsx`)
- Study app → Syllabus tracker: renders (evidence: `src/App.tsx`)
- Study app → Study timer: renders (evidence: `src/App.tsx`)
- Study app → Quiz generator: renders (evidence: `src/App.tsx`)
- Study app → Task planner: renders (evidence: `src/App.tsx`)
- Study app → Study state: loads state (evidence: `src/App.tsx`)
- Study state → Browser storage: reads and writes (evidence: `src/hooks/useStudyApp.ts`)
- Study state → Syllabus and quiz bank: loads defaults (evidence: `src/hooks/useStudyApp.ts`)
- Quiz generator → Syllabus and quiz bank: uses quiz bank (evidence: `src/components/QuizGenerator.tsx`)
- Dashboard → Study data types: uses data types (evidence: `src/components/Dashboard.tsx`)
- Syllabus tracker → Study data types: uses data types (evidence: `src/components/SubjectTracker.tsx`)
- Study timer → Study data types: uses data types (evidence: `src/components/StudyTimer.tsx`)
- Quiz generator → Study data types: uses data types (evidence: `src/components/QuizGenerator.tsx`)
- Task planner → Study data types: uses data types (evidence: `src/components/TaskPlanner.tsx`)
- Study state → Study data types: uses data types (evidence: `src/hooks/useStudyApp.ts`)
- Syllabus and quiz bank → Study data types: uses data types (evidence: `src/data/ncertData.ts`)
