# 01-edu/public architecture

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

- Interactive diagram: https://gitdiagram.com/01-edu/public
- Repository: https://github.com/01-edu/public

## Overview

#### Purpose and Entry Points
This is the public curriculum repository for the 01 Edu system, not a single deployable application. Its primary artifacts are exercise specifications, audit criteria, fixtures, and validation harnesses. Start from `README.md`, browse the curriculum root at `subjects/README.md`, and consume individual exercise contracts through `subjects/<exercise>/README.md`.

#### Curriculum Content Layer
`subjects/` is the canonical content corpus, organized both as standalone exercises and discipline tracks. Each subject directory defines the learner-facing requirements; larger projects commonly add `audit/` material for peer evaluation.
- `subjects/`
- `subjects/ai/README.md`
- `subjects/blockchain/README.md`

Key tracks include programming fundamentals (primarily Go/Rust), JavaScript/DOM, shell/DevOps, AI/data, blockchain, cybersecurity, gaming, mobile, Java, and UX. The hierarchy is content-oriented rather than code-module-oriented; paths are stable identifiers used by documentation, tests, and external course platforms.

#### Assessment and Audit Boundary
Many project-level subjects include explicit audit documents, separating implementation requirements from review/scoring procedures. This supports human peer review rather than embedding all validation in executable tests.
- `subjects/forum/README.md`
- `subjects/forum/audit/README.md`
- `subjects/ai/classification/audit/README.md`

Audit extensions appear as nested curriculum stages where projects grow capabilities (for example authentication, security, or advanced features), each with its own specification and audit materials.

#### Automated JavaScript and DOM Validation
Executable JS test suites validate a substantial set of JavaScript and DOM exercises. Test files correspond to subject names; JSON files supply exercise-specific expected inputs/metadata, while ES modules cover DOM-oriented work.
- `js/tests/test.mjs`
- `js/tests/package.json`
- `js/tests/action-reaction-dom_test.mjs`

The runtime boundary is Node.js, containerized for reproducible execution. Tests consume learner implementations externally or in a configured workspace; this repository primarily supplies the harness and test definitions rather than learner solutions.

#### Shell/DevOps Validation
Shell exercise validation is a separate Dockerized harness with fixtures and reference solutions. Tests target command-line behavior, filesystem structures, permissions, process handling, and output contracts.
- `sh/tests/entrypoint.sh`
- `sh/tests/Dockerfile`
- `sh/tests/solutions/`

`sh/tests/` provides controlled input trees and expected implementations; `subjects/devops/` provides the associated learner specifications. This is a strong boundary between pedagogical content and executable evaluation infrastructure.

#### DOM Exercise Harness
A dedicated DOM test package predates or complements the ESM JS tests. It supplies a Node-based test runner, exercise tests, and a container entrypoint.
- `dom/package.json`
- `dom/test.js`
- `dom/Dockerfile`

DOM subject specifications often pair static HTML/CSS/data assets with behavior requirements, e.g. `subjects/get-them-all-dom/README.md` and `subjects/get-them-all-dom/get-them-all.html`.

#### Environment, Delivery, and External Integrations
Ubuntu workstation/image provisioning is scripted under `sh/debian/ubuntu/`, including session hooks, udev rules, account/session reset tools, and a small Go formatter utility.
- `sh/debian/ubuntu/configure.sh`
- `sh/debian/ubuntu/setup.sh`
- `sh/debian/ubuntu/system/usr/local/src/format/main.go`

GitHub Actions build and sanitize container images and run repository compliance checks. Docker is therefore central infrastructure; GitHub is the primary delivery/CI service. Individual curriculum subjects may require external ecosystems—AWS/Terraform, Docker/Kubernetes, Firebase, GraphQL/SQL, blockchain wallets/nodes, or mobile/web APIs—but these are exercise-specific contracts, not repository-wide runtime dependencies.

Main entry points: [`subjects/README.md`](https://github.com/01-edu/public/blob/master/subjects/README.md) (Curriculum Root), [`sh/tests/entrypoint.sh`](https://github.com/01-edu/public/blob/master/sh/tests/entrypoint.sh) (Shell Harness), [`subjects/get-them-all-dom/README.md`](https://github.com/01-edu/public/blob/master/subjects/get-them-all-dom/README.md) (DOM Exercise Spec), [`dom/test.js`](https://github.com/01-edu/public/blob/master/dom/test.js) (Legacy DOM Runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Curriculum Content"]
  node_root_readme["Repository Guide<br/>documentation<br/>[README.md]"]
  node_subjects_root["Curriculum Root<br/>content corpus<br/>[README.md]"]
  node_ai_track["AI Track<br/>curriculum track"]
  node_blockchain_track["Blockchain Track<br/>curriculum track<br/>[README.md]"]
  node_forum_spec["Forum Specification<br/>project contract<br/>[README.md]"]
  node_devops_subjects["DevOps Subjects<br/>curriculum track"]
  node_dom_spec["DOM Exercise Spec<br/>exercise contract<br/>[README.md]"]
  node_dom_asset["DOM Exercise Asset<br/>HTML fixture<br/>[get-them-all.html]"]
end

subgraph group_assessment["Audit Material"]
  node_forum_audit["Forum Audit<br/>audit contract<br/>[README.md]"]
  node_classification_audit["Classification Audit<br/>audit contract<br/>[README.md]"]
end

subgraph group_validation["Validation Harnesses"]
  node_js_runner{{"JS Test Runner<br/>Node ESM harness<br/>[test.mjs]"}}
  node_js_package["JS Test Package<br/>Node package<br/>[package.json]"]
  node_js_dom_test["DOM Test Suite<br/>ESM test"]
  node_shell_entrypoint{{"Shell Harness<br/>Docker entrypoint<br/>[entrypoint.sh]"}}
  node_shell_image["Shell Test Image<br/>Docker image"]
  node_shell_solutions["Reference Solutions<br/>test fixtures"]
  node_dom_runner{{"Legacy DOM Runner<br/>Node test runner<br/>[test.js]"}}
  node_dom_package["DOM Test Package<br/>Node package<br/>[package.json]"]
  node_dom_image["DOM Test Image<br/>Docker image"]
end

subgraph group_environment["Environment &amp; Delivery"]
  node_ubuntu_provision{{"Ubuntu Provisioning<br/>workstation scripts<br/>[configure.sh]"}}
  node_ubuntu_setup{{"Ubuntu Setup<br/>setup script<br/>[setup.sh]"}}
  node_go_formatter["Formatter Utility<br/>Go utility<br/>[main.go]"]
  node_github_ci(("GitHub Actions<br/>CI delivery service"))
end

node_root_readme -->|"directs readers to"| node_subjects_root
node_subjects_root -->|"contains"| node_ai_track
node_subjects_root -->|"contains"| node_blockchain_track
node_subjects_root -->|"contains"| node_forum_spec
node_subjects_root -->|"contains"| node_devops_subjects
node_subjects_root -->|"contains"| node_dom_spec
node_dom_spec -->|"uses asset"| node_dom_asset
node_forum_spec -->|"reviewed by"| node_forum_audit
node_ai_track -->|"includes audit stage"| node_classification_audit
node_js_package -->|"defines runtime"| node_js_runner
node_js_runner -->|"executes"| node_js_dom_test
node_dom_package -->|"defines runtime"| node_dom_runner
node_dom_image -->|"containerizes"| node_dom_runner
node_dom_runner -.->|"validates behavior"| node_dom_spec
node_shell_image -->|"containerizes"| node_shell_entrypoint
node_shell_entrypoint -->|"uses fixtures"| node_shell_solutions
node_shell_entrypoint -.->|"validates exercises"| node_devops_subjects
node_ubuntu_setup -->|"runs"| node_ubuntu_provision
node_ubuntu_provision -->|"installs or uses"| node_go_formatter
node_github_ci -->|"builds"| node_shell_image
node_github_ci -->|"builds"| node_dom_image

click node_root_readme "https://github.com/01-edu/public/blob/master/README.md"
click node_subjects_root "https://github.com/01-edu/public/blob/master/subjects/README.md"
click node_ai_track "https://github.com/01-edu/public/tree/master/subjects/ai"
click node_blockchain_track "https://github.com/01-edu/public/blob/master/subjects/blockchain/README.md"
click node_forum_spec "https://github.com/01-edu/public/blob/master/subjects/forum/README.md"
click node_devops_subjects "https://github.com/01-edu/public/tree/master/subjects/devops"
click node_dom_spec "https://github.com/01-edu/public/blob/master/subjects/get-them-all-dom/README.md"
click node_dom_asset "https://github.com/01-edu/public/blob/master/subjects/get-them-all-dom/get-them-all.html"
click node_forum_audit "https://github.com/01-edu/public/blob/master/subjects/forum/audit/README.md"
click node_classification_audit "https://github.com/01-edu/public/blob/master/subjects/ai/classification/audit/README.md"
click node_js_runner "https://github.com/01-edu/public/blob/master/js/tests/test.mjs"
click node_js_package "https://github.com/01-edu/public/blob/master/js/tests/package.json"
click node_js_dom_test "https://github.com/01-edu/public/blob/master/js/tests/action-reaction-dom_test.mjs"
click node_shell_entrypoint "https://github.com/01-edu/public/blob/master/sh/tests/entrypoint.sh"
click node_shell_image "https://github.com/01-edu/public/blob/master/sh/tests/Dockerfile"
click node_shell_solutions "https://github.com/01-edu/public/tree/master/sh/tests/solutions"
click node_dom_runner "https://github.com/01-edu/public/blob/master/dom/test.js"
click node_dom_package "https://github.com/01-edu/public/blob/master/dom/package.json"
click node_dom_image "https://github.com/01-edu/public/blob/master/dom/Dockerfile"
click node_ubuntu_provision "https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/configure.sh"
click node_ubuntu_setup "https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/setup.sh"
click node_go_formatter "https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/system/usr/local/src/format/main.go"

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_root_readme,node_subjects_root,node_ai_track,node_blockchain_track,node_forum_spec,node_devops_subjects,node_dom_spec,node_dom_asset toneBlue
class node_forum_audit,node_classification_audit toneAmber
class node_js_runner,node_js_package,node_js_dom_test,node_shell_entrypoint,node_shell_image,node_shell_solutions,node_dom_runner,node_dom_package,node_dom_image toneMint
class node_ubuntu_provision,node_ubuntu_setup,node_go_formatter,node_github_ci toneRose
```

## Components

### Curriculum Content

Canonical exercise specifications and tracks.

- [Repository Guide](https://github.com/01-edu/public/blob/master/README.md): documentation · Public curriculum entry point. · `README.md`
- [Curriculum Root](https://github.com/01-edu/public/blob/master/subjects/README.md): content corpus · Stable hierarchy of exercise contracts. · `subjects/README.md`
- [AI Track](https://github.com/01-edu/public/tree/master/subjects/ai): curriculum track · `subjects/ai`
- [Blockchain Track](https://github.com/01-edu/public/blob/master/subjects/blockchain/README.md): curriculum track · `subjects/blockchain/README.md`
- [Forum Specification](https://github.com/01-edu/public/blob/master/subjects/forum/README.md): project contract · `subjects/forum/README.md`
- [DevOps Subjects](https://github.com/01-edu/public/tree/master/subjects/devops): curriculum track · Learner specifications for shell and DevOps exercises. · `subjects/devops`
- [DOM Exercise Spec](https://github.com/01-edu/public/blob/master/subjects/get-them-all-dom/README.md): exercise contract · Pairs behavior requirements with static exercise assets. · `subjects/get-them-all-dom/README.md`
- [DOM Exercise Asset](https://github.com/01-edu/public/blob/master/subjects/get-them-all-dom/get-them-all.html): HTML fixture · `subjects/get-them-all-dom/get-them-all.html`

### Audit Material

Human peer-review and scoring contracts.

- [Forum Audit](https://github.com/01-edu/public/blob/master/subjects/forum/audit/README.md): audit contract · `subjects/forum/audit/README.md`
- [Classification Audit](https://github.com/01-edu/public/blob/master/subjects/ai/classification/audit/README.md): audit contract · Audit stage for an AI project. · `subjects/ai/classification/audit/README.md`

### Validation Harnesses

Containerized automated exercise validation.

- [JS Test Runner](https://github.com/01-edu/public/blob/master/js/tests/test.mjs): Node ESM harness · Runs JavaScript and DOM exercise tests. · `js/tests/test.mjs`
- [JS Test Package](https://github.com/01-edu/public/blob/master/js/tests/package.json): Node package · `js/tests/package.json`
- [DOM Test Suite](https://github.com/01-edu/public/blob/master/js/tests/action-reaction-dom_test.mjs): ESM test · Exercise-specific DOM validation. · `js/tests/action-reaction-dom_test.mjs`
- [Shell Harness](https://github.com/01-edu/public/blob/master/sh/tests/entrypoint.sh): Docker entrypoint · Validates command-line behavior and filesystem contracts. · `sh/tests/entrypoint.sh`
- [Shell Test Image](https://github.com/01-edu/public/blob/master/sh/tests/Dockerfile): Docker image · `sh/tests/Dockerfile`
- [Reference Solutions](https://github.com/01-edu/public/tree/master/sh/tests/solutions): test fixtures · Controlled expected implementations and inputs. · `sh/tests/solutions`
- [Legacy DOM Runner](https://github.com/01-edu/public/blob/master/dom/test.js): Node test runner · Dedicated DOM test package runner. · `dom/test.js`
- [DOM Test Package](https://github.com/01-edu/public/blob/master/dom/package.json): Node package · `dom/package.json`
- [DOM Test Image](https://github.com/01-edu/public/blob/master/dom/Dockerfile): Docker image · `dom/Dockerfile`

### Environment & Delivery

Workstation provisioning and repository delivery.

- [Ubuntu Provisioning](https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/configure.sh): workstation scripts · Configures the Ubuntu curriculum environment. · `sh/debian/ubuntu/configure.sh`
- [Ubuntu Setup](https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/setup.sh): setup script · `sh/debian/ubuntu/setup.sh`
- [Formatter Utility](https://github.com/01-edu/public/blob/master/sh/debian/ubuntu/system/usr/local/src/format/main.go): Go utility · Small formatter used by the provisioned environment. · `sh/debian/ubuntu/system/usr/local/src/format/main.go`
- **GitHub Actions**: CI delivery service · Builds and sanitizes images and runs compliance checks.

## Connections

- Repository Guide → Curriculum Root: directs readers to
- Curriculum Root → AI Track: contains
- Curriculum Root → Blockchain Track: contains
- Curriculum Root → Forum Specification: contains
- Curriculum Root → DevOps Subjects: contains
- Curriculum Root → DOM Exercise Spec: contains
- DOM Exercise Spec → DOM Exercise Asset: uses asset
- Forum Specification → Forum Audit: reviewed by
- AI Track → Classification Audit: includes audit stage
- JS Test Package → JS Test Runner: defines runtime
- JS Test Runner → DOM Test Suite: executes
- DOM Test Package → Legacy DOM Runner: defines runtime
- DOM Test Image → Legacy DOM Runner: containerizes
- Legacy DOM Runner → DOM Exercise Spec: validates behavior
- Shell Test Image → Shell Harness: containerizes
- Shell Harness → Reference Solutions: uses fixtures
- Shell Harness → DevOps Subjects: validates exercises
- Ubuntu Setup → Ubuntu Provisioning: runs
- Ubuntu Provisioning → Formatter Utility: installs or uses
- GitHub Actions → Shell Test Image: builds
- GitHub Actions → DOM Test Image: builds
