# schooling-co/schooling architecture

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

- Interactive diagram: https://gitdiagram.com/schooling-co/schooling
- Repository: https://github.com/schooling-co/schooling

## Overview

Schooling is a set of installable, role-specific web apps for school, super-admin, teacher, and parent use. Users open the relevant app from its home-screen icon, sign in with an activation code, and use app settings to download a backup; the README says data stays in the device’s browser. The root service worker precaches an app shell and serves cached content when offline. The role HTML files are present in the tree but were not sampled, so their internal workflows and interactions cannot be detailed here.

Main entry points: [`index.html`](https://github.com/schooling-co/schooling/blob/main/index.html) (School app), [`super/index.html`](https://github.com/schooling-co/schooling/blob/main/super/index.html) (Super-admin app), [`teacher/index.html`](https://github.com/schooling-co/schooling/blob/main/teacher/index.html) (Teacher app), [`parent/index.html`](https://github.com/schooling-co/schooling/blob/main/parent/index.html) (Parent app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Role apps"]
  node_school["School app<br/>[index.html]"]
  node_super["Super-admin app<br/>[index.html]"]
  node_teacher["Teacher app<br/>[index.html]"]
  node_parent["Parent app<br/>[index.html]"]
end

subgraph group_install["Installability"]
  node_schoolmanifest["School manifest"]
  node_supermanifest["Super manifest"]
  node_teachermanifest["Teacher manifest"]
  node_parentmanifest["Parent manifest"]
end

subgraph group_offline["Offline support"]
  node_sw["Offline service worker<br/>[sw.js]"]
  node_cache[("Browser cache")]
end

subgraph group_state["Browser data"]
  node_localdata[("Browser-local data")]
  node_backup["Download backup<br/>[index.html]"]
end

node_user(("User"))

node_user -->|"opens"| node_school
node_user -->|"opens"| node_super
node_user -->|"opens"| node_teacher
node_user -->|"opens"| node_parent
node_school -->|"installs as"| node_schoolmanifest
node_super -->|"installs as"| node_supermanifest
node_teacher -->|"installs as"| node_teachermanifest
node_parent -->|"installs as"| node_parentmanifest
node_school -->|"stores data"| node_localdata
node_super -->|"stores data"| node_localdata
node_teacher -->|"stores data"| node_localdata
node_parent -->|"stores data"| node_localdata
node_user -->|"downloads"| node_backup
node_sw -->|"precaches shell"| node_cache
node_sw -->|"serves offline"| node_cache

click node_school "https://github.com/schooling-co/schooling/blob/main/index.html"
click node_super "https://github.com/schooling-co/schooling/blob/main/super/index.html"
click node_teacher "https://github.com/schooling-co/schooling/blob/main/teacher/index.html"
click node_parent "https://github.com/schooling-co/schooling/blob/main/parent/index.html"
click node_schoolmanifest "https://github.com/schooling-co/schooling/blob/main/manifest.webmanifest"
click node_supermanifest "https://github.com/schooling-co/schooling/blob/main/super/manifest.webmanifest"
click node_teachermanifest "https://github.com/schooling-co/schooling/blob/main/teacher/manifest.webmanifest"
click node_parentmanifest "https://github.com/schooling-co/schooling/blob/main/parent/manifest.webmanifest"
click node_sw "https://github.com/schooling-co/schooling/blob/main/sw.js"
click node_backup "https://github.com/schooling-co/schooling/blob/main/index.html"

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_school,node_super,node_teacher,node_parent,node_user toneBlue
class node_schoolmanifest,node_supermanifest,node_teachermanifest,node_parentmanifest toneAmber
class node_sw,node_cache toneMint
class node_localdata,node_backup toneRose
```

## Components

### Role apps

- [School app](https://github.com/schooling-co/schooling/blob/main/index.html): `index.html`
- [Super-admin app](https://github.com/schooling-co/schooling/blob/main/super/index.html): `super/index.html`
- [Teacher app](https://github.com/schooling-co/schooling/blob/main/teacher/index.html): `teacher/index.html`
- [Parent app](https://github.com/schooling-co/schooling/blob/main/parent/index.html): `parent/index.html`

### Installability

- [School manifest](https://github.com/schooling-co/schooling/blob/main/manifest.webmanifest): `manifest.webmanifest`
- [Super manifest](https://github.com/schooling-co/schooling/blob/main/super/manifest.webmanifest): `super/manifest.webmanifest`
- [Teacher manifest](https://github.com/schooling-co/schooling/blob/main/teacher/manifest.webmanifest): `teacher/manifest.webmanifest`
- [Parent manifest](https://github.com/schooling-co/schooling/blob/main/parent/manifest.webmanifest): `parent/manifest.webmanifest`

### Offline support

- [Offline service worker](https://github.com/schooling-co/schooling/blob/main/sw.js): `sw.js`
- **Browser cache**

### Browser data

- **Browser-local data**
- [Download backup](https://github.com/schooling-co/schooling/blob/main/index.html): `index.html`

### Other components

- **User**

## Connections

- User → School app: opens (evidence: `README.md`)
- User → Super-admin app: opens (evidence: `README.md`)
- User → Teacher app: opens (evidence: `README.md`)
- User → Parent app: opens (evidence: `README.md`)
- School app → School manifest: installs as (evidence: `README.md`)
- Super-admin app → Super manifest: installs as (evidence: `README.md`)
- Teacher app → Teacher manifest: installs as (evidence: `README.md`)
- Parent app → Parent manifest: installs as (evidence: `README.md`)
- School app → Browser-local data: stores data (evidence: `README.md`)
- Super-admin app → Browser-local data: stores data (evidence: `README.md`)
- Teacher app → Browser-local data: stores data (evidence: `README.md`)
- Parent app → Browser-local data: stores data (evidence: `README.md`)
- User → Download backup: downloads (evidence: `README.md`)
- Offline service worker → Browser cache: precaches shell (evidence: `sw.js`)
- Offline service worker → Browser cache: serves offline (evidence: `sw.js`)
