# coderaarav12/edutechsrm-frontend-in architecture

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

- Interactive diagram: https://gitdiagram.com/coderaarav12/edutechsrm-frontend-in
- Repository: https://github.com/coderaarav12/edutechsrm-frontend-in

## Overview

edutechsrm is a student-facing SRM academic portal: students authenticate with Academia, synchronize academic data, and use a dashboard and focused tools for coursework, campus information, and support. The graph includes documented feature areas even where implementation was not sampled. Several feature-to-data relationships are based on README descriptions; unsampled route wiring and backend internals are intentionally omitted.

Main entry points: [`lib/auth-context.tsx`](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/auth-context.tsx) (Session and sync state), [`app/login/page.tsx`](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/login/page.tsx) (Login experience), [`app/api/srm/login/route.ts`](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/api/srm/login/route.ts) (Academia login API), [`app/admin/page.tsx`](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/admin/page.tsx) (Admin console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and identity"]
  node_entry["App entry<br/>[page.tsx]"]
  node_login["Login experience<br/>[page.tsx]"]
  node_auth["Session and sync state<br/>[auth-context.tsx]"]
  node_loginapi["Academia login API<br/>[route.ts]"]
  node_origin["Origin validation"]
  node_security["Request security<br/>[security.ts]"]
  node_studentportal["Student Portal sync<br/>[route.ts]"]
end

subgraph group_academics["Academic experience"]
  node_dashboard["Dashboard overview"]
  node_timetable["Timetable and assignments"]
  node_attendance["Attendance planner"]
  node_marks["Marks and GradeX<br/>[marks-section.tsx]"]
  node_calendar["Academic calendar"]
  node_courses["Registered courses"]
  node_mess["Mess menu<br/>[mess-section.tsx]"]
  node_ai["AI assistant<br/>[ai-section.tsx]"]
end

subgraph group_campus["Campus and discovery"]
  node_campusmap["Campus map"]
  node_finder["Faculty finder<br/>[finder-section.tsx]"]
  node_finderdata["Finder dataset<br/>[finder-data.ts]"]
end

subgraph group_operations["Administration and services"]
  node_announcements["Announcements<br/>[announcements.ts]"]
  node_admin["Admin console<br/>[page.tsx]"]
  node_admincontrol["Admin controls<br/>[admin-control.tsx]"]
  node_adminmodal["Management tools"]
end

node_student(("Student"))
node_academia{{"SRM Academia"}}
node_backend{{"Scraper backend"}}

node_student -->|"opens"| node_entry
node_entry -->|"offers login"| node_login
node_login -->|"finishes sign-in"| node_auth
node_login -.->|"submits credentials"| node_loginapi
node_loginapi -->|"validates origin"| node_origin
node_loginapi -->|"hardens response"| node_security
node_auth -->|"syncs academic data"| node_academia
node_student -->|"connects portal"| node_studentportal
node_studentportal -->|"uses scraper session"| node_backend
node_auth -->|"supplies overview"| node_dashboard
node_auth -->|"supplies schedule"| node_timetable
node_auth -->|"supplies attendance"| node_attendance
node_auth -->|"supplies marks"| node_marks
node_auth -->|"supplies calendar"| node_calendar
node_auth -->|"supplies courses"| node_courses
node_student -->|"browses menu"| node_mess
node_student -->|"asks questions"| node_ai
node_student -->|"explores campus"| node_campusmap
node_student -->|"searches faculty"| node_finder
node_finder -->|"queries dataset"| node_finderdata
node_student -->|"views updates"| node_announcements
node_admin -->|"manages settings"| node_admincontrol
node_admin -->|"opens tools"| node_adminmodal
node_admincontrol -->|"loads defaults"| node_announcements

click node_entry "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/page.tsx"
click node_login "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/login/page.tsx"
click node_auth "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/auth-context.tsx"
click node_loginapi "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/api/srm/login/route.ts"
click node_origin "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/origin-validator.ts"
click node_security "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/security.ts"
click node_studentportal "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/api/srm/student-portal/route.ts"
click node_dashboard "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/dashboard-section.tsx"
click node_timetable "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/timetable-section.tsx"
click node_attendance "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/attendance-section.tsx"
click node_marks "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/marks-section.tsx"
click node_calendar "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/calendar-section.tsx"
click node_courses "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/courses-section.tsx"
click node_mess "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/mess-section.tsx"
click node_ai "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/ai-section.tsx"
click node_campusmap "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/campus-map-section.tsx"
click node_finder "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/finder-section.tsx"
click node_finderdata "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/finder-data.ts"
click node_announcements "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/announcements.ts"
click node_admin "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/admin/page.tsx"
click node_admincontrol "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/admin-control.tsx"
click node_adminmodal "https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/admin-manager-modal.tsx"

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_entry,node_login,node_auth,node_loginapi,node_origin,node_security,node_studentportal toneBlue
class node_dashboard,node_timetable,node_attendance,node_marks,node_calendar,node_courses,node_mess,node_ai toneAmber
class node_campusmap,node_finder,node_finderdata toneMint
class node_announcements,node_admin,node_admincontrol,node_adminmodal toneRose
class node_student,node_academia,node_backend toneIndigo
```

## Components

### Entry and identity

- [App entry](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/page.tsx): `app/page.tsx`
- [Login experience](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/login/page.tsx): `app/login/page.tsx`
- [Session and sync state](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/auth-context.tsx): `lib/auth-context.tsx`
- [Academia login API](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/api/srm/login/route.ts): `app/api/srm/login/route.ts`
- [Origin validation](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/origin-validator.ts): `lib/origin-validator.ts`
- [Request security](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/security.ts): `lib/security.ts`
- [Student Portal sync](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/api/srm/student-portal/route.ts): `app/api/srm/student-portal/route.ts`

### Academic experience

- [Dashboard overview](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/dashboard-section.tsx): `components/dashboard-section.tsx`
- [Timetable and assignments](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/timetable-section.tsx): `components/timetable-section.tsx`
- [Attendance planner](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/attendance-section.tsx): `components/attendance-section.tsx`
- [Marks and GradeX](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/marks-section.tsx): `components/marks-section.tsx`
- [Academic calendar](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/calendar-section.tsx): `components/calendar-section.tsx`
- [Registered courses](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/courses-section.tsx): `components/courses-section.tsx`
- [Mess menu](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/mess-section.tsx): `components/mess-section.tsx`
- [AI assistant](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/ai-section.tsx): `components/ai-section.tsx`

### Campus and discovery

- [Campus map](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/campus-map-section.tsx): `components/campus-map-section.tsx`
- [Faculty finder](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/finder-section.tsx): `components/finder-section.tsx`
- [Finder dataset](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/finder-data.ts): `lib/finder-data.ts`

### Administration and services

- [Announcements](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/announcements.ts): `components/announcements.ts`
- [Admin console](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/app/admin/page.tsx): `app/admin/page.tsx`
- [Admin controls](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/lib/admin-control.tsx): `lib/admin-control.tsx`
- [Management tools](https://github.com/coderaarav12/edutechsrm-frontend-in/blob/main/components/admin-manager-modal.tsx): `components/admin-manager-modal.tsx`

### Other components

- **Student**
- **SRM Academia**
- **Scraper backend**

## Connections

- Student → App entry: opens
- App entry → Login experience: offers login (evidence: `app/page.tsx`)
- Login experience → Session and sync state: finishes sign-in (evidence: `app/login/page.tsx`)
- Login experience → Academia login API: submits credentials
- Academia login API → Origin validation: validates origin (evidence: `app/api/srm/login/route.ts`)
- Academia login API → Request security: hardens response (evidence: `app/api/srm/login/route.ts`)
- Session and sync state → SRM Academia: syncs academic data
- Student → Student Portal sync: connects portal
- Student Portal sync → Scraper backend: uses scraper session
- Session and sync state → Dashboard overview: supplies overview
- Session and sync state → Timetable and assignments: supplies schedule
- Session and sync state → Attendance planner: supplies attendance
- Session and sync state → Marks and GradeX: supplies marks
- Session and sync state → Academic calendar: supplies calendar
- Session and sync state → Registered courses: supplies courses
- Student → Mess menu: browses menu
- Student → AI assistant: asks questions
- Student → Campus map: explores campus
- Student → Faculty finder: searches faculty
- Faculty finder → Finder dataset: queries dataset
- Student → Announcements: views updates
- Admin console → Admin controls: manages settings (evidence: `app/admin/page.tsx`)
- Admin console → Management tools: opens tools (evidence: `app/admin/page.tsx`)
- Admin controls → Announcements: loads defaults (evidence: `lib/admin-control.tsx`)
