# raghava-183/cdoe-workboard architecture

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

- Interactive diagram: https://gitdiagram.com/raghava-183/cdoe-workboard
- Repository: https://github.com/raghava-183/cdoe-workboard

## Overview

CDOE Workboard is a browser-based department calendar and faculty day-slot tracker. Users view activity schedules and tracker progress; department editors sign in to manage activities, proofs, faculty, and slot entries. The browser’s site is a single file, while separate read and save API handlers provide the server-side interface to authentication and persistence. The README documents Excel import/export, reports, and local preview; the latter is a development aid, not part of the deployed product. The frontend was not excerpted, so its internal calls and feature-specific implementation are not detailed.

Main entry points: [`public/index.html`](https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html) (Workboard site), [`api/_db.js`](https://github.com/raghava-183/cdoe-workboard/blob/main/api/_db.js) (Database layer), [`api/save.js`](https://github.com/raghava-183/cdoe-workboard/blob/main/api/save.js) (Save API), [`api/read.js`](https://github.com/raghava-183/cdoe-workboard/blob/main/api/read.js) (Read API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Workboard UI"]
  node_site["Workboard site<br/>[index.html]"]
  node_activity["Activity calendar<br/>[index.html]"]
  node_tracker["Day tracker<br/>[index.html]"]
  node_reports["Reports and exports<br/>[index.html]"]
end

subgraph group_api["API handlers"]
  node_read["Read API<br/>[read.js]"]
  node_save["Save API<br/>[save.js]"]
end

subgraph group_identity["Access control"]
  node_auth["Login tokens<br/>[_auth.js]"]
end

subgraph group_data["Persistence"]
  node_db["Database layer<br/>[_db.js]"]
  node_store[("Workboard records<br/>[_db.js]")]
end

node_staff(("Staff and editors"))
node_neon[("Neon Postgres")]

node_staff -->|"uses"| node_site
node_site -.->|"requests views"| node_read
node_site -.->|"submits changes"| node_save
node_activity -->|"renders within"| node_site
node_tracker -->|"renders within"| node_site
node_reports -->|"renders within"| node_site
node_read -->|"reads through"| node_db
node_save -->|"reads and writes"| node_db
node_save -->|"checks tokens"| node_auth
node_db -->|"queries"| node_store
node_db -->|"connects to"| node_neon

click node_site "https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html"
click node_activity "https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html"
click node_tracker "https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html"
click node_reports "https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html"
click node_read "https://github.com/raghava-183/cdoe-workboard/blob/main/api/read.js"
click node_save "https://github.com/raghava-183/cdoe-workboard/blob/main/api/save.js"
click node_auth "https://github.com/raghava-183/cdoe-workboard/blob/main/api/_auth.js"
click node_db "https://github.com/raghava-183/cdoe-workboard/blob/main/api/_db.js"
click node_store "https://github.com/raghava-183/cdoe-workboard/blob/main/api/_db.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_site,node_activity,node_tracker,node_reports toneBlue
class node_read,node_save,node_neon toneAmber
class node_auth toneMint
class node_db,node_store toneRose
class node_staff toneIndigo
```

## Components

### Workboard UI

- [Workboard site](https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html): `public/index.html`
- [Activity calendar](https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html): `public/index.html`
- [Day tracker](https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html): `public/index.html`
- [Reports and exports](https://github.com/raghava-183/cdoe-workboard/blob/main/public/index.html): `public/index.html`

### API handlers

- [Read API](https://github.com/raghava-183/cdoe-workboard/blob/main/api/read.js): `api/read.js`
- [Save API](https://github.com/raghava-183/cdoe-workboard/blob/main/api/save.js): `api/save.js`

### Access control

- [Login tokens](https://github.com/raghava-183/cdoe-workboard/blob/main/api/_auth.js): `api/_auth.js`

### Persistence

- [Database layer](https://github.com/raghava-183/cdoe-workboard/blob/main/api/_db.js): `api/_db.js`
- [Workboard records](https://github.com/raghava-183/cdoe-workboard/blob/main/api/_db.js): `api/_db.js`

### Other components

- **Staff and editors**
- **Neon Postgres**

## Connections

- Staff and editors → Workboard site: uses (evidence: `README.md`)
- Workboard site → Read API: requests views
- Workboard site → Save API: submits changes
- Activity calendar → Workboard site: renders within (evidence: `README.md`)
- Day tracker → Workboard site: renders within (evidence: `README.md`)
- Reports and exports → Workboard site: renders within (evidence: `README.md`)
- Read API → Database layer: reads through (evidence: `api/read.js`)
- Save API → Database layer: reads and writes (evidence: `api/save.js`)
- Save API → Login tokens: checks tokens (evidence: `api/save.js`)
- Database layer → Workboard records: queries (evidence: `api/_db.js`)
- Database layer → Neon Postgres: connects to (evidence: `api/_db.js`)
