# nicopowell/informatics-lab architecture

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

- Interactive diagram: https://gitdiagram.com/nicopowell/informatics-lab
- Repository: https://github.com/nicopowell/informatics-lab

## Overview

Informatics Lab is an interactive educational web app. Learners browse a Modules → Topics → Experiences catalogue, open a concept, configure an input or workload, and step or play through a visualization with explanatory content and (where provided) reference code. The graph includes the documented sorting, searching, tree, MPLS and scheduling experiences. Shared playback and presentation are shown as an internal layer; unsampled experience implementations are represented by their existing directories, with relationships limited to those documented or indexed.

Main entry points: [`src/routes/experiences.ts`](https://github.com/nicopowell/informatics-lab/blob/main/src/routes/experiences.ts) (Experience registry), [`src/experience`](https://github.com/nicopowell/informatics-lab/tree/main/src/experience) (Experience UI), [`src/routes`](https://github.com/nicopowell/informatics-lab/tree/main/src/routes) (Catalogue screens), [`src/experiences/algorithms/trees/binary-search-tree`](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/trees/binary-search-tree) (Binary search tree)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Catalogue and routing"]
  node_app["Application routes<br/>[App.tsx]"]
  node_catalogue["Catalogue data<br/>[modules.ts]"]
  node_catalogue_views["Catalogue screens"]
  node_experience_registry["Experience registry<br/>[experiences.ts]"]
end

subgraph group_shared["Shared experience layer"]
  node_app_shell["Page shell<br/>[AppShell.tsx]"]
  node_shared_experience["Experience UI"]
  node_playback["Playback state"]
end

subgraph group_algorithms["Algorithms and structures"]
  node_sorting["Sorting experiences"]
  node_sorting_presets["Sorting presets<br/>[presets.ts]"]
  node_binary_search["Binary search"]
  node_sequential_search["Sequential search"]
  node_bst["Binary search tree"]
  node_tree_presets["Tree presets<br/>[presets.ts]"]
end

subgraph group_systems["Systems concepts"]
  node_scheduling["Scheduling experiences"]
  node_scheduling_workloads["Shared workloads<br/>[workloads.ts]"]
  node_scheduling_board["Scheduling board"]
  node_mpls["MPLS forwarding"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_app
node_app -->|"routes to"| node_catalogue_views
node_catalogue_views -->|"reads catalogue"| node_catalogue
node_catalogue_views -->|"checks availability"| node_experience_registry
node_experience_registry -->|"registers pages"| node_sorting
node_experience_registry -->|"registers page"| node_binary_search
node_experience_registry -->|"registers page"| node_sequential_search
node_experience_registry -->|"registers page"| node_bst
node_experience_registry -->|"registers pages"| node_scheduling
node_experience_registry -->|"registers page"| node_mpls
node_catalogue_views -->|"renders shell"| node_app_shell
node_sorting -.->|"uses shared UI"| node_shared_experience
node_binary_search -->|"uses shared UI"| node_shared_experience
node_sequential_search -->|"uses shared UI"| node_shared_experience
node_bst -->|"uses shared UI"| node_shared_experience
node_mpls -->|"uses shared UI"| node_shared_experience
node_binary_search -->|"configures playback"| node_playback
node_sequential_search -->|"configures playback"| node_playback
node_bst -->|"configures playback"| node_playback
node_mpls -->|"configures playback"| node_playback
node_sorting -->|"shares input shapes"| node_sorting_presets
node_scheduling -->|"shares workloads"| node_scheduling_workloads
node_scheduling -->|"shares board"| node_scheduling_board
node_bst -->|"loads presets"| node_tree_presets

click node_app "https://github.com/nicopowell/informatics-lab/blob/main/src/App.tsx"
click node_catalogue "https://github.com/nicopowell/informatics-lab/blob/main/src/modules/modules.ts"
click node_catalogue_views "https://github.com/nicopowell/informatics-lab/tree/main/src/routes"
click node_experience_registry "https://github.com/nicopowell/informatics-lab/blob/main/src/routes/experiences.ts"
click node_app_shell "https://github.com/nicopowell/informatics-lab/blob/main/src/components/AppShell.tsx"
click node_shared_experience "https://github.com/nicopowell/informatics-lab/tree/main/src/experience"
click node_playback "https://github.com/nicopowell/informatics-lab/blob/main/src/experience/useExperiencePlayer.ts"
click node_sorting "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/sorting"
click node_sorting_presets "https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/algorithms/sorting/presets.ts"
click node_binary_search "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/searching/binary-search"
click node_sequential_search "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/searching/sequential-search"
click node_bst "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/trees/binary-search-tree"
click node_tree_presets "https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/algorithms/trees/presets.ts"
click node_scheduling "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/operating-systems/process-management"
click node_scheduling_workloads "https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/operating-systems/process-management/workloads.ts"
click node_scheduling_board "https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/operating-systems/process-management/SchedulingBoard.tsx"
click node_mpls "https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/networks/routing/mpls-forwarding"

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_app,node_catalogue,node_catalogue_views,node_experience_registry toneBlue
class node_app_shell,node_shared_experience,node_playback toneAmber
class node_sorting,node_sorting_presets,node_binary_search,node_sequential_search,node_bst,node_tree_presets toneMint
class node_scheduling,node_scheduling_workloads,node_scheduling_board,node_mpls toneRose
class node_learner toneIndigo
```

## Components

### Catalogue and routing

- [Application routes](https://github.com/nicopowell/informatics-lab/blob/main/src/App.tsx): `src/App.tsx`
- [Catalogue data](https://github.com/nicopowell/informatics-lab/blob/main/src/modules/modules.ts): `src/modules/modules.ts`
- [Catalogue screens](https://github.com/nicopowell/informatics-lab/tree/main/src/routes): `src/routes`
- [Experience registry](https://github.com/nicopowell/informatics-lab/blob/main/src/routes/experiences.ts): `src/routes/experiences.ts`

### Shared experience layer

- [Page shell](https://github.com/nicopowell/informatics-lab/blob/main/src/components/AppShell.tsx): `src/components/AppShell.tsx`
- [Experience UI](https://github.com/nicopowell/informatics-lab/tree/main/src/experience): `src/experience`
- [Playback state](https://github.com/nicopowell/informatics-lab/blob/main/src/experience/useExperiencePlayer.ts): `src/experience/useExperiencePlayer.ts`

### Algorithms and structures

- [Sorting experiences](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/sorting): `src/experiences/algorithms/sorting`
- [Sorting presets](https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/algorithms/sorting/presets.ts): `src/experiences/algorithms/sorting/presets.ts`
- [Binary search](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/searching/binary-search): `src/experiences/algorithms/searching/binary-search`
- [Sequential search](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/searching/sequential-search): `src/experiences/algorithms/searching/sequential-search`
- [Binary search tree](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/algorithms/trees/binary-search-tree): `src/experiences/algorithms/trees/binary-search-tree`
- [Tree presets](https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/algorithms/trees/presets.ts): `src/experiences/algorithms/trees/presets.ts`

### Systems concepts

- [Scheduling experiences](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/operating-systems/process-management): `src/experiences/operating-systems/process-management`
- [Shared workloads](https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/operating-systems/process-management/workloads.ts): `src/experiences/operating-systems/process-management/workloads.ts`
- [Scheduling board](https://github.com/nicopowell/informatics-lab/blob/main/src/experiences/operating-systems/process-management/SchedulingBoard.tsx): `src/experiences/operating-systems/process-management/SchedulingBoard.tsx`
- [MPLS forwarding](https://github.com/nicopowell/informatics-lab/tree/main/src/experiences/networks/routing/mpls-forwarding): `src/experiences/networks/routing/mpls-forwarding`

### Other components

- **Learner**

## Connections

- Learner → Application routes: opens app (evidence: `README.md`)
- Application routes → Catalogue screens: routes to (evidence: `src/App.tsx`)
- Catalogue screens → Catalogue data: reads catalogue (evidence: `src/routes/ExperiencesScreen.tsx`)
- Catalogue screens → Experience registry: checks availability (evidence: `src/routes/ExperiencesScreen.tsx`)
- Experience registry → Sorting experiences: registers pages (evidence: `src/routes/experiences.ts`)
- Experience registry → Binary search: registers page (evidence: `src/routes/experiences.ts`)
- Experience registry → Sequential search: registers page (evidence: `src/routes/experiences.ts`)
- Experience registry → Binary search tree: registers page (evidence: `src/routes/experiences.ts`)
- Experience registry → Scheduling experiences: registers pages (evidence: `src/routes/experiences.ts`)
- Experience registry → MPLS forwarding: registers page (evidence: `src/routes/experiences.ts`)
- Catalogue screens → Page shell: renders shell (evidence: `src/components/AppShell.tsx`)
- Sorting experiences → Experience UI: uses shared UI
- Binary search → Experience UI: uses shared UI (evidence: `src/experiences/algorithms/searching/binary-search/BinarySearchPage.tsx`)
- Sequential search → Experience UI: uses shared UI (evidence: `src/experiences/algorithms/searching/sequential-search/SequentialSearchPage.tsx`)
- Binary search tree → Experience UI: uses shared UI (evidence: `src/experiences/algorithms/trees/binary-search-tree/BinarySearchTreePage.tsx`)
- MPLS forwarding → Experience UI: uses shared UI (evidence: `src/experiences/networks/routing/mpls-forwarding/MplsForwardingPage.tsx`)
- Binary search → Playback state: configures playback (evidence: `src/experiences/algorithms/searching/binary-search/BinarySearchPage.tsx`)
- Sequential search → Playback state: configures playback (evidence: `src/experiences/algorithms/searching/sequential-search/SequentialSearchPage.tsx`)
- Binary search tree → Playback state: configures playback (evidence: `src/experiences/algorithms/trees/binary-search-tree/BinarySearchTreePage.tsx`)
- MPLS forwarding → Playback state: configures playback (evidence: `src/experiences/networks/routing/mpls-forwarding/MplsForwardingPage.tsx`)
- Sorting experiences → Sorting presets: shares input shapes (evidence: `README.md`)
- Scheduling experiences → Shared workloads: shares workloads (evidence: `README.md`)
- Scheduling experiences → Scheduling board: shares board (evidence: `README.md`)
- Binary search tree → Tree presets: loads presets (evidence: `src/experiences/algorithms/trees/binary-search-tree/BinarySearchTreePage.tsx`)
