# jyothi0612/under-the-shell architecture

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

- Interactive diagram: https://gitdiagram.com/jyothi0612/under-the-shell
- Repository: https://github.com/jyothi0612/under-the-shell

## Overview

Under the Shell is a browser-based educational player presenting 13 step-by-step DevOps animations with synchronized narration in English and Telugu. Users choose a session from the page or open one by its URL hash, then step through or play its animated explanation with language and speed controls. The core runtime mounts scene data and applies timed cues while playing audio. The repository also includes narration generation and optional video recording workflows; those are supporting content-production capabilities, not required for using the site. Source excerpts are partial, so edges are limited to relationships they or the README establish.

Main entry points: [`tools/tts.py`](https://github.com/jyothi0612/under-the-shell/blob/main/tools/tts.py) (Voice generator), [`player.js`](https://github.com/jyothi0612/under-the-shell/blob/main/player.js) (Animation player), [`tools/record.py`](https://github.com/jyothi0612/under-the-shell/blob/main/tools/record.py) (Video recorder), [`index.html`](https://github.com/jyothi0612/under-the-shell/blob/main/index.html) (Player page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Learning experience"]
  node_page["Player page<br/>[index.html]"]
  node_runtime["Animation player<br/>[player.js]"]
end

subgraph group_content["Animation content"]
  node_scenes["Scene library<br/>[scenes.js]"]
end

subgraph group_voice["Narration assets"]
  node_narration["English narration<br/>[manifest.js]"]
  node_telugu["Telugu narration<br/>[manifest-te.js]"]
  node_audiofiles["Narration clips"]
end

subgraph group_production["Content production"]
  node_tts["Voice generator<br/>[tts.py]"]
  node_recorder["Video recorder<br/>[record.py]"]
  node_videos["MP4 videos"]
end

node_learner(("Learner"))
node_kokoro["Kokoro TTS"]
node_sarvam["Sarvam TTS"]

node_learner -->|"opens"| node_page
node_page -->|"loads"| node_runtime
node_runtime -->|"mounts scenes"| node_scenes
node_runtime -->|"reads timings"| node_narration
node_runtime -->|"reads timings"| node_telugu
node_runtime -->|"plays clips"| node_audiofiles
node_tts -->|"reads steps"| node_scenes
node_tts -->|"synthesizes English"| node_kokoro
node_tts -->|"requests Telugu"| node_sarvam
node_tts -->|"writes timings"| node_narration
node_tts -->|"writes timings"| node_telugu
node_tts -->|"writes clips"| node_audiofiles
node_recorder -->|"lists scenes"| node_scenes
node_recorder -->|"captures page"| node_page
node_recorder -->|"uses WAV audio"| node_audiofiles
node_recorder -->|"writes MP4"| node_videos

click node_page "https://github.com/jyothi0612/under-the-shell/blob/main/index.html"
click node_runtime "https://github.com/jyothi0612/under-the-shell/blob/main/player.js"
click node_scenes "https://github.com/jyothi0612/under-the-shell/blob/main/scenes.js"
click node_narration "https://github.com/jyothi0612/under-the-shell/blob/main/audio/manifest.js"
click node_telugu "https://github.com/jyothi0612/under-the-shell/blob/main/audio/manifest-te.js"
click node_audiofiles "https://github.com/jyothi0612/under-the-shell/tree/main/audio"
click node_tts "https://github.com/jyothi0612/under-the-shell/blob/main/tools/tts.py"
click node_recorder "https://github.com/jyothi0612/under-the-shell/blob/main/tools/record.py"

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_page,node_runtime toneBlue
class node_scenes toneAmber
class node_narration,node_telugu,node_audiofiles toneMint
class node_tts,node_recorder,node_videos toneRose
class node_learner,node_kokoro,node_sarvam toneIndigo
```

## Components

### Learning experience

- [Player page](https://github.com/jyothi0612/under-the-shell/blob/main/index.html): `index.html`
- [Animation player](https://github.com/jyothi0612/under-the-shell/blob/main/player.js): `player.js`

### Animation content

- [Scene library](https://github.com/jyothi0612/under-the-shell/blob/main/scenes.js): `scenes.js`

### Narration assets

- [English narration](https://github.com/jyothi0612/under-the-shell/blob/main/audio/manifest.js): `audio/manifest.js`
- [Telugu narration](https://github.com/jyothi0612/under-the-shell/blob/main/audio/manifest-te.js): `audio/manifest-te.js`
- [Narration clips](https://github.com/jyothi0612/under-the-shell/tree/main/audio): `audio`

### Content production

- [Voice generator](https://github.com/jyothi0612/under-the-shell/blob/main/tools/tts.py): `tools/tts.py`
- [Video recorder](https://github.com/jyothi0612/under-the-shell/blob/main/tools/record.py): `tools/record.py`
- **MP4 videos**

### Other components

- **Learner**
- **Kokoro TTS**
- **Sarvam TTS**

## Connections

- Learner → Player page: opens (evidence: `README.md`)
- Player page → Animation player: loads (evidence: `README.md`)
- Animation player → Scene library: mounts scenes (evidence: `player.js`)
- Animation player → English narration: reads timings (evidence: `player.js`)
- Animation player → Telugu narration: reads timings (evidence: `player.js`)
- Animation player → Narration clips: plays clips (evidence: `player.js`)
- Voice generator → Scene library: reads steps (evidence: `tools/tts.py`)
- Voice generator → Kokoro TTS: synthesizes English (evidence: `tools/tts.py`)
- Voice generator → Sarvam TTS: requests Telugu (evidence: `tools/tts.py`)
- Voice generator → English narration: writes timings (evidence: `tools/tts.py`)
- Voice generator → Telugu narration: writes timings (evidence: `tools/tts.py`)
- Voice generator → Narration clips: writes clips (evidence: `tools/tts.py`)
- Video recorder → Scene library: lists scenes (evidence: `tools/record.py`)
- Video recorder → Player page: captures page (evidence: `tools/record.py`)
- Video recorder → Narration clips: uses WAV audio (evidence: `tools/record.py`)
- Video recorder → MP4 videos: writes MP4 (evidence: `tools/record.py`)
