# zenxync/zenschola architecture

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

- Interactive diagram: https://gitdiagram.com/zenxync/zenschola
- Repository: https://github.com/zenxync/zenschola

## Overview

ZenSchola is a student dashboard for daily lectures, attendance, study links, notes, and student identification. The main workflow loads user and lecture data, presents the dashboard, and lets students record attendance or open lecture resources; settings and utility dialogs manage related preferences and links. Supabase is the documented data backend, while the README describes generated student-ID QR codes. Some dashboard and storage details are unsampled, so uncertain links are omitted or marked dashed.

Main entry points: [`src/routes/main.jsx`](https://github.com/zenxync/zenschola/blob/main/src/routes/main.jsx) (Dashboard), [`src/App.jsx`](https://github.com/zenxync/zenschola/blob/main/src/App.jsx) (App router), [`src/routes/settings.jsx`](https://github.com/zenxync/zenschola/blob/main/src/routes/settings.jsx) (Settings), [`src/routes/components/schedule-card.jsx`](https://github.com/zenxync/zenschola/blob/main/src/routes/components/schedule-card.jsx) (Lecture card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_app["App router<br/>[App.jsx]"]
  node_dashboard["Dashboard<br/>[main.jsx]"]
  node_fetch["Data fetching<br/>[functions.js]"]
  node_greeting["Greeting<br/>[greeting.jsx]"]
  node_quote["Quote<br/>[quote.jsx]"]
  node_navbar["Navigation<br/>[navbar.jsx]"]
end

subgraph group_schedule["Lectures and attendance"]
  node_linegraph["Attendance graph<br/>[line-graph.jsx]"]
  node_today["Today schedule"]
  node_schedulecard["Lecture card<br/>[schedule-card.jsx]"]
  node_badge["Lecture badge"]
  node_lecturetools["Lecture software"]
end

subgraph group_personal["Personal tools"]
  node_scratchpad["Scratch pad<br/>[scratch-pad.jsx]"]
  node_scratchbox["Scratch editor<br/>[scratch-box.jsx]"]
  node_utilities["Study utilities"]
  node_addutility["Add utility"]
  node_editutility["Edit utility"]
  node_studentid["Student ID<br/>[student-id.jsx]"]
end

subgraph group_settings["Settings and account"]
  node_settings["Settings<br/>[settings.jsx]"]
  node_editsoftware["Edit lecture links"]
end

node_student(("Student"))
node_supabase[("Supabase")]
node_account["ZenAccount"]

node_student -->|"opens"| node_app
node_app -->|"loads data"| node_fetch
node_fetch -->|"queries"| node_supabase
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_settings
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_addutility
node_app -->|"renders"| node_editutility
node_app -->|"renders"| node_studentid
node_dashboard -->|"renders"| node_greeting
node_dashboard -->|"renders"| node_quote
node_dashboard -->|"renders"| node_linegraph
node_dashboard -->|"renders"| node_today
node_dashboard -->|"renders"| node_schedulecard
node_dashboard -->|"renders"| node_scratchpad
node_dashboard -->|"renders"| node_utilities
node_scratchpad -->|"renders"| node_scratchbox
node_schedulecard -->|"renders"| node_badge
node_schedulecard -.->|"records attendance"| node_supabase
node_settings -->|"loads lectures"| node_fetch
node_settings -->|"renders"| node_editsoftware
node_editsoftware -->|"updates links"| node_supabase
node_addutility -.->|"saves utility"| node_supabase
node_editutility -->|"updates utility"| node_supabase
node_settings -->|"redirects login"| node_account
node_dashboard -.->|"offers links"| node_lecturetools

click node_app "https://github.com/zenxync/zenschola/blob/main/src/App.jsx"
click node_dashboard "https://github.com/zenxync/zenschola/blob/main/src/routes/main.jsx"
click node_fetch "https://github.com/zenxync/zenschola/blob/main/src/functions.js"
click node_greeting "https://github.com/zenxync/zenschola/blob/main/src/routes/components/greeting.jsx"
click node_quote "https://github.com/zenxync/zenschola/blob/main/src/routes/components/quote.jsx"
click node_linegraph "https://github.com/zenxync/zenschola/blob/main/src/routes/components/line-graph.jsx"
click node_today "https://github.com/zenxync/zenschola/blob/main/src/routes/components/today-schedule-element.jsx"
click node_schedulecard "https://github.com/zenxync/zenschola/blob/main/src/routes/components/schedule-card.jsx"
click node_badge "https://github.com/zenxync/zenschola/blob/main/src/routes/components/lecture-code-badge.jsx"
click node_lecturetools "https://github.com/zenxync/zenschola/blob/main/src/routes/components/lecture-software.jsx"
click node_scratchpad "https://github.com/zenxync/zenschola/blob/main/src/routes/components/scratch-pad.jsx"
click node_scratchbox "https://github.com/zenxync/zenschola/blob/main/src/routes/components/scratch-box.jsx"
click node_utilities "https://github.com/zenxync/zenschola/blob/main/src/routes/components/study-utilities-app.jsx"
click node_addutility "https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/add-study-utility.jsx"
click node_editutility "https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/edit-study-utility.jsx"
click node_studentid "https://github.com/zenxync/zenschola/blob/main/src/routes/components/student-id.jsx"
click node_settings "https://github.com/zenxync/zenschola/blob/main/src/routes/settings.jsx"
click node_editsoftware "https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/edit-lecture-software.jsx"
click node_navbar "https://github.com/zenxync/zenschola/blob/main/src/routes/components/navbar.jsx"

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_dashboard,node_fetch,node_greeting,node_quote,node_navbar toneBlue
class node_linegraph,node_today,node_schedulecard,node_badge,node_lecturetools,node_supabase toneAmber
class node_scratchpad,node_scratchbox,node_utilities,node_addutility,node_editutility,node_studentid toneMint
class node_settings,node_editsoftware toneRose
class node_student,node_account toneIndigo
```

## Components

### App flow

- [App router](https://github.com/zenxync/zenschola/blob/main/src/App.jsx): `src/App.jsx`
- [Dashboard](https://github.com/zenxync/zenschola/blob/main/src/routes/main.jsx): `src/routes/main.jsx`
- [Data fetching](https://github.com/zenxync/zenschola/blob/main/src/functions.js): `src/functions.js`
- [Greeting](https://github.com/zenxync/zenschola/blob/main/src/routes/components/greeting.jsx): `src/routes/components/greeting.jsx`
- [Quote](https://github.com/zenxync/zenschola/blob/main/src/routes/components/quote.jsx): `src/routes/components/quote.jsx`
- [Navigation](https://github.com/zenxync/zenschola/blob/main/src/routes/components/navbar.jsx): `src/routes/components/navbar.jsx`

### Lectures and attendance

- [Attendance graph](https://github.com/zenxync/zenschola/blob/main/src/routes/components/line-graph.jsx): `src/routes/components/line-graph.jsx`
- [Today schedule](https://github.com/zenxync/zenschola/blob/main/src/routes/components/today-schedule-element.jsx): `src/routes/components/today-schedule-element.jsx`
- [Lecture card](https://github.com/zenxync/zenschola/blob/main/src/routes/components/schedule-card.jsx): `src/routes/components/schedule-card.jsx`
- [Lecture badge](https://github.com/zenxync/zenschola/blob/main/src/routes/components/lecture-code-badge.jsx): `src/routes/components/lecture-code-badge.jsx`
- [Lecture software](https://github.com/zenxync/zenschola/blob/main/src/routes/components/lecture-software.jsx): `src/routes/components/lecture-software.jsx`

### Personal tools

- [Scratch pad](https://github.com/zenxync/zenschola/blob/main/src/routes/components/scratch-pad.jsx): `src/routes/components/scratch-pad.jsx`
- [Scratch editor](https://github.com/zenxync/zenschola/blob/main/src/routes/components/scratch-box.jsx): `src/routes/components/scratch-box.jsx`
- [Study utilities](https://github.com/zenxync/zenschola/blob/main/src/routes/components/study-utilities-app.jsx): `src/routes/components/study-utilities-app.jsx`
- [Add utility](https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/add-study-utility.jsx): `src/routes/components/modals/add-study-utility.jsx`
- [Edit utility](https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/edit-study-utility.jsx): `src/routes/components/modals/edit-study-utility.jsx`
- [Student ID](https://github.com/zenxync/zenschola/blob/main/src/routes/components/student-id.jsx): `src/routes/components/student-id.jsx`

### Settings and account

- [Settings](https://github.com/zenxync/zenschola/blob/main/src/routes/settings.jsx): `src/routes/settings.jsx`
- [Edit lecture links](https://github.com/zenxync/zenschola/blob/main/src/routes/components/modals/edit-lecture-software.jsx): `src/routes/components/modals/edit-lecture-software.jsx`

### Other components

- **Student**
- **Supabase**
- **ZenAccount**

## Connections

- Student → App router: opens (evidence: `src/App.jsx`)
- App router → Data fetching: loads data (evidence: `src/App.jsx`)
- Data fetching → Supabase: queries (evidence: `src/functions.js`)
- App router → Dashboard: routes to (evidence: `src/App.jsx`)
- App router → Settings: routes to (evidence: `src/App.jsx`)
- App router → Navigation: renders (evidence: `src/App.jsx`)
- App router → Add utility: renders (evidence: `src/App.jsx`)
- App router → Edit utility: renders (evidence: `src/App.jsx`)
- App router → Student ID: renders (evidence: `src/App.jsx`)
- Dashboard → Greeting: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Quote: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Attendance graph: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Today schedule: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Lecture card: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Scratch pad: renders (evidence: `src/routes/main.jsx`)
- Dashboard → Study utilities: renders (evidence: `src/routes/main.jsx`)
- Scratch pad → Scratch editor: renders (evidence: `src/routes/components/scratch-pad.jsx`)
- Lecture card → Lecture badge: renders (evidence: `src/routes/components/schedule-card.jsx`)
- Lecture card → Supabase: records attendance
- Settings → Data fetching: loads lectures (evidence: `src/routes/settings.jsx`)
- Settings → Edit lecture links: renders (evidence: `src/routes/settings.jsx`)
- Edit lecture links → Supabase: updates links (evidence: `src/routes/components/modals/edit-lecture-software.jsx`)
- Add utility → Supabase: saves utility
- Edit utility → Supabase: updates utility (evidence: `src/routes/components/modals/edit-study-utility.jsx`)
- Settings → ZenAccount: redirects login (evidence: `src/routes/settings.jsx`)
- Dashboard → Lecture software: offers links
