# siddhisharmaup85-web/study-load architecture

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

- Interactive diagram: https://gitdiagram.com/siddhisharmaup85-web/study-load
- Repository: https://github.com/siddhisharmaup85-web/study-load

## Overview

Smart Study Load Balancer is a local-first React app for organizing subjects and study sessions, then using study history and preferences to generate a balanced weekly plan. Students navigate between dashboard, subject, session, planning, and settings views; changes flow through shared context and persist in browser storage. The README also describes analytics and calendar export, but only some implementation details are shown. Edges reflect the excerpts, SOURCE INDEX references, or README; unsampled features are represented without speculative wiring.

Main entry points: [`src/App.jsx`](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/App.jsx) (App Router), [`src/context/StudyContext.jsx`](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/context/StudyContext.jsx) (Study State), [`src/pages/Dashboard.jsx`](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Dashboard.jsx) (Dashboard Analytics), [`src/pages/WeeklyPlan.jsx`](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/WeeklyPlan.jsx) (Weekly Planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_app["App Router<br/>[App.jsx]"]
  node_sidebar["Navigation<br/>[Sidebar.jsx]"]
end

subgraph group_study["Study Management"]
  node_subjects["Subject Management<br/>[Subjects.jsx]"]
  node_sessions["Session Tracking<br/>[Sessions.jsx]"]
  node_settings["Preferences<br/>[Settings.jsx]"]
  node_about["About Page<br/>[About.jsx]"]
end

subgraph group_planning["Planning and Insights"]
  node_dashboard["Dashboard Analytics<br/>[Dashboard.jsx]"]
  node_weekly["Weekly Planner<br/>[WeeklyPlan.jsx]"]
  node_balancer["Load Balancer<br/>[aiBalancer.js]"]
end

subgraph group_state["Shared State"]
  node_context["Study State<br/>[StudyContext.jsx]"]
  node_storage[("Browser LocalStorage")]
end

node_student(("Student"))

node_student -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"provides state"| node_context
node_app -->|"renders"| node_sidebar
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_subjects
node_app -->|"routes to"| node_sessions
node_app -->|"routes to"| node_weekly
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_about
node_sidebar -->|"sets page"| node_context
node_subjects -->|"manages subjects"| node_context
node_sessions -->|"manages sessions"| node_context
node_settings -->|"updates preferences"| node_context
node_dashboard -->|"reads study data"| node_context
node_dashboard -->|"generates suggestions"| node_balancer
node_weekly -->|"reads and saves plan"| node_context
node_weekly -->|"generates plan"| node_balancer
node_context -->|"loads and saves"| node_storage

click node_entry "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/main.jsx"
click node_app "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/App.jsx"
click node_sidebar "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/components/Layout/Sidebar.jsx"
click node_subjects "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Subjects.jsx"
click node_sessions "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Sessions.jsx"
click node_settings "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Settings.jsx"
click node_about "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/About.jsx"
click node_dashboard "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Dashboard.jsx"
click node_weekly "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/WeeklyPlan.jsx"
click node_balancer "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/utils/aiBalancer.js"
click node_context "https://github.com/siddhisharmaup85-web/study-load/blob/main/src/context/StudyContext.jsx"

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_sidebar toneBlue
class node_subjects,node_sessions,node_settings,node_about toneAmber
class node_dashboard,node_weekly,node_balancer toneMint
class node_context,node_storage toneRose
class node_student toneIndigo
```

## Components

### Application Shell

- [React Entry](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/main.jsx): `src/main.jsx`
- [App Router](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/components/Layout/Sidebar.jsx): `src/components/Layout/Sidebar.jsx`

### Study Management

- [Subject Management](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Subjects.jsx): `src/pages/Subjects.jsx`
- [Session Tracking](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Sessions.jsx): `src/pages/Sessions.jsx`
- [Preferences](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Settings.jsx): `src/pages/Settings.jsx`
- [About Page](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/About.jsx): `src/pages/About.jsx`

### Planning and Insights

- [Dashboard Analytics](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Weekly Planner](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/pages/WeeklyPlan.jsx): `src/pages/WeeklyPlan.jsx`
- [Load Balancer](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/utils/aiBalancer.js): `src/utils/aiBalancer.js`

### Shared State

- [Study State](https://github.com/siddhisharmaup85-web/study-load/blob/main/src/context/StudyContext.jsx): `src/context/StudyContext.jsx`
- **Browser LocalStorage**

### Other components

- **Student**

## Connections

- Student → React Entry: opens app (evidence: `src/main.jsx`)
- React Entry → App Router: renders (evidence: `src/main.jsx`)
- App Router → Study State: provides state (evidence: `src/App.jsx`)
- App Router → Navigation: renders (evidence: `src/App.jsx`)
- App Router → Dashboard Analytics: routes to (evidence: `src/App.jsx`)
- App Router → Subject Management: routes to (evidence: `src/App.jsx`)
- App Router → Session Tracking: routes to (evidence: `src/App.jsx`)
- App Router → Weekly Planner: routes to (evidence: `src/App.jsx`)
- App Router → Preferences: routes to (evidence: `src/App.jsx`)
- App Router → About Page: routes to (evidence: `src/App.jsx`)
- Navigation → Study State: sets page (evidence: `src/components/Layout/Sidebar.jsx`)
- Subject Management → Study State: manages subjects (evidence: `src/pages/Subjects.jsx`)
- Session Tracking → Study State: manages sessions (evidence: `src/pages/Sessions.jsx`)
- Preferences → Study State: updates preferences (evidence: `src/pages/Settings.jsx`)
- Dashboard Analytics → Study State: reads study data (evidence: `src/pages/Dashboard.jsx`)
- Dashboard Analytics → Load Balancer: generates suggestions (evidence: `src/pages/Dashboard.jsx`)
- Weekly Planner → Study State: reads and saves plan (evidence: `src/pages/WeeklyPlan.jsx`)
- Weekly Planner → Load Balancer: generates plan (evidence: `src/pages/WeeklyPlan.jsx`)
- Study State → Browser LocalStorage: loads and saves (evidence: `src/context/StudyContext.jsx`)
