# navyarm2006/studymate-ai architecture

> Architecture diagram of the GitHub repository navyarm2006/studymate-ai, 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/navyarm2006/studymate-ai
- Repository: https://github.com/navyarm2006/studymate-ai

## Overview

StudyMate AI is a Streamlit study-planning app. Students enter exam timing, available hours, topics, difficulty, and completed work; the app tracks progress and can create or replan a schedule, with a downloadable backup plan available if AI planning is unavailable. The sampled code shows validation and the plan-generation call, but the excerpts omit some wiring and the Gemini implementation, so those relationships are not expanded beyond what is visible.

Main entry points: [`app.py`](https://github.com/navyarm2006/studymate-ai/blob/main/app.py) (Plan Request)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Study Setup"]
  node_study_inputs["Study Inputs<br/>[app.py]"]
  node_topic_lists["Topic Lists<br/>[app.py]"]
  node_validation["Input Validation<br/>[app.py]"]
end

subgraph group_progress["Progress Tracking"]
  node_progress_dashboard["Progress Dashboard<br/>[app.py]"]
end

subgraph group_planning["Study Planning"]
  node_plan_request["Plan Request<br/>[app.py]"]
  node_ai_plan["AI Plan Generation<br/>[app.py]"]
  node_backup_plan["Backup Plan<br/>[app.py]"]
  node_replanning["Adaptive Replanning<br/>[app.py]"]
end

node_student(("Student"))

node_student -->|"enters details"| node_study_inputs
node_study_inputs -->|"parses topics"| node_topic_lists
node_topic_lists -->|"shows progress"| node_progress_dashboard
node_plan_request -->|"validates inputs"| node_validation
node_plan_request -->|"generates plan"| node_ai_plan
node_replanning -->|"requests plan"| node_plan_request

click node_study_inputs "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_topic_lists "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_validation "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_progress_dashboard "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_plan_request "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_ai_plan "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_backup_plan "https://github.com/navyarm2006/studymate-ai/blob/main/app.py"
click node_replanning "https://github.com/navyarm2006/studymate-ai/blob/main/app.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_study_inputs,node_topic_lists,node_validation toneBlue
class node_progress_dashboard toneAmber
class node_plan_request,node_ai_plan,node_backup_plan,node_replanning toneMint
class node_student toneIndigo
```

## Components

### Study Setup

- [Study Inputs](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`
- [Topic Lists](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`
- [Input Validation](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`

### Progress Tracking

- [Progress Dashboard](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`

### Study Planning

- [Plan Request](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`
- [AI Plan Generation](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`
- [Backup Plan](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`
- [Adaptive Replanning](https://github.com/navyarm2006/studymate-ai/blob/main/app.py): `app.py`

### Other components

- **Student**

## Connections

- Student → Study Inputs: enters details (evidence: `app.py`)
- Study Inputs → Topic Lists: parses topics (evidence: `app.py`)
- Topic Lists → Progress Dashboard: shows progress (evidence: `app.py`)
- Plan Request → Input Validation: validates inputs (evidence: `app.py`)
- Plan Request → AI Plan Generation: generates plan (evidence: `app.py`)
- Adaptive Replanning → Plan Request: requests plan (evidence: `app.py`)
