# brinks101/maths architecture

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

- Interactive diagram: https://gitdiagram.com/brinks101/maths
- Repository: https://github.com/brinks101/maths

## Overview

Maths is a dependency-free interactive high-school mathematics course site. The main learner journey is from a class and chapter overview into a chapter’s slide deck, where course material, interactive figures, and navigation are presented; learners can also open a persistent notes overlay. The graph includes the three documented curricula, automatismes, and the reusable slide and plotting layers. Some page-to-script wiring and unsampled subsystems are described only by the README, so those links cite documentation rather than implying source inspection.

Main entry points: [`js/kit.js`](https://github.com/brinks101/maths/blob/main/js/kit.js) (Slide builder), [`js/deck.js`](https://github.com/brinks101/maths/blob/main/js/deck.js) (Slide deck engine), [`js/catalogue.js`](https://github.com/brinks101/maths/blob/main/js/catalogue.js) (Course catalogue), [`js/plots.js`](https://github.com/brinks101/maths/blob/main/js/plots.js) (Interactive plots)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Course navigation"]
  node_home["Home page<br/>[index.html]"]
  node_classlist["Class overview<br/>[niveau.html]"]
  node_chapter["Chapter deck page<br/>[cours.html]"]
  node_catalogue["Course catalogue<br/>[catalogue.js]"]
  node_hub["Home renderer<br/>[hub.js]"]
  node_level["Class renderer<br/>[level.js]"]
end

subgraph group_runtime["Slide runtime"]
  node_deck["Slide deck engine<br/>[deck.js]"]
  node_slidekit["Slide builder<br/>[kit.js]"]
  node_helpers["Math helpers<br/>[helpers.js]"]
  node_mathrender["Math rendering<br/>[math-render.js]"]
end

subgraph group_curricula["Course content"]
  node_premiere["Première courses"]
  node_terminale["Terminale courses"]
  node_expertes["Maths Expertes courses"]
  node_automatismes["Automatismes content"]
  node_basechapters["Bases slides<br/>[slides-bases.js]"]
  node_trigchapter["Interactive trigonometry<br/>[slides-trigo.js]"]
end

subgraph group_interaction["Interactive tools"]
  node_plots["Interactive plots<br/>[plots.js]"]
  node_note["Notes overlay<br/>[note.js]"]
end

node_learner(("Learner"))

node_learner -->|"opens site"| node_home
node_learner -->|"selects class"| node_classlist
node_learner -->|"opens chapter"| node_chapter
node_home -->|"renders home"| node_hub
node_classlist -->|"renders overview"| node_level
node_catalogue -.->|"provides sections"| node_hub
node_catalogue -.->|"provides chapters"| node_level
node_catalogue -->|"identifies chapter"| node_deck
node_learner -->|"navigates slides"| node_deck
node_premiere -->|"registers slides"| node_slidekit
node_terminale -->|"registers slides"| node_slidekit
node_expertes -->|"registers slides"| node_slidekit
node_automatismes -->|"registers slides"| node_slidekit
node_basechapters -->|"adds slides"| node_deck
node_trigchapter -->|"adds slides"| node_deck
node_slidekit -->|"supplies slide data"| node_deck
node_deck -->|"enhances figures"| node_plots
node_premiere -->|"builds figures"| node_plots
node_terminale -->|"builds figures"| node_plots
node_learner -->|"opens notes"| node_note
node_slidekit -.->|"formats content"| node_helpers
node_slidekit -.->|"renders mathematics"| node_mathrender

click node_home "https://github.com/brinks101/maths/blob/main/index.html"
click node_classlist "https://github.com/brinks101/maths/blob/main/niveau.html"
click node_chapter "https://github.com/brinks101/maths/blob/main/cours.html"
click node_catalogue "https://github.com/brinks101/maths/blob/main/js/catalogue.js"
click node_hub "https://github.com/brinks101/maths/blob/main/js/hub.js"
click node_level "https://github.com/brinks101/maths/blob/main/js/level.js"
click node_deck "https://github.com/brinks101/maths/blob/main/js/deck.js"
click node_slidekit "https://github.com/brinks101/maths/blob/main/js/kit.js"
click node_helpers "https://github.com/brinks101/maths/blob/main/js/helpers.js"
click node_mathrender "https://github.com/brinks101/maths/blob/main/js/math-render.js"
click node_premiere "https://github.com/brinks101/maths/blob/main/js/contenu-premiere.js"
click node_terminale "https://github.com/brinks101/maths/blob/main/js/contenu-terminale.js"
click node_expertes "https://github.com/brinks101/maths/blob/main/js/contenu-expertes.js"
click node_automatismes "https://github.com/brinks101/maths/blob/main/js/contenu-automatismes.js"
click node_basechapters "https://github.com/brinks101/maths/blob/main/js/slides-bases.js"
click node_trigchapter "https://github.com/brinks101/maths/blob/main/js/slides-trigo.js"
click node_plots "https://github.com/brinks101/maths/blob/main/js/plots.js"
click node_note "https://github.com/brinks101/maths/blob/main/js/note.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_home,node_classlist,node_chapter,node_catalogue,node_hub,node_level toneBlue
class node_deck,node_slidekit,node_helpers,node_mathrender toneAmber
class node_premiere,node_terminale,node_expertes,node_automatismes,node_basechapters,node_trigchapter toneMint
class node_plots,node_note toneRose
class node_learner toneIndigo
```

## Components

### Course navigation

- [Home page](https://github.com/brinks101/maths/blob/main/index.html): `index.html`
- [Class overview](https://github.com/brinks101/maths/blob/main/niveau.html): `niveau.html`
- [Chapter deck page](https://github.com/brinks101/maths/blob/main/cours.html): `cours.html`
- [Course catalogue](https://github.com/brinks101/maths/blob/main/js/catalogue.js): `js/catalogue.js`
- [Home renderer](https://github.com/brinks101/maths/blob/main/js/hub.js): `js/hub.js`
- [Class renderer](https://github.com/brinks101/maths/blob/main/js/level.js): `js/level.js`

### Slide runtime

- [Slide deck engine](https://github.com/brinks101/maths/blob/main/js/deck.js): `js/deck.js`
- [Slide builder](https://github.com/brinks101/maths/blob/main/js/kit.js): `js/kit.js`
- [Math helpers](https://github.com/brinks101/maths/blob/main/js/helpers.js): `js/helpers.js`
- [Math rendering](https://github.com/brinks101/maths/blob/main/js/math-render.js): `js/math-render.js`

### Course content

- [Première courses](https://github.com/brinks101/maths/blob/main/js/contenu-premiere.js): `js/contenu-premiere.js`
- [Terminale courses](https://github.com/brinks101/maths/blob/main/js/contenu-terminale.js): `js/contenu-terminale.js`
- [Maths Expertes courses](https://github.com/brinks101/maths/blob/main/js/contenu-expertes.js): `js/contenu-expertes.js`
- [Automatismes content](https://github.com/brinks101/maths/blob/main/js/contenu-automatismes.js): `js/contenu-automatismes.js`
- [Bases slides](https://github.com/brinks101/maths/blob/main/js/slides-bases.js): `js/slides-bases.js`
- [Interactive trigonometry](https://github.com/brinks101/maths/blob/main/js/slides-trigo.js): `js/slides-trigo.js`

### Interactive tools

- [Interactive plots](https://github.com/brinks101/maths/blob/main/js/plots.js): `js/plots.js`
- [Notes overlay](https://github.com/brinks101/maths/blob/main/js/note.js): `js/note.js`

### Other components

- **Learner**

## Connections

- Learner → Home page: opens site (evidence: `README.md`)
- Learner → Class overview: selects class (evidence: `README.md`)
- Learner → Chapter deck page: opens chapter (evidence: `README.md`)
- Home page → Home renderer: renders home (evidence: `README.md`)
- Class overview → Class renderer: renders overview (evidence: `README.md`)
- Course catalogue → Home renderer: provides sections
- Course catalogue → Class renderer: provides chapters
- Course catalogue → Slide deck engine: identifies chapter (evidence: `js/deck.js`)
- Learner → Slide deck engine: navigates slides (evidence: `README.md`)
- Première courses → Slide builder: registers slides (evidence: `js/contenu-premiere.js`)
- Terminale courses → Slide builder: registers slides (evidence: `js/contenu-terminale.js`)
- Maths Expertes courses → Slide builder: registers slides (evidence: `js/contenu-expertes.js`)
- Automatismes content → Slide builder: registers slides (evidence: `js/contenu-automatismes.js`)
- Bases slides → Slide deck engine: adds slides (evidence: `js/slides-bases.js`)
- Interactive trigonometry → Slide deck engine: adds slides (evidence: `js/slides-trigo.js`)
- Slide builder → Slide deck engine: supplies slide data (evidence: `README.md`)
- Slide deck engine → Interactive plots: enhances figures (evidence: `js/deck.js`)
- Première courses → Interactive plots: builds figures (evidence: `js/contenu-premiere.js`)
- Terminale courses → Interactive plots: builds figures (evidence: `js/contenu-terminale.js`)
- Learner → Notes overlay: opens notes (evidence: `README.md`)
- Slide builder → Math helpers: formats content
- Slide builder → Math rendering: renders mathematics
