# bvamsikiran/syllabus-to-study-plan-agent-latest architecture

> Architecture diagram of the GitHub repository bvamsikiran/syllabus-to-study-plan-agent-latest, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bvamsikiran/syllabus-to-study-plan-agent-latest
- Repository: https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest

## Overview

Synapse AI is a study-planning and active-recall application. Students enter through onboarding, provide syllabus and exam constraints, shape study bandwidth and resources, then use a generated schedule/dashboard alongside voice recall and handwritten-work analysis. Firebase supplies identity and persistence; optional Google Workspace features cover Drive, Gmail, Slides, and Forms. The graph reflects the shown App orchestration and indexed imports; several feature components and the server were not excerpted, so their internal behavior and some integration links remain unverified.

Main entry points: [`src/App.tsx`](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/App.tsx) (App orchestration), [`src/services/firestoreService.ts`](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/firestoreService.ts) (Study data service), [`src/context/GoogleAuthContext.tsx`](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/context/GoogleAuthContext.tsx) (Auth context), [`src/components/StudyDashboard.tsx`](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/StudyDashboard.tsx) (Study dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Study planning"]
  node_app["App orchestration<br/>[App.tsx]"]
  node_landing["Landing page<br/>[LandingPage.tsx]"]
  node_upload["Syllabus upload<br/>[Step1Upload.tsx]"]
  node_exam["Exam setup<br/>[Step2Exam.tsx]"]
  node_bandwidth["Study bandwidth<br/>[Step3Bandwidth.tsx]"]
  node_resources["Resource planning<br/>[Step4Resources.tsx]"]
  node_schedule["Master schedule<br/>[MasterSchedule.tsx]"]
  node_dashboard["Study dashboard<br/>[StudyDashboard.tsx]"]
  node_nav["Navigation header"]
  node_mockdata["Starter study data<br/>[mockData.ts]"]
end

subgraph group_learning["Study and assessment"]
  node_voice["Voice recall quiz"]
  node_handwriting["Handwritten analysis"]
end

subgraph group_identity["Identity and persistence"]
  node_authui["Google account menu"]
  node_authcontext["Auth context"]
  node_authservice["Firebase / Google auth<br/>[googleAuth.ts]"]
  node_firestore["Study data service"]
  node_firestoredb[("Cloud Firestore")]
end

subgraph group_workspace["Google Workspace"]
  node_driveui["Drive modal"]
  node_drive["Drive service<br/>[googleDrive.ts]"]
  node_gmailui["Gmail sync modal<br/>[GmailSyncModal.tsx]"]
  node_gmail["Gmail service<br/>[googleGmail.ts]"]
  node_slidesui["Slides modal"]
  node_slides["Slides service<br/>[googleSlides.ts]"]
  node_formsui["Forms modal"]
  node_forms["Forms service<br/>[googleForms.ts]"]
end

subgraph group_intelligence["Analysis engine"]
  node_gemma["Local Gemma engine"]
  node_server["Application server<br/>[server.ts]"]
end

node_student(("Student"))
node_google(("Google Workspace"))

node_student -->|"uses"| node_app
node_app -->|"renders"| node_landing
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_upload
node_app -->|"renders"| node_exam
node_app -->|"renders"| node_bandwidth
node_app -->|"renders"| node_resources
node_app -->|"renders"| node_schedule
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_voice
node_app -->|"renders"| node_handwriting
node_app -->|"loads defaults"| node_mockdata
node_app -->|"wraps app"| node_authcontext
node_authcontext -->|"delegates auth"| node_authservice
node_app -->|"loads and saves"| node_firestore
node_firestore -->|"reads and writes"| node_firestoredb
node_dashboard -->|"saves plans"| node_firestore
node_voice -->|"saves quiz results"| node_firestore
node_handwriting -.->|"persists analyses"| node_firestore
node_nav -->|"renders"| node_authui
node_authui -->|"uses auth state"| node_authcontext
node_driveui -.->|"uses service"| node_drive
node_gmailui -.->|"uses service"| node_gmail
node_slidesui -.->|"uses service"| node_slides
node_formsui -.->|"uses service"| node_forms
node_drive -.->|"accesses Drive"| node_google
node_gmail -.->|"accesses Gmail"| node_google
node_slides -.->|"accesses Slides"| node_google
node_forms -.->|"accesses Forms"| node_google
node_server -->|"references engine"| node_gemma

click node_app "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/App.tsx"
click node_landing "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/LandingPage.tsx"
click node_upload "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step1Upload.tsx"
click node_exam "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step2Exam.tsx"
click node_bandwidth "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step3Bandwidth.tsx"
click node_resources "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step4Resources.tsx"
click node_schedule "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/MasterSchedule.tsx"
click node_dashboard "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/StudyDashboard.tsx"
click node_nav "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/NavigationHeader.tsx"
click node_mockdata "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/data/mockData.ts"
click node_voice "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/VoiceRecallQuiz.tsx"
click node_handwriting "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/HandwrittenAnalysis.tsx"
click node_gemma "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/localGemmaEngine.ts"
click node_server "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/server.ts"
click node_authui "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleAuthButton.tsx"
click node_authcontext "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/context/GoogleAuthContext.tsx"
click node_authservice "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleAuth.ts"
click node_firestore "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/firestoreService.ts"
click node_driveui "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleDriveModal.tsx"
click node_drive "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleDrive.ts"
click node_gmailui "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GmailSyncModal.tsx"
click node_gmail "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleGmail.ts"
click node_slidesui "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleSlidesModal.tsx"
click node_slides "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleSlides.ts"
click node_formsui "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleFormsModal.tsx"
click node_forms "https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleForms.ts"

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_landing,node_upload,node_exam,node_bandwidth,node_resources,node_schedule,node_dashboard,node_nav,node_mockdata toneBlue
class node_voice,node_handwriting toneAmber
class node_authui,node_authcontext,node_authservice,node_firestore,node_firestoredb toneMint
class node_driveui,node_drive,node_gmailui,node_gmail,node_slidesui,node_slides,node_formsui,node_forms toneRose
class node_gemma,node_server,node_student,node_google toneIndigo
```

## Components

### Study planning

- [App orchestration](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/App.tsx): `src/App.tsx`
- [Landing page](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/LandingPage.tsx): `src/components/LandingPage.tsx`
- [Syllabus upload](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step1Upload.tsx): `src/components/Step1Upload.tsx`
- [Exam setup](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step2Exam.tsx): `src/components/Step2Exam.tsx`
- [Study bandwidth](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step3Bandwidth.tsx): `src/components/Step3Bandwidth.tsx`
- [Resource planning](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/Step4Resources.tsx): `src/components/Step4Resources.tsx`
- [Master schedule](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/MasterSchedule.tsx): `src/components/MasterSchedule.tsx`
- [Study dashboard](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/StudyDashboard.tsx): `src/components/StudyDashboard.tsx`
- [Navigation header](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/NavigationHeader.tsx): `src/components/NavigationHeader.tsx`
- [Starter study data](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/data/mockData.ts): `src/data/mockData.ts`

### Study and assessment

- [Voice recall quiz](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/VoiceRecallQuiz.tsx): `src/components/VoiceRecallQuiz.tsx`
- [Handwritten analysis](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/HandwrittenAnalysis.tsx): `src/components/HandwrittenAnalysis.tsx`

### Identity and persistence

- [Google account menu](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleAuthButton.tsx): `src/components/GoogleAuthButton.tsx`
- [Auth context](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/context/GoogleAuthContext.tsx): `src/context/GoogleAuthContext.tsx`
- [Firebase / Google auth](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleAuth.ts): `src/services/googleAuth.ts`
- [Study data service](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/firestoreService.ts): `src/services/firestoreService.ts`
- **Cloud Firestore**

### Google Workspace

- [Drive modal](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleDriveModal.tsx): `src/components/GoogleDriveModal.tsx`
- [Drive service](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleDrive.ts): `src/services/googleDrive.ts`
- [Gmail sync modal](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GmailSyncModal.tsx): `src/components/GmailSyncModal.tsx`
- [Gmail service](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleGmail.ts): `src/services/googleGmail.ts`
- [Slides modal](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleSlidesModal.tsx): `src/components/GoogleSlidesModal.tsx`
- [Slides service](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleSlides.ts): `src/services/googleSlides.ts`
- [Forms modal](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/components/GoogleFormsModal.tsx): `src/components/GoogleFormsModal.tsx`
- [Forms service](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/src/services/googleForms.ts): `src/services/googleForms.ts`

### Analysis engine

- [Local Gemma engine](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/localGemmaEngine.ts): `localGemmaEngine.ts`
- [Application server](https://github.com/bvamsikiran/syllabus-to-study-plan-agent-latest/blob/main/server.ts): `server.ts`

### Other components

- **Student**
- **Google Workspace**

## Connections

- Student → App orchestration: uses
- App orchestration → Landing page: renders (evidence: `src/App.tsx`)
- App orchestration → Navigation header: renders (evidence: `src/App.tsx`)
- App orchestration → Syllabus upload: renders (evidence: `src/App.tsx`)
- App orchestration → Exam setup: renders (evidence: `src/App.tsx`)
- App orchestration → Study bandwidth: renders (evidence: `src/App.tsx`)
- App orchestration → Resource planning: renders (evidence: `src/App.tsx`)
- App orchestration → Master schedule: renders (evidence: `src/App.tsx`)
- App orchestration → Study dashboard: renders (evidence: `src/App.tsx`)
- App orchestration → Voice recall quiz: renders (evidence: `src/App.tsx`)
- App orchestration → Handwritten analysis: renders (evidence: `src/App.tsx`)
- App orchestration → Starter study data: loads defaults (evidence: `src/App.tsx`)
- App orchestration → Auth context: wraps app (evidence: `src/App.tsx`)
- Auth context → Firebase / Google auth: delegates auth (evidence: `src/context/GoogleAuthContext.tsx`)
- App orchestration → Study data service: loads and saves (evidence: `src/App.tsx`)
- Study data service → Cloud Firestore: reads and writes (evidence: `src/services/firestoreService.ts`)
- Study dashboard → Study data service: saves plans (evidence: `src/components/StudyDashboard.tsx`)
- Voice recall quiz → Study data service: saves quiz results (evidence: `src/components/VoiceRecallQuiz.tsx`)
- Handwritten analysis → Study data service: persists analyses (evidence: `src/components/HandwrittenAnalysis.tsx`)
- Navigation header → Google account menu: renders (evidence: `src/components/NavigationHeader.tsx`)
- Google account menu → Auth context: uses auth state (evidence: `src/components/GoogleAuthButton.tsx`)
- Drive modal → Drive service: uses service (evidence: `src/components/GoogleDriveModal.tsx`)
- Gmail sync modal → Gmail service: uses service (evidence: `src/components/GmailSyncModal.tsx`)
- Slides modal → Slides service: uses service (evidence: `src/components/GoogleSlidesModal.tsx`)
- Forms modal → Forms service: uses service (evidence: `src/components/GoogleFormsModal.tsx`)
- Drive service → Google Workspace: accesses Drive
- Gmail service → Google Workspace: accesses Gmail
- Slides service → Google Workspace: accesses Slides
- Forms service → Google Workspace: accesses Forms
- Application server → Local Gemma engine: references engine (evidence: `server.ts`)
