# aabbhii/pdf-study- architecture

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

- Interactive diagram: https://gitdiagram.com/aabbhii/pdf-study-
- Repository: https://github.com/aabbhii/pdf-study-

## Overview

This is a student and faculty campus-management portal: users sign in, enter a protected dashboard, and work with academic schedules, announcements, resources, events, projects, study tools, and AI utilities. The graph emphasizes those domain areas and the shared API/auth layers. Several feature pages and integrations were not sampled; their presence is supported by the route table and file tree, but uncertain implementation links are omitted.

Main entry points: [`src/App.tsx`](https://github.com/aabbhii/pdf-study-/blob/main/src/App.tsx) (Routes and access), [`src/api/client.ts`](https://github.com/aabbhii/pdf-study-/blob/main/src/api/client.ts) (API and mock client), [`src/pages/DashboardPage.tsx`](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/DashboardPage.tsx) (Dashboard), [`src/pages/Study/StudyPage.tsx`](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/StudyPage.tsx) (Study workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["Routes and access<br/>[App.tsx]"]
  node_login["Sign-in<br/>[LoginPage.tsx]"]
end

subgraph group_academic["Academic Hub"]
  node_dashboard["Dashboard<br/>[DashboardPage.tsx]"]
  node_timetable["Timetable<br/>[TimetablePage.tsx]"]
  node_announcements["Announcements"]
  node_events["Events calendar<br/>[EventsPage.tsx]"]
  node_admin["Administration<br/>[AdminPage.tsx]"]
end

subgraph group_collaboration["Projects &amp; Resources"]
  node_resources["Learning resources<br/>[ResourcesPage.tsx]"]
  node_projects["Project hub<br/>[ProjectsPage.tsx]"]
  node_project_detail["Project details"]
  node_search["Global search"]
end

subgraph group_learning["Learning Tools"]
  node_study["Study workspace<br/>[StudyPage.tsx]"]
  node_qa["Q&amp;A mode<br/>[QAMode.tsx]"]
  node_study_mode["Study mode<br/>[StudyMode.tsx]"]
  node_ai_studio["AI Studio<br/>[AIStudioPage.tsx]"]
  node_audio["Audio transcription"]
  node_video["Video generation<br/>[VideoGenerator.tsx]"]
end

subgraph group_services["Shared Services"]
  node_auth["Authentication state<br/>[AuthContext.tsx]"]
  node_ai_service["AI service<br/>[aiService.ts]"]
  node_api_client["API and mock client<br/>[client.ts]"]
  node_api_announcements["Announcement API<br/>[announcements.ts]"]
  node_api_classrooms["Classroom API<br/>[classrooms.ts]"]
  node_api_events["Events API<br/>[events.ts]"]
  node_api_timetable["Timetable API<br/>[timetable.ts]"]
  node_api_projects["Projects API<br/>[projects.ts]"]
  node_api_resources["Resources API<br/>[resources.ts]"]
  node_api_study["Study API<br/>[study.ts]"]
  node_api_auth["Authentication API<br/>[auth.ts]"]
  node_mock_store[("Browser mock state<br/>[client.ts]")]
  node_common_ui["Shared UI primitives"]
  node_types["Domain types<br/>[index.ts]"]
end

node_user(("Campus user"))

node_user -->|"uses"| node_app
node_app -->|"provides auth"| node_auth
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_timetable
node_app -->|"routes to"| node_announcements
node_app -->|"routes to"| node_events
node_app -->|"guards route"| node_admin
node_app -->|"routes to"| node_resources
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_project_detail
node_app -->|"routes to"| node_study
node_app -->|"routes to"| node_ai_studio
node_auth -->|"authenticates with"| node_api_auth
node_dashboard -->|"loads schedule"| node_api_timetable
node_dashboard -->|"loads events"| node_api_events
node_dashboard -->|"loads notices"| node_api_announcements
node_events -->|"manages events"| node_api_events
node_projects -->|"manages projects"| node_api_projects
node_projects -->|"loads classrooms"| node_api_classrooms
node_project_detail -->|"updates membership"| node_api_projects
node_project_detail -->|"loads classrooms"| node_api_classrooms
node_resources -->|"manages resources"| node_api_resources
node_search -->|"searches resources"| node_api_resources
node_search -->|"searches notices"| node_api_announcements
node_search -->|"searches projects"| node_api_projects
node_study -->|"selects mode"| node_qa
node_study -->|"selects mode"| node_study_mode
node_study -->|"loads study data"| node_api_study
node_qa -->|"uses study data"| node_api_study
node_qa -->|"loads classrooms"| node_api_classrooms
node_study_mode -->|"uses study data"| node_api_study
node_video -->|"requests generation"| node_ai_service
node_api_announcements -->|"uses client"| node_api_client
node_api_classrooms -->|"uses client"| node_api_client
node_api_projects -->|"uses client"| node_api_client
node_api_resources -->|"uses client"| node_api_client
node_api_study -->|"uses client"| node_api_client
node_api_auth -->|"uses client"| node_api_client
node_api_client -->|"reads and writes"| node_mock_store
node_ai_studio -.->|"offers tool"| node_audio
node_ai_studio -.->|"offers tool"| node_video

click node_app "https://github.com/aabbhii/pdf-study-/blob/main/src/App.tsx"
click node_auth "https://github.com/aabbhii/pdf-study-/blob/main/src/context/AuthContext.tsx"
click node_login "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/LoginPage.tsx"
click node_dashboard "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/DashboardPage.tsx"
click node_timetable "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/TimetablePage.tsx"
click node_announcements "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AnnouncementsPage.tsx"
click node_events "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/EventsPage.tsx"
click node_admin "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AdminPage.tsx"
click node_resources "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ResourcesPage.tsx"
click node_projects "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ProjectsPage.tsx"
click node_project_detail "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ProjectDetailPage.tsx"
click node_search "https://github.com/aabbhii/pdf-study-/blob/main/src/components/search/GlobalSearchBar.tsx"
click node_study "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/StudyPage.tsx"
click node_qa "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/QAMode.tsx"
click node_study_mode "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/StudyMode.tsx"
click node_ai_studio "https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AIStudioPage.tsx"
click node_audio "https://github.com/aabbhii/pdf-study-/blob/main/src/components/ai/AudioTranscriber.tsx"
click node_video "https://github.com/aabbhii/pdf-study-/blob/main/src/components/ai/VideoGenerator.tsx"
click node_ai_service "https://github.com/aabbhii/pdf-study-/blob/main/src/api/aiService.ts"
click node_api_client "https://github.com/aabbhii/pdf-study-/blob/main/src/api/client.ts"
click node_api_announcements "https://github.com/aabbhii/pdf-study-/blob/main/src/api/announcements.ts"
click node_api_classrooms "https://github.com/aabbhii/pdf-study-/blob/main/src/api/classrooms.ts"
click node_api_events "https://github.com/aabbhii/pdf-study-/blob/main/src/api/events.ts"
click node_api_timetable "https://github.com/aabbhii/pdf-study-/blob/main/src/api/timetable.ts"
click node_api_projects "https://github.com/aabbhii/pdf-study-/blob/main/src/api/projects.ts"
click node_api_resources "https://github.com/aabbhii/pdf-study-/blob/main/src/api/resources.ts"
click node_api_study "https://github.com/aabbhii/pdf-study-/blob/main/src/api/study.ts"
click node_api_auth "https://github.com/aabbhii/pdf-study-/blob/main/src/api/auth.ts"
click node_mock_store "https://github.com/aabbhii/pdf-study-/blob/main/src/api/client.ts"
click node_common_ui "https://github.com/aabbhii/pdf-study-/tree/main/src/components/common"
click node_types "https://github.com/aabbhii/pdf-study-/blob/main/src/types/index.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_login,node_user toneBlue
class node_dashboard,node_timetable,node_announcements,node_events,node_admin toneAmber
class node_resources,node_projects,node_project_detail,node_search toneMint
class node_study,node_qa,node_study_mode,node_ai_studio,node_audio,node_video toneRose
class node_auth,node_ai_service,node_api_client,node_api_announcements,node_api_classrooms,node_api_events,node_api_timetable,node_api_projects,node_api_resources,node_api_study,node_api_auth,node_mock_store,node_common_ui,node_types toneIndigo
```

## Components

### Application Shell

- [Routes and access](https://github.com/aabbhii/pdf-study-/blob/main/src/App.tsx): `src/App.tsx`
- [Sign-in](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/LoginPage.tsx): `src/pages/LoginPage.tsx`

### Academic Hub

- [Dashboard](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/DashboardPage.tsx): `src/pages/DashboardPage.tsx`
- [Timetable](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/TimetablePage.tsx): `src/pages/TimetablePage.tsx`
- [Announcements](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AnnouncementsPage.tsx): `src/pages/AnnouncementsPage.tsx`
- [Events calendar](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/EventsPage.tsx): `src/pages/EventsPage.tsx`
- [Administration](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AdminPage.tsx): `src/pages/AdminPage.tsx`

### Projects & Resources

- [Learning resources](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ResourcesPage.tsx): `src/pages/ResourcesPage.tsx`
- [Project hub](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ProjectsPage.tsx): `src/pages/ProjectsPage.tsx`
- [Project details](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/ProjectDetailPage.tsx): `src/pages/ProjectDetailPage.tsx`
- [Global search](https://github.com/aabbhii/pdf-study-/blob/main/src/components/search/GlobalSearchBar.tsx): `src/components/search/GlobalSearchBar.tsx`

### Learning Tools

- [Study workspace](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/StudyPage.tsx): `src/pages/Study/StudyPage.tsx`
- [Q&A mode](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/QAMode.tsx): `src/pages/Study/QAMode.tsx`
- [Study mode](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/Study/StudyMode.tsx): `src/pages/Study/StudyMode.tsx`
- [AI Studio](https://github.com/aabbhii/pdf-study-/blob/main/src/pages/AIStudioPage.tsx): `src/pages/AIStudioPage.tsx`
- [Audio transcription](https://github.com/aabbhii/pdf-study-/blob/main/src/components/ai/AudioTranscriber.tsx): `src/components/ai/AudioTranscriber.tsx`
- [Video generation](https://github.com/aabbhii/pdf-study-/blob/main/src/components/ai/VideoGenerator.tsx): `src/components/ai/VideoGenerator.tsx`

### Shared Services

- [Authentication state](https://github.com/aabbhii/pdf-study-/blob/main/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`
- [AI service](https://github.com/aabbhii/pdf-study-/blob/main/src/api/aiService.ts): `src/api/aiService.ts`
- [API and mock client](https://github.com/aabbhii/pdf-study-/blob/main/src/api/client.ts): `src/api/client.ts`
- [Announcement API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/announcements.ts): `src/api/announcements.ts`
- [Classroom API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/classrooms.ts): `src/api/classrooms.ts`
- [Events API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/events.ts): `src/api/events.ts`
- [Timetable API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/timetable.ts): `src/api/timetable.ts`
- [Projects API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/projects.ts): `src/api/projects.ts`
- [Resources API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/resources.ts): `src/api/resources.ts`
- [Study API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/study.ts): `src/api/study.ts`
- [Authentication API](https://github.com/aabbhii/pdf-study-/blob/main/src/api/auth.ts): `src/api/auth.ts`
- [Browser mock state](https://github.com/aabbhii/pdf-study-/blob/main/src/api/client.ts): `src/api/client.ts`
- [Shared UI primitives](https://github.com/aabbhii/pdf-study-/tree/main/src/components/common): `src/components/common`
- [Domain types](https://github.com/aabbhii/pdf-study-/blob/main/src/types/index.ts): `src/types/index.ts`

### Other components

- **Campus user**

## Connections

- Campus user → Routes and access: uses (evidence: `src/App.tsx`)
- Routes and access → Authentication state: provides auth (evidence: `src/App.tsx`)
- Routes and access → Sign-in: routes to (evidence: `src/App.tsx`)
- Routes and access → Dashboard: routes to (evidence: `src/App.tsx`)
- Routes and access → Timetable: routes to (evidence: `src/App.tsx`)
- Routes and access → Announcements: routes to (evidence: `src/App.tsx`)
- Routes and access → Events calendar: routes to (evidence: `src/App.tsx`)
- Routes and access → Administration: guards route (evidence: `src/App.tsx`)
- Routes and access → Learning resources: routes to (evidence: `src/App.tsx`)
- Routes and access → Project hub: routes to (evidence: `src/App.tsx`)
- Routes and access → Project details: routes to (evidence: `src/App.tsx`)
- Routes and access → Study workspace: routes to (evidence: `src/App.tsx`)
- Routes and access → AI Studio: routes to (evidence: `src/App.tsx`)
- Authentication state → Authentication API: authenticates with (evidence: `src/context/AuthContext.tsx`)
- Dashboard → Timetable API: loads schedule (evidence: `src/pages/DashboardPage.tsx`)
- Dashboard → Events API: loads events (evidence: `src/pages/DashboardPage.tsx`)
- Dashboard → Announcement API: loads notices (evidence: `src/pages/DashboardPage.tsx`)
- Events calendar → Events API: manages events (evidence: `src/pages/EventsPage.tsx`)
- Project hub → Projects API: manages projects (evidence: `src/pages/ProjectsPage.tsx`)
- Project hub → Classroom API: loads classrooms (evidence: `src/pages/ProjectsPage.tsx`)
- Project details → Projects API: updates membership (evidence: `src/pages/ProjectDetailPage.tsx`)
- Project details → Classroom API: loads classrooms (evidence: `src/pages/ProjectDetailPage.tsx`)
- Learning resources → Resources API: manages resources (evidence: `src/pages/ResourcesPage.tsx`)
- Global search → Resources API: searches resources (evidence: `src/components/search/GlobalSearchBar.tsx`)
- Global search → Announcement API: searches notices (evidence: `src/components/search/GlobalSearchBar.tsx`)
- Global search → Projects API: searches projects (evidence: `src/components/search/GlobalSearchBar.tsx`)
- Study workspace → Q&A mode: selects mode (evidence: `src/pages/Study/StudyPage.tsx`)
- Study workspace → Study mode: selects mode (evidence: `src/pages/Study/StudyPage.tsx`)
- Study workspace → Study API: loads study data (evidence: `src/pages/Study/StudyPage.tsx`)
- Q&A mode → Study API: uses study data (evidence: `src/pages/Study/QAMode.tsx`)
- Q&A mode → Classroom API: loads classrooms (evidence: `src/pages/Study/QAMode.tsx`)
- Study mode → Study API: uses study data (evidence: `src/pages/Study/StudyMode.tsx`)
- Video generation → AI service: requests generation (evidence: `src/components/ai/VideoGenerator.tsx`)
- Announcement API → API and mock client: uses client (evidence: `src/api/announcements.ts`)
- Classroom API → API and mock client: uses client (evidence: `src/api/classrooms.ts`)
- Projects API → API and mock client: uses client (evidence: `src/api/projects.ts`)
- Resources API → API and mock client: uses client (evidence: `src/api/resources.ts`)
- Study API → API and mock client: uses client (evidence: `src/api/study.ts`)
- Authentication API → API and mock client: uses client (evidence: `src/api/auth.ts`)
- API and mock client → Browser mock state: reads and writes (evidence: `src/api/client.ts`)
- AI Studio → Audio transcription: offers tool
- AI Studio → Video generation: offers tool
