# lakkoju-siddhardha/srm-dashboard architecture

> Architecture diagram of the GitHub repository lakkoju-siddhardha/srm-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lakkoju-siddhardha/srm-dashboard
- Repository: https://github.com/lakkoju-siddhardha/srm-dashboard

## Overview

SRM Dashboard is a student-facing web app that wraps the SRM portal. Students log in, then use the dashboard to submit attendance codes or view profile, timetable, attendance, results, internal marks, and CGPA. Refresh routes automate portal access and persist academic data for dashboard retrieval; the README also describes registration and OCR-based captcha handling. The excerpts confirm key route and browser-automation behavior, but omit many server sections, so uncertain subsystem links are left out.

Main entry points: [`server.js`](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js) (Express routes), [`public/dashboard.js`](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.js) (Dashboard client), [`public/dashboard.html`](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.html) (Dashboard UI), [`public/login.html`](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/login.html) (Login interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_login["Login interface<br/>[login.html]"]
  node_loginclient["Login client<br/>[script.js]"]
  node_dashboard["Dashboard UI<br/>[dashboard.html]"]
  node_dashboardclient["Dashboard client<br/>[dashboard.js]"]
end

subgraph group_backend["Application backend"]
  node_server["Express routes<br/>[server.js]"]
  node_sessions["Session authentication<br/>[server.js]"]
  node_users[("User records<br/>[server.js]")]
end

subgraph group_academic["Academic data"]
  node_profile["Profile data<br/>[server.js]"]
  node_timetable["Timetable<br/>[server.js]"]
  node_attendance["Attendance data<br/>[server.js]"]
  node_attendancecode["Code submission<br/>[server.js]"]
  node_results["Exam results<br/>[server.js]"]
  node_internal["Internal marks<br/>[server.js]"]
  node_cgpa["CGPA data<br/>[server.js]"]
  node_bunk["Bunk calculator<br/>[dashboard.js]"]
end

subgraph group_automation["Portal automation"]
  node_browser["Portal browser automation<br/>[server.js]"]
  node_ocr["Captcha OCR<br/>[server.js]"]
end

node_student(("Student"))
node_portal["SRM student portal"]

node_student -->|"opens"| node_login
node_login -->|"submits form"| node_loginclient
node_loginclient -->|"posts login"| node_server
node_server -->|"authenticates"| node_sessions
node_server -->|"queries"| node_users
node_sessions -->|"authorizes"| node_dashboard
node_student -->|"uses"| node_dashboard
node_dashboard -->|"loads"| node_dashboardclient
node_dashboardclient -->|"requests data"| node_server
node_dashboardclient -->|"posts code"| node_attendancecode
node_dashboardclient -->|"loads profile"| node_profile
node_dashboardclient -->|"loads timetable"| node_timetable
node_dashboardclient -->|"loads attendance"| node_attendance
node_dashboardclient -->|"loads results"| node_results
node_dashboardclient -->|"loads marks"| node_internal
node_dashboardclient -->|"loads CGPA"| node_cgpa
node_dashboardclient -->|"calculates bunks"| node_bunk
node_server -->|"handles submission"| node_attendancecode
node_server -->|"serves profile"| node_profile
node_server -->|"fetches timetable"| node_timetable
node_server -->|"fetches attendance"| node_attendance
node_server -->|"refreshes results"| node_results
node_server -->|"refreshes marks"| node_internal
node_server -->|"refreshes CGPA"| node_cgpa
node_server -->|"launches automation"| node_browser
node_browser -->|"navigates"| node_portal
node_browser -.->|"solves captcha"| node_ocr
node_ocr -.->|"supplies captcha"| node_portal
node_server -.->|"stores academic data"| node_users

click node_login "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/login.html"
click node_loginclient "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/script.js"
click node_dashboard "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.html"
click node_dashboardclient "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.js"
click node_server "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_sessions "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_users "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_profile "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_timetable "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_attendance "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_attendancecode "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_results "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_internal "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_cgpa "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_bunk "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.js"
click node_browser "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"
click node_ocr "https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js"

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_login,node_loginclient,node_dashboard,node_dashboardclient toneBlue
class node_server,node_sessions,node_users toneAmber
class node_profile,node_timetable,node_attendance,node_attendancecode,node_results,node_internal,node_cgpa,node_bunk toneMint
class node_browser,node_ocr toneRose
class node_student,node_portal toneIndigo
```

## Components

### Web experience

- [Login interface](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/login.html): `public/login.html`
- [Login client](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/script.js): `public/script.js`
- [Dashboard UI](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.html): `public/dashboard.html`
- [Dashboard client](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.js): `public/dashboard.js`

### Application backend

- [Express routes](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Session authentication](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [User records](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`

### Academic data

- [Profile data](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Timetable](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Attendance data](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Code submission](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Exam results](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Internal marks](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [CGPA data](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Bunk calculator](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/public/dashboard.js): `public/dashboard.js`

### Portal automation

- [Portal browser automation](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`
- [Captcha OCR](https://github.com/lakkoju-siddhardha/srm-dashboard/blob/main/server.js): `server.js`

### Other components

- **Student**
- **SRM student portal**

## Connections

- Student → Login interface: opens (evidence: `README.md`)
- Login interface → Login client: submits form (evidence: `public/script.js`)
- Login client → Express routes: posts login (evidence: `public/script.js`)
- Express routes → Session authentication: authenticates (evidence: `server.js`)
- Express routes → User records: queries (evidence: `server.js`)
- Session authentication → Dashboard UI: authorizes (evidence: `server.js`)
- Student → Dashboard UI: uses (evidence: `README.md`)
- Dashboard UI → Dashboard client: loads (evidence: `public/dashboard.js`)
- Dashboard client → Express routes: requests data (evidence: `public/dashboard.js`)
- Dashboard client → Code submission: posts code (evidence: `public/dashboard.js`)
- Dashboard client → Profile data: loads profile (evidence: `public/dashboard.js`)
- Dashboard client → Timetable: loads timetable (evidence: `public/dashboard.js`)
- Dashboard client → Attendance data: loads attendance (evidence: `public/dashboard.js`)
- Dashboard client → Exam results: loads results (evidence: `public/dashboard.js`)
- Dashboard client → Internal marks: loads marks (evidence: `public/dashboard.js`)
- Dashboard client → CGPA data: loads CGPA (evidence: `public/dashboard.js`)
- Dashboard client → Bunk calculator: calculates bunks (evidence: `public/dashboard.js`)
- Express routes → Code submission: handles submission (evidence: `server.js`)
- Express routes → Profile data: serves profile (evidence: `server.js`)
- Express routes → Timetable: fetches timetable (evidence: `server.js`)
- Express routes → Attendance data: fetches attendance (evidence: `server.js`)
- Express routes → Exam results: refreshes results (evidence: `server.js`)
- Express routes → Internal marks: refreshes marks (evidence: `server.js`)
- Express routes → CGPA data: refreshes CGPA (evidence: `server.js`)
- Express routes → Portal browser automation: launches automation (evidence: `server.js`)
- Portal browser automation → SRM student portal: navigates (evidence: `server.js`)
- Portal browser automation → Captcha OCR: solves captcha (evidence: `README.md`)
- Captcha OCR → SRM student portal: supplies captcha (evidence: `README.md`)
- Express routes → User records: stores academic data (evidence: `server.js`)
