# moirangthemomnibha/intelligent_study_planner architecture

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

- Interactive diagram: https://gitdiagram.com/moirangthemomnibha/intelligent_study_planner
- Repository: https://github.com/moirangthemomnibha/intelligent_study_planner

## Overview

This is a starter scaffold for an intelligent study-planning application: students manage academic data, generate planned sessions, track study progress, and use AI assistance. The React application selects screens; its API client and FastAPI routes connect to backend services and persisted models. Authentication, planning, sessions, tasks, analytics, reminders, reports, and settings are represented in the tree, though the README warns that several are placeholders. Relationships below use excerpted wiring and documented capabilities; unsampled subsystems are shown without guessed internal call chains.

Main entry points: [`backend/app/main.py`](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/database/session.py`](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/database/session.py) (Database sessions), [`frontend/src/App.jsx`](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/App.jsx) (Screen router), [`backend/app/modules/auth/router.py`](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/auth/router.py) (Auth routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Student interface"]
  node_app["Screen router<br/>[App.jsx]"]
  node_tasksui["Task screen<br/>[TasksPage.jsx]"]
  node_plannerui["Planner screen<br/>[PlannerPage.jsx]"]
  node_profileui["Profile screen<br/>[ProfilePage.jsx]"]
  node_api["HTTP client<br/>[client.js]"]
end

subgraph group_identity["Identity and profile"]
  node_auth["Authentication<br/>[service.py]"]
  node_authroutes["Auth routes<br/>[router.py]"]
  node_students[("Student profiles<br/>[models.py]")]
end

subgraph group_academics["Academic management"]
  node_subjects[("Subjects<br/>[models.py]")]
  node_topics[("Topics<br/>[models.py]")]
  node_tasks["Academic tasks<br/>[service.py]"]
end

subgraph group_planning["Planning and progress"]
  node_planningroutes["Planning routes<br/>[router.py]"]
  node_planningservice["Plan generation<br/>[service.py]"]
  node_algorithms["Scheduling algorithms<br/>[scheduler.py]"]
  node_sessions[("Study sessions<br/>[models.py]")]
end

subgraph group_intelligence["AI and insights"]
  node_agentroutes["Agent routes<br/>[router.py]"]
  node_agentservice["Agent service<br/>[service.py]"]
  node_ai["AI assistance<br/>[service.py]"]
  node_analytics["Analytics<br/>[service.py]"]
  node_reminders["Reminders<br/>[service.py]"]
  node_reports["Reports<br/>[service.py]"]
end

subgraph group_platform["Application platform"]
  node_main["FastAPI application<br/>[main.py]"]
  node_database[("Database sessions<br/>[session.py]")]
  node_config["Configuration<br/>[config.py]"]
end

node_student(("Student"))

node_student -->|"uses"| node_app
node_app -->|"renders"| node_plannerui
node_app -->|"renders"| node_profileui
node_app -->|"renders"| node_tasksui
node_tasksui -->|"requests data"| node_api
node_main -->|"initializes"| node_database
node_main -->|"registers"| node_authroutes
node_main -->|"registers"| node_planningroutes
node_main -->|"registers"| node_agentroutes
node_main -->|"configures"| node_config
node_authroutes -->|"delegates"| node_auth
node_authroutes -->|"uses sessions"| node_database
node_planningroutes -->|"generates plan"| node_planningservice
node_planningservice -->|"uses scheduling"| node_algorithms
node_planningroutes -->|"persists sessions"| node_sessions
node_agentroutes -->|"delegates"| node_agentservice
node_database -->|"registers model"| node_students
node_database -->|"registers model"| node_subjects
node_database -->|"registers model"| node_topics
node_database -->|"registers model"| node_sessions
node_api -.->|"calls API"| node_main

click node_app "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/App.jsx"
click node_tasksui "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/TasksPage.jsx"
click node_plannerui "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/PlannerPage.jsx"
click node_profileui "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/ProfilePage.jsx"
click node_api "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/api/client.js"
click node_auth "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/auth/service.py"
click node_authroutes "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/auth/router.py"
click node_students "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/students/models.py"
click node_subjects "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/subjects/models.py"
click node_topics "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/topics/models.py"
click node_tasks "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/tasks/service.py"
click node_planningroutes "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/planning/router.py"
click node_planningservice "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/planning/service.py"
click node_algorithms "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/planning/scheduler.py"
click node_sessions "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/sessions/models.py"
click node_agentroutes "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/agent/router.py"
click node_agentservice "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/agent/service.py"
click node_ai "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/ai/service.py"
click node_analytics "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/analytics/service.py"
click node_reminders "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/reminders/service.py"
click node_reports "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/reports/service.py"
click node_main "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/main.py"
click node_database "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/database/session.py"
click node_config "https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/core/config.py"

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_tasksui,node_plannerui,node_profileui,node_api toneBlue
class node_auth,node_authroutes,node_students toneAmber
class node_subjects,node_topics,node_tasks toneMint
class node_planningroutes,node_planningservice,node_algorithms,node_sessions toneRose
class node_agentroutes,node_agentservice,node_ai,node_analytics,node_reminders,node_reports,node_student toneIndigo
class node_main,node_database,node_config toneTeal
```

## Components

### Student interface

- [Screen router](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Task screen](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/TasksPage.jsx): `frontend/src/pages/TasksPage.jsx`
- [Planner screen](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/PlannerPage.jsx): `frontend/src/pages/PlannerPage.jsx`
- [Profile screen](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/pages/ProfilePage.jsx): `frontend/src/pages/ProfilePage.jsx`
- [HTTP client](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`

### Identity and profile

- [Authentication](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/auth/service.py): `backend/app/modules/auth/service.py`
- [Auth routes](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/auth/router.py): `backend/app/modules/auth/router.py`
- [Student profiles](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/students/models.py): `backend/app/modules/students/models.py`

### Academic management

- [Subjects](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/subjects/models.py): `backend/app/modules/subjects/models.py`
- [Topics](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/topics/models.py): `backend/app/modules/topics/models.py`
- [Academic tasks](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/tasks/service.py): `backend/app/modules/tasks/service.py`

### Planning and progress

- [Planning routes](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/planning/router.py): `backend/app/modules/planning/router.py`
- [Plan generation](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/planning/service.py): `backend/app/modules/planning/service.py`
- [Scheduling algorithms](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/planning/scheduler.py): `backend/app/planning/scheduler.py`
- [Study sessions](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/sessions/models.py): `backend/app/modules/sessions/models.py`

### AI and insights

- [Agent routes](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/agent/router.py): `backend/app/modules/agent/router.py`
- [Agent service](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/agent/service.py): `backend/app/modules/agent/service.py`
- [AI assistance](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/ai/service.py): `backend/app/modules/ai/service.py`
- [Analytics](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/analytics/service.py): `backend/app/modules/analytics/service.py`
- [Reminders](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/reminders/service.py): `backend/app/modules/reminders/service.py`
- [Reports](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/modules/reports/service.py): `backend/app/modules/reports/service.py`

### Application platform

- [FastAPI application](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/main.py): `backend/app/main.py`
- [Database sessions](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/database/session.py): `backend/app/database/session.py`
- [Configuration](https://github.com/moirangthemomnibha/intelligent_study_planner/blob/main/backend/app/core/config.py): `backend/app/core/config.py`

### Other components

- **Student**

## Connections

- Student → Screen router: uses (evidence: `frontend/src/App.jsx`)
- Screen router → Planner screen: renders (evidence: `frontend/src/App.jsx`)
- Screen router → Profile screen: renders (evidence: `frontend/src/App.jsx`)
- Screen router → Task screen: renders (evidence: `frontend/src/App.jsx`)
- Task screen → HTTP client: requests data (evidence: `frontend/src/pages/TasksPage.jsx`)
- FastAPI application → Database sessions: initializes (evidence: `backend/app/main.py`)
- FastAPI application → Auth routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Planning routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Agent routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Configuration: configures (evidence: `backend/app/main.py`)
- Auth routes → Authentication: delegates (evidence: `backend/app/modules/auth/router.py`)
- Auth routes → Database sessions: uses sessions (evidence: `backend/app/modules/auth/router.py`)
- Planning routes → Plan generation: generates plan (evidence: `backend/app/modules/planning/router.py`)
- Plan generation → Scheduling algorithms: uses scheduling (evidence: `backend/app/modules/planning/service.py`)
- Planning routes → Study sessions: persists sessions (evidence: `backend/app/modules/planning/router.py`)
- Agent routes → Agent service: delegates (evidence: `backend/app/modules/agent/router.py`)
- Database sessions → Student profiles: registers model (evidence: `backend/app/database/session.py`)
- Database sessions → Subjects: registers model (evidence: `backend/app/database/session.py`)
- Database sessions → Topics: registers model (evidence: `backend/app/database/session.py`)
- Database sessions → Study sessions: registers model (evidence: `backend/app/database/session.py`)
- HTTP client → FastAPI application: calls API
