# kaigani/qlobe-kids architecture

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

- Interactive diagram: https://gitdiagram.com/kaigani/qlobe-kids
- Repository: https://github.com/kaigani/qlobe-kids

## Overview

QLOBE Kids is a browser-based library of short, tablet-first learning games for children. The documented player journey is to open the hub, choose a game, and learn through brief interactive play; Sound Sprouts is identified as the reference game, though its files are not present in this tree. The repository also provides reusable audio, interaction, timing, and accessibility helpers, plus an integrated authoring studio. The README documents the hub and studio, but their implementation files are not shown here, so those links are documentation-based; unsampled game internals are not expanded.

Main entry points: [`games`](https://github.com/kaigani/qlobe-kids/tree/main/games) (Learning games), [`shared/js/audio-unlock.js`](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/audio-unlock.js) (Audio helpers), [`shared/js/narrator.js`](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/narrator.js) (Narration), [`shared/js/voice-clips.js`](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/voice-clips.js) (Voice playback)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Play experience"]
  node_hub["Game hub"]
end

subgraph group_games["Game library"]
  node_game_collection["Learning games"]
  node_reference_game["Sound Sprouts"]
end

subgraph group_shared["Shared runtime"]
  node_shared_assets["Shared assets"]
  node_audio_helpers["Audio helpers<br/>[audio-unlock.js]"]
  node_voice_helpers["Voice playback<br/>[voice-clips.js]"]
  node_sound_effects["Sound effects<br/>[sfx.js]"]
  node_interaction_helpers["Touch controls<br/>[tap.js]"]
  node_screen_flow["Screen flow<br/>[screens.js]"]
  node_timing_helpers["Timers<br/>[timers.js]"]
  node_narration["Narration<br/>[narrator.js]"]
  node_celebration["Celebration<br/>[celebrate.js]"]
  node_preloading["Image preloading<br/>[preload.js]"]
  node_idle_nudge["Gentle prompts<br/>[idle-nudge.js]"]
  node_debug_support["Game review hooks<br/>[debug-harness.js]"]
  node_randomness["Seeded randomness<br/>[rng.js]"]
end

subgraph group_authoring["Authoring"]
  node_studio["QLOBE Studio"]
end

node_child(("Child player"))
node_browser["Web browser"]

node_child -->|"opens"| node_browser
node_browser -->|"loads"| node_hub
node_hub -->|"lists games"| node_game_collection
node_child -->|"chooses game"| node_hub
node_hub -->|"launches"| node_reference_game
node_game_collection -->|"reuses"| node_shared_assets
node_game_collection -.->|"uses"| node_audio_helpers
node_audio_helpers -->|"unlocks"| node_sound_effects
node_audio_helpers -->|"unlocks"| node_voice_helpers
node_narration -->|"speaks through"| node_voice_helpers
node_child -.->|"touches"| node_interaction_helpers
node_game_collection -.->|"uses"| node_screen_flow
node_game_collection -.->|"uses"| node_timing_helpers
node_game_collection -.->|"uses"| node_narration
node_game_collection -.->|"uses"| node_celebration
node_game_collection -.->|"uses"| node_preloading
node_game_collection -.->|"uses"| node_idle_nudge
node_game_collection -.->|"uses"| node_debug_support
node_game_collection -.->|"uses"| node_randomness
node_child -->|"authors with"| node_studio

click node_game_collection "https://github.com/kaigani/qlobe-kids/tree/main/games"
click node_shared_assets "https://github.com/kaigani/qlobe-kids/tree/main/shared"
click node_audio_helpers "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/audio-unlock.js"
click node_voice_helpers "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/voice-clips.js"
click node_sound_effects "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/sfx.js"
click node_interaction_helpers "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/tap.js"
click node_screen_flow "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/screens.js"
click node_timing_helpers "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/timers.js"
click node_narration "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/narrator.js"
click node_celebration "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/celebrate.js"
click node_preloading "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/preload.js"
click node_idle_nudge "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/idle-nudge.js"
click node_debug_support "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/debug-harness.js"
click node_randomness "https://github.com/kaigani/qlobe-kids/blob/main/shared/js/rng.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_hub,node_browser toneBlue
class node_game_collection,node_reference_game toneAmber
class node_shared_assets,node_audio_helpers,node_voice_helpers,node_sound_effects,node_interaction_helpers,node_screen_flow,node_timing_helpers,node_narration,node_celebration,node_preloading,node_idle_nudge,node_debug_support,node_randomness toneMint
class node_studio toneRose
class node_child toneIndigo
```

## Components

### Play experience

- **Game hub**

### Game library

- [Learning games](https://github.com/kaigani/qlobe-kids/tree/main/games): `games`
- **Sound Sprouts**

### Shared runtime

- [Shared assets](https://github.com/kaigani/qlobe-kids/tree/main/shared): `shared`
- [Audio helpers](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/audio-unlock.js): `shared/js/audio-unlock.js`
- [Voice playback](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/voice-clips.js): `shared/js/voice-clips.js`
- [Sound effects](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/sfx.js): `shared/js/sfx.js`
- [Touch controls](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/tap.js): `shared/js/tap.js`
- [Screen flow](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/screens.js): `shared/js/screens.js`
- [Timers](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/timers.js): `shared/js/timers.js`
- [Narration](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/narrator.js): `shared/js/narrator.js`
- [Celebration](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/celebrate.js): `shared/js/celebrate.js`
- [Image preloading](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/preload.js): `shared/js/preload.js`
- [Gentle prompts](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/idle-nudge.js): `shared/js/idle-nudge.js`
- [Game review hooks](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/debug-harness.js): `shared/js/debug-harness.js`
- [Seeded randomness](https://github.com/kaigani/qlobe-kids/blob/main/shared/js/rng.js): `shared/js/rng.js`

### Authoring

- **QLOBE Studio**

### Other components

- **Child player**
- **Web browser**

## Connections

- Child player → Web browser: opens (evidence: `README.md`)
- Web browser → Game hub: loads (evidence: `README.md`)
- Game hub → Learning games: lists games (evidence: `README.md`)
- Child player → Game hub: chooses game (evidence: `README.md`)
- Game hub → Sound Sprouts: launches (evidence: `README.md`)
- Learning games → Shared assets: reuses (evidence: `README.md`)
- Learning games → Audio helpers: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Audio helpers → Sound effects: unlocks (evidence: `shared/js/audio-unlock.js`)
- Audio helpers → Voice playback: unlocks (evidence: `shared/js/audio-unlock.js`)
- Narration → Voice playback: speaks through (evidence: `shared/js/narrator.js`)
- Child player → Touch controls: touches
- Learning games → Screen flow: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Timers: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Narration: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Celebration: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Image preloading: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Gentle prompts: uses (evidence: `games/sink-or-float/js/main.js`)
- Learning games → Game review hooks: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Learning games → Seeded randomness: uses (evidence: `games/obstacle-course-builder/js/main.js`)
- Child player → QLOBE Studio: authors with (evidence: `README.md`)
