# janapalanithish/gate-prep-app architecture

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

- Interactive diagram: https://gitdiagram.com/janapalanithish/gate-prep-app
- Repository: https://github.com/janapalanithish/gate-prep-app

## Overview

This is a GATE exam-preparation app for organizing syllabus progress, daily study, revision, and test results. The user-facing flow enters through the React app and its preparation pages; those pages work with app state and local persistence. Distinct workflows cover branch setup, syllabus checklists, daily tasks and focus sessions, mock-test tracking, and settings/backup. The sampled sources show selected page-to-helper relationships, but App routing and much of the store implementation were not inspected, so those connections are omitted.

Main entry points: [`src/pages/DailyActivityPage.tsx`](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/DailyActivityPage.tsx) (Daily activity), [`src/lib/storage.ts`](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/storage.ts) (Local persistence), [`src/main.tsx`](https://github.com/janapalanithish/gate-prep-app/blob/main/src/main.tsx) (React entry), [`src/lib/types.ts`](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/types.ts) (Domain types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
end

subgraph group_study["Study workflows"]
  node_branch["Branch setup"]
  node_checklist["Syllabus checklist"]
  node_countdown["Exam countdown<br/>[GateCountdown.tsx]"]
  node_daily["Daily activity"]
  node_pomodoro["Focus timer<br/>[PomodoroTimer.tsx]"]
  node_tasks["Task manager<br/>[TasksPage.tsx]"]
  node_duration["Duration calculator"]
  node_mocktests["Mock-test log"]
  node_settings["Settings and backup<br/>[SettingsPage.tsx]"]
end

subgraph group_services["App services"]
  node_store["App state<br/>[store.ts]"]
  node_storage[("Local persistence<br/>[storage.ts]")]
  node_syllabus["Syllabus catalog<br/>[syllabusData.ts]"]
  node_streak["Streak and activity engine<br/>[streakEngine.ts]"]
  node_notifications["Notification service"]
  node_confetti["Celebration effects<br/>[confetti.ts]"]
  node_types["Domain types<br/>[types.ts]"]
end

subgraph group_platform["Platform runtime"]
  node_android["Android host<br/>[MainActivity.java]"]
  node_boot["Boot receiver<br/>[BootReceiver.java]"]
end

node_student(("Student"))

node_student -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_checklist -->|"renders"| node_countdown
node_daily -->|"renders"| node_pomodoro
node_daily -->|"generates heatmap"| node_streak
node_daily -->|"cancels reminders"| node_notifications
node_pomodoro -->|"triggers"| node_confetti
node_settings -->|"exports data"| node_storage
node_storage -->|"initializes branch"| node_syllabus
node_storage -->|"uses data types"| node_types
node_streak -->|"uses data types"| node_types
node_syllabus -->|"uses data types"| node_types
node_android -.->|"hosts web app"| node_entry

click node_entry "https://github.com/janapalanithish/gate-prep-app/blob/main/src/main.tsx"
click node_app "https://github.com/janapalanithish/gate-prep-app/blob/main/src/App.tsx"
click node_branch "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/BranchSetupPage.tsx"
click node_checklist "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/ChecklistHubPage.tsx"
click node_countdown "https://github.com/janapalanithish/gate-prep-app/blob/main/src/components/GateCountdown.tsx"
click node_daily "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/DailyActivityPage.tsx"
click node_pomodoro "https://github.com/janapalanithish/gate-prep-app/blob/main/src/components/PomodoroTimer.tsx"
click node_tasks "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/TasksPage.tsx"
click node_duration "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/DurationCalculatorPage.tsx"
click node_mocktests "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/MockTestLogPage.tsx"
click node_settings "https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/SettingsPage.tsx"
click node_store "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/store.ts"
click node_storage "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/storage.ts"
click node_syllabus "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/syllabusData.ts"
click node_streak "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/streakEngine.ts"
click node_notifications "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/notificationService.ts"
click node_confetti "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/confetti.ts"
click node_types "https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/types.ts"
click node_android "https://github.com/janapalanithish/gate-prep-app/blob/main/android/app/src/main/java/com/gateprep/app/MainActivity.java"
click node_boot "https://github.com/janapalanithish/gate-prep-app/blob/main/android/app/src/main/java/com/gateprep/app/BootReceiver.java"

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 toneBlue
class node_branch,node_checklist,node_countdown,node_daily,node_pomodoro,node_tasks,node_duration,node_mocktests,node_settings toneAmber
class node_store,node_storage,node_syllabus,node_streak,node_notifications,node_confetti,node_types toneMint
class node_android,node_boot toneRose
class node_student toneIndigo
```

## Components

### App experience

- [React entry](https://github.com/janapalanithish/gate-prep-app/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/janapalanithish/gate-prep-app/blob/main/src/App.tsx): `src/App.tsx`

### Study workflows

- [Branch setup](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/BranchSetupPage.tsx): `src/pages/BranchSetupPage.tsx`
- [Syllabus checklist](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/ChecklistHubPage.tsx): `src/pages/ChecklistHubPage.tsx`
- [Exam countdown](https://github.com/janapalanithish/gate-prep-app/blob/main/src/components/GateCountdown.tsx): `src/components/GateCountdown.tsx`
- [Daily activity](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/DailyActivityPage.tsx): `src/pages/DailyActivityPage.tsx`
- [Focus timer](https://github.com/janapalanithish/gate-prep-app/blob/main/src/components/PomodoroTimer.tsx): `src/components/PomodoroTimer.tsx`
- [Task manager](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/TasksPage.tsx): `src/pages/TasksPage.tsx`
- [Duration calculator](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/DurationCalculatorPage.tsx): `src/pages/DurationCalculatorPage.tsx`
- [Mock-test log](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/MockTestLogPage.tsx): `src/pages/MockTestLogPage.tsx`
- [Settings and backup](https://github.com/janapalanithish/gate-prep-app/blob/main/src/pages/SettingsPage.tsx): `src/pages/SettingsPage.tsx`

### App services

- [App state](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/store.ts): `src/lib/store.ts`
- [Local persistence](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/storage.ts): `src/lib/storage.ts`
- [Syllabus catalog](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/syllabusData.ts): `src/lib/syllabusData.ts`
- [Streak and activity engine](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/streakEngine.ts): `src/lib/streakEngine.ts`
- [Notification service](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/notificationService.ts): `src/lib/notificationService.ts`
- [Celebration effects](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/confetti.ts): `src/lib/confetti.ts`
- [Domain types](https://github.com/janapalanithish/gate-prep-app/blob/main/src/lib/types.ts): `src/lib/types.ts`

### Platform runtime

- [Android host](https://github.com/janapalanithish/gate-prep-app/blob/main/android/app/src/main/java/com/gateprep/app/MainActivity.java): `android/app/src/main/java/com/gateprep/app/MainActivity.java`
- [Boot receiver](https://github.com/janapalanithish/gate-prep-app/blob/main/android/app/src/main/java/com/gateprep/app/BootReceiver.java): `android/app/src/main/java/com/gateprep/app/BootReceiver.java`

### Other components

- **Student**

## Connections

- Student → React entry: opens (evidence: `src/main.tsx`)
- React entry → App shell: renders (evidence: `src/main.tsx`)
- Syllabus checklist → Exam countdown: renders (evidence: `src/pages/ChecklistHubPage.tsx`)
- Daily activity → Focus timer: renders (evidence: `src/pages/DailyActivityPage.tsx`)
- Daily activity → Streak and activity engine: generates heatmap (evidence: `src/pages/DailyActivityPage.tsx`)
- Daily activity → Notification service: cancels reminders (evidence: `src/pages/DailyActivityPage.tsx`)
- Focus timer → Celebration effects: triggers (evidence: `src/components/PomodoroTimer.tsx`)
- Settings and backup → Local persistence: exports data (evidence: `src/pages/SettingsPage.tsx`)
- Local persistence → Syllabus catalog: initializes branch (evidence: `src/lib/storage.ts`)
- Local persistence → Domain types: uses data types (evidence: `src/lib/storage.ts`)
- Streak and activity engine → Domain types: uses data types (evidence: `src/lib/streakEngine.ts`)
- Syllabus catalog → Domain types: uses data types (evidence: `src/lib/syllabusData.ts`)
- Android host → React entry: hosts web app
