# c4software/bts-sio architecture

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

- Interactive diagram: https://gitdiagram.com/c4software/bts-sio
- Repository: https://github.com/c4software/bts-sio

## Overview

This tree is a collection of browser-facing course and learning tools rather than one unified application. The clearest runtime workflow is Reveal.js initializing a presentation and delegating slide behavior to controllers; other substantial branches include a browser PHP runtime, quiz conversion, standalone activities, and a cached veille endpoint. The README is empty, so capabilities are identified from paths and available excerpts; links between unsampled subsystems are omitted.

Main entry points: [`public/cours/revealjs/js/reveal.js`](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/reveal.js) (Reveal engine), [`public/php-wasm/0.1.0/PhpBase.mjs`](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/PhpBase.mjs) (PHP runtime wrapper), [`public/cours/revealjs/js/controllers/scrollview.js`](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/scrollview.js) (Scroll view), [`netlify/functions/veille.mts`](https://github.com/c4software/bts-sio/blob/master/netlify/functions/veille.mts) (Veille endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Presentations"]
  node_presenter["Reveal engine<br/>[reveal.js]"]
  node_config["Presentation config<br/>[config.js]"]
  node_slidecontent["Slide content<br/>[slidecontent.js]"]
  node_slidenumber["Slide numbers<br/>[slidenumber.js]"]
  node_jumptoslide["Jump to slide<br/>[jumptoslide.js]"]
  node_backgrounds["Backgrounds<br/>[backgrounds.js]"]
  node_autoanimate["Auto animation<br/>[autoanimate.js]"]
  node_scrollview["Scroll view<br/>[scrollview.js]"]
  node_printview["Print view<br/>[printview.js]"]
  node_fragments["Fragments<br/>[fragments.js]"]
  node_overview["Slide overview<br/>[overview.js]"]
  node_keyboard["Keyboard control<br/>[keyboard.js]"]
  node_location["Location sync<br/>[location.js]"]
  node_controls["Slide controls<br/>[controls.js]"]
  node_progress["Progress display<br/>[progress.js]"]
  node_pointer["Pointer<br/>[pointer.js]"]
  node_plugins["Plugin manager<br/>[plugins.js]"]
  node_touch["Touch control<br/>[touch.js]"]
  node_playback["Auto-slide playback<br/>[playback.js]"]
  node_presentation_plugins["Presentation plugins"]
end

subgraph group_php["PHP runtime"]
  node_phpweb["Browser PHP wrapper<br/>[PhpWeb.mjs]"]
  node_phpbase["PHP runtime wrapper<br/>[PhpBase.mjs]"]
  node_phpbinary["PHP WebAssembly<br/>[php8.3-web.mjs]"]
  node_filesystem["Virtual filesystem<br/>[fsOps.mjs]"]
  node_dependencies["Dependency resolver"]
  node_transactions["Persistent transactions"]
  node_output["Output buffer<br/>[OutputBuffer.mjs]"]
end

subgraph group_learning["Learning tools"]
  node_gift["Quiz converter<br/>[gift2md.mjs]"]
  node_surveys["Algorithm activities"]
  node_reformulation["Reformulation tool<br/>[main.js]"]
end

subgraph group_services["Site services"]
  node_veille_endpoint["Veille endpoint<br/>[veille.mts]"]
  node_veille_sources["Veille sources<br/>[veille.ts]"]
  node_blob_store[("Netlify blob cache")]
end

subgraph group_browser["Browser utilities"]
end

node_veille_user(("Site visitor"))

node_presenter -->|"initializes"| node_slidecontent
node_presenter -->|"initializes"| node_slidenumber
node_presenter -->|"initializes"| node_jumptoslide
node_presenter -->|"initializes"| node_backgrounds
node_presenter -->|"initializes"| node_autoanimate
node_presenter -->|"initializes"| node_scrollview
node_presenter -->|"initializes"| node_printview
node_presenter -->|"initializes"| node_fragments
node_presenter -->|"initializes"| node_overview
node_presenter -->|"initializes"| node_keyboard
node_presenter -->|"initializes"| node_location
node_presenter -->|"initializes"| node_controls
node_presenter -->|"initializes"| node_progress
node_presenter -->|"initializes"| node_pointer
node_presenter -->|"initializes"| node_plugins
node_presenter -->|"initializes"| node_touch
node_presenter -->|"creates"| node_playback
node_scrollview -->|"relayouts"| node_slidecontent
node_scrollview -->|"sorts fragments"| node_fragments
node_fragments -->|"stops embedded content"| node_slidecontent
node_phpweb -->|"extends"| node_phpbase
node_phpweb -->|"delegates transactions"| node_transactions
node_phpbase -->|"queues filesystem ops"| node_filesystem
node_phpbase -->|"resolves libraries"| node_dependencies
node_phpbase -->|"buffers output"| node_output
node_phpbase -.->|"loads runtime"| node_phpbinary
node_veille_user -->|"requests"| node_veille_endpoint
node_veille_endpoint -->|"fetches feeds"| node_veille_sources
node_veille_endpoint -->|"reads and writes cache"| node_blob_store

click node_presenter "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/reveal.js"
click node_config "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/config.js"
click node_slidecontent "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/slidecontent.js"
click node_slidenumber "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/slidenumber.js"
click node_jumptoslide "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/jumptoslide.js"
click node_backgrounds "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/backgrounds.js"
click node_autoanimate "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/autoanimate.js"
click node_scrollview "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/scrollview.js"
click node_printview "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/printview.js"
click node_fragments "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/fragments.js"
click node_overview "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/overview.js"
click node_keyboard "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/keyboard.js"
click node_location "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/location.js"
click node_controls "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/controls.js"
click node_progress "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/progress.js"
click node_pointer "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/pointer.js"
click node_plugins "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/plugins.js"
click node_touch "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/touch.js"
click node_playback "https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/components/playback.js"
click node_presentation_plugins "https://github.com/c4software/bts-sio/tree/master/public/cours/revealjs/plugin"
click node_phpweb "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/PhpWeb.mjs"
click node_phpbase "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/PhpBase.mjs"
click node_phpbinary "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/php8.3-web.mjs"
click node_filesystem "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/fsOps.mjs"
click node_dependencies "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/resolveDependencies.mjs"
click node_transactions "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/webTransactions.mjs"
click node_output "https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/OutputBuffer.mjs"
click node_gift "https://github.com/c4software/bts-sio/blob/master/moodle/gift2md.mjs"
click node_surveys "https://github.com/c4software/bts-sio/tree/master/public/enquete-algo"
click node_reformulation "https://github.com/c4software/bts-sio/blob/master/public/reformulation/main.js"
click node_veille_endpoint "https://github.com/c4software/bts-sio/blob/master/netlify/functions/veille.mts"
click node_veille_sources "https://github.com/c4software/bts-sio/blob/master/.vitepress/veille.ts"

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_presenter,node_config,node_slidecontent,node_slidenumber,node_jumptoslide,node_backgrounds,node_autoanimate,node_scrollview,node_printview,node_fragments,node_overview,node_keyboard,node_location,node_controls,node_progress,node_pointer,node_plugins,node_touch,node_playback,node_presentation_plugins toneBlue
class node_phpweb,node_phpbase,node_phpbinary,node_filesystem,node_dependencies,node_transactions,node_output toneAmber
class node_gift,node_surveys,node_reformulation toneMint
class node_veille_endpoint,node_veille_sources,node_blob_store toneRose
class node_veille_user toneIndigo
```

## Components

### Presentations

- [Reveal engine](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/reveal.js): `public/cours/revealjs/js/reveal.js`
- [Presentation config](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/config.js): `public/cours/revealjs/js/config.js`
- [Slide content](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/slidecontent.js): `public/cours/revealjs/js/controllers/slidecontent.js`
- [Slide numbers](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/slidenumber.js): `public/cours/revealjs/js/controllers/slidenumber.js`
- [Jump to slide](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/jumptoslide.js): `public/cours/revealjs/js/controllers/jumptoslide.js`
- [Backgrounds](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/backgrounds.js): `public/cours/revealjs/js/controllers/backgrounds.js`
- [Auto animation](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/autoanimate.js): `public/cours/revealjs/js/controllers/autoanimate.js`
- [Scroll view](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/scrollview.js): `public/cours/revealjs/js/controllers/scrollview.js`
- [Print view](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/printview.js): `public/cours/revealjs/js/controllers/printview.js`
- [Fragments](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/fragments.js): `public/cours/revealjs/js/controllers/fragments.js`
- [Slide overview](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/overview.js): `public/cours/revealjs/js/controllers/overview.js`
- [Keyboard control](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/keyboard.js): `public/cours/revealjs/js/controllers/keyboard.js`
- [Location sync](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/location.js): `public/cours/revealjs/js/controllers/location.js`
- [Slide controls](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/controls.js): `public/cours/revealjs/js/controllers/controls.js`
- [Progress display](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/progress.js): `public/cours/revealjs/js/controllers/progress.js`
- [Pointer](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/pointer.js): `public/cours/revealjs/js/controllers/pointer.js`
- [Plugin manager](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/plugins.js): `public/cours/revealjs/js/controllers/plugins.js`
- [Touch control](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/controllers/touch.js): `public/cours/revealjs/js/controllers/touch.js`
- [Auto-slide playback](https://github.com/c4software/bts-sio/blob/master/public/cours/revealjs/js/components/playback.js): `public/cours/revealjs/js/components/playback.js`
- [Presentation plugins](https://github.com/c4software/bts-sio/tree/master/public/cours/revealjs/plugin): `public/cours/revealjs/plugin`

### PHP runtime

- [Browser PHP wrapper](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/PhpWeb.mjs): `public/php-wasm/0.1.0/PhpWeb.mjs`
- [PHP runtime wrapper](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/PhpBase.mjs): `public/php-wasm/0.1.0/PhpBase.mjs`
- [PHP WebAssembly](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/php8.3-web.mjs): `public/php-wasm/0.1.0/php8.3-web.mjs`
- [Virtual filesystem](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/fsOps.mjs): `public/php-wasm/0.1.0/fsOps.mjs`
- [Dependency resolver](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/resolveDependencies.mjs): `public/php-wasm/0.1.0/resolveDependencies.mjs`
- [Persistent transactions](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/webTransactions.mjs): `public/php-wasm/0.1.0/webTransactions.mjs`
- [Output buffer](https://github.com/c4software/bts-sio/blob/master/public/php-wasm/0.1.0/OutputBuffer.mjs): `public/php-wasm/0.1.0/OutputBuffer.mjs`

### Learning tools

- [Quiz converter](https://github.com/c4software/bts-sio/blob/master/moodle/gift2md.mjs): `moodle/gift2md.mjs`
- [Algorithm activities](https://github.com/c4software/bts-sio/tree/master/public/enquete-algo): `public/enquete-algo`
- [Reformulation tool](https://github.com/c4software/bts-sio/blob/master/public/reformulation/main.js): `public/reformulation/main.js`

### Site services

- [Veille endpoint](https://github.com/c4software/bts-sio/blob/master/netlify/functions/veille.mts): `netlify/functions/veille.mts`
- [Veille sources](https://github.com/c4software/bts-sio/blob/master/.vitepress/veille.ts): `.vitepress/veille.ts`
- **Netlify blob cache**

### Other components

- **Site visitor**

## Connections

- Reveal engine → Slide content: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Slide numbers: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Jump to slide: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Backgrounds: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Auto animation: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Scroll view: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Print view: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Fragments: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Slide overview: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Keyboard control: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Location sync: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Slide controls: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Progress display: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Pointer: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Plugin manager: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Touch control: initializes (evidence: `public/cours/revealjs/js/reveal.js`)
- Reveal engine → Auto-slide playback: creates (evidence: `public/cours/revealjs/js/reveal.js`)
- Scroll view → Slide content: relayouts (evidence: `public/cours/revealjs/js/controllers/scrollview.js`)
- Scroll view → Fragments: sorts fragments (evidence: `public/cours/revealjs/js/controllers/scrollview.js`)
- Fragments → Slide content: stops embedded content (evidence: `public/cours/revealjs/js/controllers/fragments.js`)
- Browser PHP wrapper → PHP runtime wrapper: extends (evidence: `public/php-wasm/0.1.0/PhpWeb.mjs`)
- Browser PHP wrapper → Persistent transactions: delegates transactions (evidence: `public/php-wasm/0.1.0/PhpWeb.mjs`)
- PHP runtime wrapper → Virtual filesystem: queues filesystem ops (evidence: `public/php-wasm/0.1.0/PhpBase.mjs`)
- PHP runtime wrapper → Dependency resolver: resolves libraries (evidence: `public/php-wasm/0.1.0/PhpBase.mjs`)
- PHP runtime wrapper → Output buffer: buffers output (evidence: `public/php-wasm/0.1.0/PhpBase.mjs`)
- PHP runtime wrapper → PHP WebAssembly: loads runtime
- Site visitor → Veille endpoint: requests (evidence: `netlify/functions/veille.mts`)
- Veille endpoint → Veille sources: fetches feeds (evidence: `netlify/functions/veille.mts`)
- Veille endpoint → Netlify blob cache: reads and writes cache (evidence: `netlify/functions/veille.mts`)
