# sreehari462/marksprint architecture

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

- Interactive diagram: https://gitdiagram.com/sreehari462/marksprint
- Repository: https://github.com/sreehari462/marksprint

## Overview

MARKSPRINT is a student-facing quiz and exam-practice application, with teacher content management and student accounts, progress, and social features. The main workflow is subject selection and quiz configuration, followed by question delivery, evaluation, and review. README documents CSV-backed subject content, practice and test modes, timers, and formula rendering; sampled files confirm routing, content editing, authentication, and progress storage. Several quiz components and integrations were not excerpted, so those relationships are shown only where documented.

Main entry points: [`src/main.jsx`](https://github.com/sreehari462/marksprint/blob/main/src/main.jsx) (Routes and layout), [`src/features/quiz/components/QuizActive.jsx`](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuizActive.jsx) (Question session), [`src/features/contentManager/components/ContentManager.jsx`](https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/ContentManager.jsx) (Content editor), [`src/pages/DashboardPage.jsx`](https://github.com/sreehari462/marksprint/blob/main/src/pages/DashboardPage.jsx) (Student dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_shell["Routes and layout<br/>[main.jsx]"]
  node_home["Subject selection<br/>[HomePage.jsx]"]
end

subgraph group_quiz["Quiz experience"]
  node_setup["Quiz setup<br/>[QuizSetup.jsx]"]
  node_engine["Quiz engine<br/>[useQuizEngine.js]"]
  node_active["Question session<br/>[QuizActive.jsx]"]
  node_question["Question display<br/>[QuestionCard.jsx]"]
  node_timer["Quiz timers<br/>[Timer.jsx]"]
  node_results["Results and review<br/>[ResultsBoard.jsx]"]
  node_revision["Revision board<br/>[RevisionBoard.jsx]"]
  node_quizpage["Quiz route<br/>[QuizPage.jsx]"]
end

subgraph group_content["Content management"]
  node_contentpage["Content manager page"]
  node_contentui["Content editor<br/>[ContentManager.jsx]"]
  node_contenthook["Content data manager"]
  node_breadcrumb["Content navigation"]
  node_editor["Question editor<br/>[QuestionEditor.jsx]"]
end

subgraph group_identity["Accounts and progress"]
  node_auth["Authentication<br/>[AuthContext.jsx]"]
  node_firebase["Firebase config<br/>[firebase.js]"]
  node_dashboard["Student dashboard<br/>[DashboardPage.jsx]"]
  node_gamify["Gamification and leagues"]
end

subgraph group_storage["Persistence and integrations"]
  node_history["Quiz history<br/>[resultsStorage.js]"]
  node_driveorg["Drive record book"]
  node_drive["Google Drive API"]
  node_local[("Browser storage")]
end

node_student(("Student"))

node_student -->|"opens app"| node_shell
node_shell -->|"routes to"| node_home
node_shell -->|"routes to"| node_quizpage
node_shell -->|"routes to"| node_contentpage
node_shell -->|"routes to"| node_dashboard
node_home -.->|"selects subject"| node_setup
node_setup -.->|"configures session"| node_engine
node_engine -.->|"drives session"| node_active
node_active -.->|"renders question"| node_question
node_active -.->|"uses timers"| node_timer
node_active -.->|"completes into"| node_results
node_results -.->|"shows review"| node_revision
node_contentpage -->|"renders editor"| node_contentui
node_contentui -->|"uses data manager"| node_contenthook
node_contentui -->|"renders navigation"| node_breadcrumb
node_contentui -->|"renders editor"| node_editor
node_auth -->|"loads services"| node_firebase
node_dashboard -->|"loads history"| node_history
node_dashboard -->|"loads progress"| node_gamify
node_gamify -->|"loads Firestore"| node_firebase
node_history -->|"syncs results"| node_drive
node_driveorg -->|"uses Drive folder"| node_drive
node_history -->|"reads and writes"| node_local

click node_shell "https://github.com/sreehari462/marksprint/blob/main/src/main.jsx"
click node_home "https://github.com/sreehari462/marksprint/blob/main/src/pages/HomePage.jsx"
click node_auth "https://github.com/sreehari462/marksprint/blob/main/src/context/AuthContext.jsx"
click node_firebase "https://github.com/sreehari462/marksprint/blob/main/src/config/firebase.js"
click node_setup "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuizSetup.jsx"
click node_engine "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/hooks/useQuizEngine.js"
click node_active "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuizActive.jsx"
click node_question "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuestionCard.jsx"
click node_timer "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/Timer.jsx"
click node_results "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/ResultsBoard.jsx"
click node_revision "https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/RevisionBoard.jsx"
click node_quizpage "https://github.com/sreehari462/marksprint/blob/main/src/pages/QuizPage.jsx"
click node_contentpage "https://github.com/sreehari462/marksprint/blob/main/src/pages/ContentManagerPage.jsx"
click node_contentui "https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/ContentManager.jsx"
click node_contenthook "https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/hooks/useContentManager.js"
click node_breadcrumb "https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/BreadcrumbNavigation.jsx"
click node_editor "https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/QuestionEditor.jsx"
click node_dashboard "https://github.com/sreehari462/marksprint/blob/main/src/pages/DashboardPage.jsx"
click node_gamify "https://github.com/sreehari462/marksprint/blob/main/src/services/gamificationService.js"
click node_history "https://github.com/sreehari462/marksprint/blob/main/src/services/resultsStorage.js"
click node_driveorg "https://github.com/sreehari462/marksprint/blob/main/src/services/driveOrganizerService.js"
click node_drive "https://github.com/sreehari462/marksprint/blob/main/src/services/googleDriveService.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_shell,node_home toneBlue
class node_setup,node_engine,node_active,node_question,node_timer,node_results,node_revision,node_quizpage toneAmber
class node_contentpage,node_contentui,node_contenthook,node_breadcrumb,node_editor toneMint
class node_auth,node_firebase,node_dashboard,node_gamify toneRose
class node_history,node_driveorg,node_drive,node_local,node_student toneIndigo
```

## Components

### Application shell

- [Routes and layout](https://github.com/sreehari462/marksprint/blob/main/src/main.jsx): `src/main.jsx`
- [Subject selection](https://github.com/sreehari462/marksprint/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`

### Quiz experience

- [Quiz setup](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuizSetup.jsx): `src/features/quiz/components/QuizSetup.jsx`
- [Quiz engine](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/hooks/useQuizEngine.js): `src/features/quiz/hooks/useQuizEngine.js`
- [Question session](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuizActive.jsx): `src/features/quiz/components/QuizActive.jsx`
- [Question display](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/QuestionCard.jsx): `src/features/quiz/components/QuestionCard.jsx`
- [Quiz timers](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/Timer.jsx): `src/features/quiz/components/Timer.jsx`
- [Results and review](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/ResultsBoard.jsx): `src/features/quiz/components/ResultsBoard.jsx`
- [Revision board](https://github.com/sreehari462/marksprint/blob/main/src/features/quiz/components/RevisionBoard.jsx): `src/features/quiz/components/RevisionBoard.jsx`
- [Quiz route](https://github.com/sreehari462/marksprint/blob/main/src/pages/QuizPage.jsx): `src/pages/QuizPage.jsx`

### Content management

- [Content manager page](https://github.com/sreehari462/marksprint/blob/main/src/pages/ContentManagerPage.jsx): `src/pages/ContentManagerPage.jsx`
- [Content editor](https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/ContentManager.jsx): `src/features/contentManager/components/ContentManager.jsx`
- [Content data manager](https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/hooks/useContentManager.js): `src/features/contentManager/hooks/useContentManager.js`
- [Content navigation](https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/BreadcrumbNavigation.jsx): `src/features/contentManager/components/BreadcrumbNavigation.jsx`
- [Question editor](https://github.com/sreehari462/marksprint/blob/main/src/features/contentManager/components/QuestionEditor.jsx): `src/features/contentManager/components/QuestionEditor.jsx`

### Accounts and progress

- [Authentication](https://github.com/sreehari462/marksprint/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Firebase config](https://github.com/sreehari462/marksprint/blob/main/src/config/firebase.js): `src/config/firebase.js`
- [Student dashboard](https://github.com/sreehari462/marksprint/blob/main/src/pages/DashboardPage.jsx): `src/pages/DashboardPage.jsx`
- [Gamification and leagues](https://github.com/sreehari462/marksprint/blob/main/src/services/gamificationService.js): `src/services/gamificationService.js`

### Persistence and integrations

- [Quiz history](https://github.com/sreehari462/marksprint/blob/main/src/services/resultsStorage.js): `src/services/resultsStorage.js`
- [Drive record book](https://github.com/sreehari462/marksprint/blob/main/src/services/driveOrganizerService.js): `src/services/driveOrganizerService.js`
- [Google Drive API](https://github.com/sreehari462/marksprint/blob/main/src/services/googleDriveService.js): `src/services/googleDriveService.js`
- **Browser storage**

### Other components

- **Student**

## Connections

- Student → Routes and layout: opens app (evidence: `src/main.jsx`)
- Routes and layout → Subject selection: routes to (evidence: `src/main.jsx`)
- Routes and layout → Quiz route: routes to (evidence: `src/main.jsx`)
- Routes and layout → Content manager page: routes to (evidence: `src/main.jsx`)
- Routes and layout → Student dashboard: routes to (evidence: `src/main.jsx`)
- Subject selection → Quiz setup: selects subject (evidence: `README.md`)
- Quiz setup → Quiz engine: configures session (evidence: `README.md`)
- Quiz engine → Question session: drives session (evidence: `README.md`)
- Question session → Question display: renders question (evidence: `README.md`)
- Question session → Quiz timers: uses timers (evidence: `README.md`)
- Question session → Results and review: completes into (evidence: `README.md`)
- Results and review → Revision board: shows review (evidence: `README.md`)
- Content manager page → Content editor: renders editor (evidence: `src/pages/ContentManagerPage.jsx`)
- Content editor → Content data manager: uses data manager (evidence: `src/features/contentManager/components/ContentManager.jsx`)
- Content editor → Content navigation: renders navigation (evidence: `src/features/contentManager/components/ContentManager.jsx`)
- Content editor → Question editor: renders editor (evidence: `src/features/contentManager/components/ContentManager.jsx`)
- Authentication → Firebase config: loads services (evidence: `src/context/AuthContext.jsx`)
- Student dashboard → Quiz history: loads history (evidence: `src/pages/DashboardPage.jsx`)
- Student dashboard → Gamification and leagues: loads progress (evidence: `src/pages/DashboardPage.jsx`)
- Gamification and leagues → Firebase config: loads Firestore (evidence: `src/services/gamificationService.js`)
- Quiz history → Google Drive API: syncs results (evidence: `src/services/resultsStorage.js`)
- Drive record book → Google Drive API: uses Drive folder (evidence: `src/services/driveOrganizerService.js`)
- Quiz history → Browser storage: reads and writes (evidence: `src/services/resultsStorage.js`)
