# paula1245124/faclstudentd architecture

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

- Interactive diagram: https://gitdiagram.com/paula1245124/faclstudentd
- Repository: https://github.com/paula1245124/faclstudentd

## Overview

This repository is a browser-based study platform for course materials, practice questions, schedules, and student feedback. The main learner workflow starts in the web app, which resolves a subject and loads its lecture/question content for study; schedule and progress are additional app modes. Serverless endpoints support feedback, Google Sheets-backed records and reports, and a Telegram webhook. The graph follows documented or excerpted links; content-to-app loading is directly evidenced by the subject index, while some unexcerpted UI features are represented at directory level.

Main entry points: [`datenew/subjects-index.js`](https://github.com/paula1245124/faclstudentd/blob/main/datenew/subjects-index.js) (Subject registry), [`app.js`](https://github.com/paula1245124/faclstudentd/blob/main/app.js) (Study web app), [`api/sheets.js`](https://github.com/paula1245124/faclstudentd/blob/main/api/sheets.js) (Sheets operations), [`api/daily.js`](https://github.com/paula1245124/faclstudentd/blob/main/api/daily.js) (Daily report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learner["Study experience"]
  node_webapp["Study web app<br/>[app.js]"]
end

subgraph group_content["Course content"]
  node_subjectindex["Subject registry<br/>[subjects-index.js]"]
  node_graphics["Graphics course<br/>[graphics.js]"]
  node_networks["Networks course<br/>[networks.js]"]
  node_os["Operating systems course"]
  node_se["Software engineering course"]
  node_visual["Visual programming course"]
  node_course_sections["Course sections"]
  node_legacy_content["Legacy course files"]
end

subgraph group_services["Feedback and reporting"]
  node_feedback_api["Feedback handler<br/>[feedback.js]"]
  node_sheets["Sheets operations<br/>[sheets.js]"]
  node_daily["Daily report<br/>[daily.js]"]
  node_sheet_api["Sheet endpoint<br/>[sheet.js]"]
  node_sheets_api["Sheets endpoint<br/>[sheets.js]"]
  node_webhook["Telegram webhook<br/>[webhook.js]"]
end

subgraph group_integrations["External services"]
  node_google_sheets[("Google Sheets")]
  node_telegram["Telegram"]
end

node_learner(("Learner"))

node_learner -->|"studies in"| node_webapp
node_webapp -->|"selects subject"| node_subjectindex
node_subjectindex -->|"loads content"| node_graphics
node_subjectindex -->|"loads content"| node_networks
node_subjectindex -->|"loads content"| node_os
node_subjectindex -->|"loads content"| node_se
node_subjectindex -->|"loads content"| node_visual
node_webapp -.->|"uses sections"| node_course_sections
node_learner -.->|"submits feedback"| node_feedback_api
node_feedback_api -->|"appends feedback"| node_sheets
node_sheets -->|"reads and writes"| node_google_sheets
node_daily -->|"reads dated feedback"| node_sheets
node_daily -->|"sends report"| node_telegram
node_webhook -->|"sends commands"| node_telegram
node_webhook -->|"deletes messages"| node_telegram
node_webapp -->|"fetches schedule data"| node_sheet_api
node_webapp -.->|"fetches sheet data"| node_sheets_api
node_legacy_content -.->|"available course files"| node_webapp

click node_webapp "https://github.com/paula1245124/faclstudentd/blob/main/app.js"
click node_subjectindex "https://github.com/paula1245124/faclstudentd/blob/main/datenew/subjects-index.js"
click node_graphics "https://github.com/paula1245124/faclstudentd/blob/main/datenew/graphics/graphics.js"
click node_networks "https://github.com/paula1245124/faclstudentd/blob/main/datenew/networks/networks.js"
click node_os "https://github.com/paula1245124/faclstudentd/blob/main/datenew/operating-systems/operating-systems.js"
click node_se "https://github.com/paula1245124/faclstudentd/blob/main/datenew/software-engineering/software-engineering.js"
click node_visual "https://github.com/paula1245124/faclstudentd/blob/main/datenew/visual-programming/visual-programming.js"
click node_course_sections "https://github.com/paula1245124/faclstudentd/tree/main/datenew"
click node_legacy_content "https://github.com/paula1245124/faclstudentd/tree/main/Computer%20Graphics"
click node_feedback_api "https://github.com/paula1245124/faclstudentd/blob/main/api/feedback.js"
click node_sheets "https://github.com/paula1245124/faclstudentd/blob/main/api/sheets.js"
click node_daily "https://github.com/paula1245124/faclstudentd/blob/main/api/daily.js"
click node_sheet_api "https://github.com/paula1245124/faclstudentd/blob/main/api/sheet.js"
click node_sheets_api "https://github.com/paula1245124/faclstudentd/blob/main/api/sheets.js"
click node_webhook "https://github.com/paula1245124/faclstudentd/blob/main/api/webhook.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_webapp toneBlue
class node_subjectindex,node_graphics,node_networks,node_os,node_se,node_visual,node_course_sections,node_legacy_content toneAmber
class node_feedback_api,node_sheets,node_daily,node_sheet_api,node_sheets_api,node_webhook toneMint
class node_google_sheets,node_telegram toneRose
class node_learner toneIndigo
```

## Components

### Study experience

- [Study web app](https://github.com/paula1245124/faclstudentd/blob/main/app.js): `app.js`

### Course content

- [Subject registry](https://github.com/paula1245124/faclstudentd/blob/main/datenew/subjects-index.js): `datenew/subjects-index.js`
- [Graphics course](https://github.com/paula1245124/faclstudentd/blob/main/datenew/graphics/graphics.js): `datenew/graphics/graphics.js`
- [Networks course](https://github.com/paula1245124/faclstudentd/blob/main/datenew/networks/networks.js): `datenew/networks/networks.js`
- [Operating systems course](https://github.com/paula1245124/faclstudentd/blob/main/datenew/operating-systems/operating-systems.js): `datenew/operating-systems/operating-systems.js`
- [Software engineering course](https://github.com/paula1245124/faclstudentd/blob/main/datenew/software-engineering/software-engineering.js): `datenew/software-engineering/software-engineering.js`
- [Visual programming course](https://github.com/paula1245124/faclstudentd/blob/main/datenew/visual-programming/visual-programming.js): `datenew/visual-programming/visual-programming.js`
- [Course sections](https://github.com/paula1245124/faclstudentd/tree/main/datenew): `datenew`
- [Legacy course files](https://github.com/paula1245124/faclstudentd/tree/main/Computer%20Graphics): `Computer Graphics`

### Feedback and reporting

- [Feedback handler](https://github.com/paula1245124/faclstudentd/blob/main/api/feedback.js): `api/feedback.js`
- [Sheets operations](https://github.com/paula1245124/faclstudentd/blob/main/api/sheets.js): `api/sheets.js`
- [Daily report](https://github.com/paula1245124/faclstudentd/blob/main/api/daily.js): `api/daily.js`
- [Sheet endpoint](https://github.com/paula1245124/faclstudentd/blob/main/api/sheet.js): `api/sheet.js`
- [Sheets endpoint](https://github.com/paula1245124/faclstudentd/blob/main/api/sheets.js): `api/sheets.js`
- [Telegram webhook](https://github.com/paula1245124/faclstudentd/blob/main/api/webhook.js): `api/webhook.js`

### External services

- **Google Sheets**
- **Telegram**

### Other components

- **Learner**

## Connections

- Learner → Study web app: studies in
- Study web app → Subject registry: selects subject (evidence: `app.js`)
- Subject registry → Graphics course: loads content (evidence: `datenew/subjects-index.js`)
- Subject registry → Networks course: loads content (evidence: `datenew/subjects-index.js`)
- Subject registry → Operating systems course: loads content (evidence: `datenew/subjects-index.js`)
- Subject registry → Software engineering course: loads content (evidence: `datenew/subjects-index.js`)
- Subject registry → Visual programming course: loads content (evidence: `datenew/subjects-index.js`)
- Study web app → Course sections: uses sections
- Learner → Feedback handler: submits feedback
- Feedback handler → Sheets operations: appends feedback (evidence: `api/feedback.js`)
- Sheets operations → Google Sheets: reads and writes (evidence: `api/sheets.js`)
- Daily report → Sheets operations: reads dated feedback (evidence: `api/daily.js`)
- Daily report → Telegram: sends report (evidence: `api/daily.js`)
- Telegram webhook → Telegram: sends commands (evidence: `api/webhook.js`)
- Telegram webhook → Telegram: deletes messages (evidence: `api/webhook.js`)
- Study web app → Sheet endpoint: fetches schedule data (evidence: `app.js`)
- Study web app → Sheets endpoint: fetches sheet data
- Legacy course files → Study web app: available course files
