# vasalaajay36/studysync architecture

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

## Overview

StudySync is a student productivity platform combining a React interface with Spring REST APIs and persistent academic records. The main workflow is a student signing in, then managing subjects, tasks, study sessions, and coding profiles; dashboard and analytics summarize productivity, while Focus Mode supports timed study. The README documents the backend’s controller–service–repository layering and major capabilities. Source excerpts show session authentication, task API requests, service-to-repository operations, and coding-profile fetches; other feature-level links are based on README documentation rather than inspected implementations.

Main entry points: [`frontend/src/App.jsx`](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/App.jsx) (React app), [`src/main/java/com/studysync/repository`](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/repository) (JPA repositories), [`src/main/java/com/studysync/service/CodingPlatformService.java`](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/CodingPlatformService.java) (Profile fetch and service), [`src/main/java/com/studysync/controller`](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/controller) (Academic APIs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student interface"]
  node_react["React app<br/>[App.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_dashboard_ui["Dashboard UI<br/>[Dashboard.jsx]"]
  node_tasks_ui["Tasks UI<br/>[Tasks.jsx]"]
  node_subjects_ui["Subjects UI<br/>[Subjects.jsx]"]
  node_sessions_ui["Study sessions UI<br/>[StudySessions.jsx]"]
  node_timer["Focus timer<br/>[StudyTimer.jsx]"]
  node_analytics_ui["Analytics UI<br/>[Analytics.jsx]"]
  node_coding_ui["Coding profiles UI"]
end

subgraph group_identity["Accounts and profiles"]
  node_auth_api["Authentication API"]
  node_student_api["Student API"]
  node_student_service["Student service"]
end

subgraph group_academics["Academic management"]
  node_academic_apis["Academic APIs"]
  node_academic_services["Academic services"]
  node_entities["Domain entities"]
  node_repositories["JPA repositories"]
end

subgraph group_insights["Insights and coding"]
  node_dashboard_api["Dashboard API"]
  node_analytics_service["Analytics service"]
  node_coding_api["Coding profiles API"]
  node_coding_service["Profile fetch and service"]
end

node_student(("Student"))
node_mysql[("MySQL")]
node_leetcode["LeetCode"]
node_codeforces["Codeforces"]

node_student -->|"uses"| node_react
node_react -->|"renders"| node_login
node_react -->|"routes to"| node_dashboard_ui
node_react -->|"routes to"| node_tasks_ui
node_react -->|"routes to"| node_subjects_ui
node_react -->|"routes to"| node_sessions_ui
node_react -->|"routes to"| node_coding_ui
node_react -->|"routes to"| node_analytics_ui
node_react -->|"renders"| node_timer
node_login -.->|"authenticates"| node_auth_api
node_react -->|"checks session"| node_auth_api
node_tasks_ui -->|"requests tasks"| node_academic_apis
node_dashboard_ui -.->|"requests dashboard"| node_dashboard_api
node_subjects_ui -.->|"manages subjects"| node_academic_apis
node_sessions_ui -.->|"manages sessions"| node_academic_apis
node_analytics_ui -.->|"requests analytics"| node_dashboard_api
node_coding_ui -.->|"manages profiles"| node_coding_api
node_auth_api -->|"persists accounts"| node_mysql
node_student_api -->|"delegates"| node_student_service
node_academic_apis -->|"delegates"| node_academic_services
node_academic_services -->|"reads and writes"| node_repositories
node_student_service -->|"reads and writes"| node_repositories
node_academic_services -->|"maps records"| node_entities
node_repositories -->|"persists"| node_mysql
node_dashboard_api -.->|"returns summary"| node_dashboard_ui
node_analytics_service -.->|"aggregates data"| node_repositories
node_coding_api -.->|"delegates"| node_coding_service
node_coding_service -->|"stores profiles"| node_repositories
node_coding_service -->|"fetches profiles"| node_leetcode
node_coding_service -->|"fetches profiles"| node_codeforces

click node_react "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/App.jsx"
click node_login "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Login.jsx"
click node_dashboard_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Dashboard.jsx"
click node_tasks_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Tasks.jsx"
click node_subjects_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Subjects.jsx"
click node_sessions_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/StudySessions.jsx"
click node_timer "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/StudyTimer.jsx"
click node_analytics_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Analytics.jsx"
click node_coding_ui "https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/CodingPlatforms.jsx"
click node_auth_api "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/AuthController.java"
click node_student_api "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/StudentController.java"
click node_student_service "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/StudentService.java"
click node_academic_apis "https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/controller"
click node_academic_services "https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/service"
click node_dashboard_api "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/DashboardController.java"
click node_analytics_service "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/AnalyticsService.java"
click node_coding_api "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/CodingPlatformController.java"
click node_coding_service "https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/CodingPlatformService.java"
click node_entities "https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/entity"
click node_repositories "https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/repository"

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_react,node_login,node_dashboard_ui,node_tasks_ui,node_subjects_ui,node_sessions_ui,node_timer,node_analytics_ui,node_coding_ui toneBlue
class node_auth_api,node_student_api,node_student_service,node_mysql toneAmber
class node_academic_apis,node_academic_services,node_entities,node_repositories toneMint
class node_dashboard_api,node_analytics_service,node_coding_api,node_coding_service toneRose
class node_student,node_leetcode,node_codeforces toneIndigo
```

## Components

### Student interface

- [React app](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Login](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Login.jsx): `frontend/src/components/Login.jsx`
- [Dashboard UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Dashboard.jsx): `frontend/src/components/Dashboard.jsx`
- [Tasks UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Tasks.jsx): `frontend/src/components/Tasks.jsx`
- [Subjects UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Subjects.jsx): `frontend/src/components/Subjects.jsx`
- [Study sessions UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/StudySessions.jsx): `frontend/src/components/StudySessions.jsx`
- [Focus timer](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/StudyTimer.jsx): `frontend/src/components/StudyTimer.jsx`
- [Analytics UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/Analytics.jsx): `frontend/src/components/Analytics.jsx`
- [Coding profiles UI](https://github.com/vasalaajay36/studysync/blob/main/frontend/src/components/CodingPlatforms.jsx): `frontend/src/components/CodingPlatforms.jsx`

### Accounts and profiles

- [Authentication API](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/AuthController.java): `src/main/java/com/studysync/controller/AuthController.java`
- [Student API](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/StudentController.java): `src/main/java/com/studysync/controller/StudentController.java`
- [Student service](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/StudentService.java): `src/main/java/com/studysync/service/StudentService.java`

### Academic management

- [Academic APIs](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/controller): `src/main/java/com/studysync/controller`
- [Academic services](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/service): `src/main/java/com/studysync/service`
- [Domain entities](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/entity): `src/main/java/com/studysync/entity`
- [JPA repositories](https://github.com/vasalaajay36/studysync/tree/main/src/main/java/com/studysync/repository): `src/main/java/com/studysync/repository`

### Insights and coding

- [Dashboard API](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/DashboardController.java): `src/main/java/com/studysync/controller/DashboardController.java`
- [Analytics service](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/AnalyticsService.java): `src/main/java/com/studysync/service/AnalyticsService.java`
- [Coding profiles API](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/controller/CodingPlatformController.java): `src/main/java/com/studysync/controller/CodingPlatformController.java`
- [Profile fetch and service](https://github.com/vasalaajay36/studysync/blob/main/src/main/java/com/studysync/service/CodingPlatformService.java): `src/main/java/com/studysync/service/CodingPlatformService.java`

### Other components

- **Student**
- **MySQL**
- **LeetCode**
- **Codeforces**

## Connections

- Student → React app: uses
- React app → Login: renders (evidence: `frontend/src/App.jsx`)
- React app → Dashboard UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Tasks UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Subjects UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Study sessions UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Coding profiles UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Analytics UI: routes to (evidence: `frontend/src/App.jsx`)
- React app → Focus timer: renders (evidence: `frontend/src/App.jsx`)
- Login → Authentication API: authenticates
- React app → Authentication API: checks session (evidence: `frontend/src/App.jsx`)
- Tasks UI → Academic APIs: requests tasks (evidence: `frontend/src/components/Tasks.jsx`)
- Dashboard UI → Dashboard API: requests dashboard
- Subjects UI → Academic APIs: manages subjects
- Study sessions UI → Academic APIs: manages sessions
- Analytics UI → Dashboard API: requests analytics
- Coding profiles UI → Coding profiles API: manages profiles
- Authentication API → MySQL: persists accounts
- Student API → Student service: delegates (evidence: `src/main/java/com/studysync/controller/StudentController.java`)
- Academic APIs → Academic services: delegates (evidence: `src/main/java/com/studysync/controller/StudySessionController.java`)
- Academic services → JPA repositories: reads and writes (evidence: `src/main/java/com/studysync/service/StudySessionService.java`)
- Student service → JPA repositories: reads and writes (evidence: `src/main/java/com/studysync/service/StudentService.java`)
- Academic services → Domain entities: maps records (evidence: `src/main/java/com/studysync/service/TaskService.java`)
- JPA repositories → MySQL: persists
- Dashboard API → Dashboard UI: returns summary
- Analytics service → JPA repositories: aggregates data
- Coding profiles API → Profile fetch and service: delegates
- Profile fetch and service → JPA repositories: stores profiles (evidence: `src/main/java/com/studysync/service/CodingPlatformService.java`)
- Profile fetch and service → LeetCode: fetches profiles (evidence: `src/main/java/com/studysync/service/CodingPlatformService.java`)
- Profile fetch and service → Codeforces: fetches profiles (evidence: `src/main/java/com/studysync/service/CodingPlatformService.java`)
