# yasirabedrabbu/unsealed-archive-harold-holt architecture

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

- Interactive diagram: https://gitdiagram.com/yasirabedrabbu/unsealed-archive-harold-holt
- Repository: https://github.com/yasirabedrabbu/unsealed-archive-harold-holt

## Overview

This repository turns source photos and voice assets into a timed documentary episode, then renders the Remotion composition to video. A second workflow lets users upload a bundle to the render tool, validate it, queue a render, and download the result. The README documents episode, demo, and asset-generation stages; render-tool internals are shown only where the server excerpt supports them, so other render-tool details are omitted.

Main entry points: [`src/Main.tsx`](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/Main.tsx) (Episode composition), [`render-tool/server.mjs`](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/render-tool/server.mjs) (Upload and render API), [`scripts/build.py`](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/build.py) (Episode builder), [`public/timeline.json`](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/public/timeline.json) (Episode timeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Episode preparation"]
  node_source_media["Photos and voice"]
  node_episode_builder["Episode builder<br/>[build.py]"]
  node_demo_timeline["Demo timeline"]
  node_asset_prep["Asset preparation<br/>[make-assets.mjs]"]
  node_timeline["Episode timeline<br/>[timeline.json]"]
  node_render_assets["Rendered assets"]
end

subgraph group_composition["Video composition"]
  node_composition_entry["Composition entry<br/>[index.ts]"]
  node_composition_root["Composition setup<br/>[Root.tsx]"]
  node_main_composition["Episode composition<br/>[Main.tsx]"]
  node_shot_renderer["Ken Burns shots<br/>[shots.tsx]"]
  node_captions["Word captions<br/>[captions.tsx]"]
  node_overlays["Chapter overlays<br/>[overlays.tsx]"]
  node_layers["Visual treatment<br/>[layers.tsx]"]
  node_logo["Archive logo<br/>[logo.tsx]"]
  node_fonts["Font loading<br/>[fonts.tsx]"]
  node_theme["Visual theme<br/>[theme.ts]"]
end

subgraph group_rendering["Rendering"]
  node_remotion["Remotion renderer"]
  node_video["Rendered video"]
end

subgraph group_tool["Render tool"]
  node_render_tool["Upload and render API<br/>[server.mjs]"]
  node_bundle["Project bundle"]
  node_job_queue["Render job queue<br/>[server.mjs]"]
end

node_creator(("Episode creator"))
node_tool_user(("Render-tool user"))

node_creator -->|"provides media"| node_source_media
node_source_media -->|"supplies inputs"| node_episode_builder
node_episode_builder -->|"writes timeline"| node_timeline
node_episode_builder -->|"writes audio"| node_render_assets
node_creator -->|"requests preview"| node_demo_timeline
node_demo_timeline -->|"generates demo"| node_timeline
node_creator -->|"refreshes assets"| node_asset_prep
node_asset_prep -->|"generates assets"| node_render_assets
node_composition_entry -->|"registers root"| node_composition_root
node_composition_root -->|"configures composition"| node_main_composition
node_main_composition -->|"renders shots"| node_shot_renderer
node_main_composition -->|"renders captions"| node_captions
node_main_composition -->|"renders overlays"| node_overlays
node_main_composition -->|"renders layers"| node_layers
node_main_composition -->|"loads fonts"| node_fonts
node_overlays -->|"renders logo"| node_logo
node_shot_renderer -->|"uses styling"| node_theme
node_captions -->|"uses styling"| node_theme
node_layers -->|"uses styling"| node_theme
node_main_composition -->|"reads timing"| node_timeline
node_main_composition -->|"loads audio"| node_render_assets
node_creator -->|"requests render"| node_remotion
node_remotion -->|"loads composition"| node_composition_entry
node_remotion -->|"writes video"| node_video
node_tool_user -->|"uploads bundle"| node_render_tool
node_render_tool -->|"extracts and validates"| node_bundle
node_render_tool -->|"queues render"| node_job_queue
node_job_queue -->|"spawns renderer"| node_remotion
node_tool_user -->|"downloads result"| node_render_tool

click node_source_media "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/tree/main/assets"
click node_episode_builder "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/build.py"
click node_demo_timeline "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/make-demo-timeline.mjs"
click node_asset_prep "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/make-assets.mjs"
click node_timeline "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/public/timeline.json"
click node_render_assets "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/tree/main/public"
click node_composition_entry "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/index.ts"
click node_composition_root "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/Root.tsx"
click node_main_composition "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/Main.tsx"
click node_shot_renderer "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/shots.tsx"
click node_captions "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/captions.tsx"
click node_overlays "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/overlays.tsx"
click node_layers "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/layers.tsx"
click node_logo "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/logo.tsx"
click node_fonts "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/fonts.tsx"
click node_theme "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/theme.ts"
click node_render_tool "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/render-tool/server.mjs"
click node_job_queue "https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/render-tool/server.mjs"

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_source_media,node_episode_builder,node_demo_timeline,node_asset_prep,node_timeline,node_render_assets,node_tool_user toneBlue
class node_composition_entry,node_composition_root,node_main_composition,node_shot_renderer,node_captions,node_overlays,node_layers,node_logo,node_fonts,node_theme toneAmber
class node_remotion,node_video toneMint
class node_render_tool,node_bundle,node_job_queue toneRose
class node_creator toneIndigo
```

## Components

### Episode preparation

- [Photos and voice](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/tree/main/assets): `assets`
- [Episode builder](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/build.py): `scripts/build.py`
- [Demo timeline](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/make-demo-timeline.mjs): `scripts/make-demo-timeline.mjs`
- [Asset preparation](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/scripts/make-assets.mjs): `scripts/make-assets.mjs`
- [Episode timeline](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/public/timeline.json): `public/timeline.json`
- [Rendered assets](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/tree/main/public): `public`

### Video composition

- [Composition entry](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/index.ts): `src/index.ts`
- [Composition setup](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/Root.tsx): `src/Root.tsx`
- [Episode composition](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/Main.tsx): `src/Main.tsx`
- [Ken Burns shots](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/shots.tsx): `src/shots.tsx`
- [Word captions](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/captions.tsx): `src/captions.tsx`
- [Chapter overlays](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/overlays.tsx): `src/overlays.tsx`
- [Visual treatment](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/layers.tsx): `src/layers.tsx`
- [Archive logo](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/logo.tsx): `src/logo.tsx`
- [Font loading](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/fonts.tsx): `src/fonts.tsx`
- [Visual theme](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/src/theme.ts): `src/theme.ts`

### Rendering

- **Remotion renderer**
- **Rendered video**

### Render tool

- [Upload and render API](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/render-tool/server.mjs): `render-tool/server.mjs`
- **Project bundle**
- [Render job queue](https://github.com/yasirabedrabbu/unsealed-archive-harold-holt/blob/main/render-tool/server.mjs): `render-tool/server.mjs`

### Other components

- **Episode creator**
- **Render-tool user**

## Connections

- Episode creator → Photos and voice: provides media (evidence: `README.md`)
- Photos and voice → Episode builder: supplies inputs (evidence: `README.md`)
- Episode builder → Episode timeline: writes timeline (evidence: `README.md`)
- Episode builder → Rendered assets: writes audio (evidence: `README.md`)
- Episode creator → Demo timeline: requests preview (evidence: `README.md`)
- Demo timeline → Episode timeline: generates demo (evidence: `README.md`)
- Episode creator → Asset preparation: refreshes assets (evidence: `README.md`)
- Asset preparation → Rendered assets: generates assets (evidence: `README.md`)
- Composition entry → Composition setup: registers root (evidence: `src/index.ts`)
- Composition setup → Episode composition: configures composition (evidence: `src/Root.tsx`)
- Episode composition → Ken Burns shots: renders shots (evidence: `src/Main.tsx`)
- Episode composition → Word captions: renders captions (evidence: `src/Main.tsx`)
- Episode composition → Chapter overlays: renders overlays (evidence: `src/Main.tsx`)
- Episode composition → Visual treatment: renders layers (evidence: `src/Main.tsx`)
- Episode composition → Font loading: loads fonts (evidence: `src/Main.tsx`)
- Chapter overlays → Archive logo: renders logo (evidence: `src/overlays.tsx`)
- Ken Burns shots → Visual theme: uses styling (evidence: `src/shots.tsx`)
- Word captions → Visual theme: uses styling (evidence: `src/captions.tsx`)
- Visual treatment → Visual theme: uses styling (evidence: `src/layers.tsx`)
- Episode composition → Episode timeline: reads timing (evidence: `src/Main.tsx`)
- Episode composition → Rendered assets: loads audio (evidence: `src/Main.tsx`)
- Episode creator → Remotion renderer: requests render (evidence: `README.md`)
- Remotion renderer → Composition entry: loads composition (evidence: `README.md`)
- Remotion renderer → Rendered video: writes video (evidence: `README.md`)
- Render-tool user → Upload and render API: uploads bundle (evidence: `render-tool/server.mjs`)
- Upload and render API → Project bundle: extracts and validates (evidence: `render-tool/server.mjs`)
- Upload and render API → Render job queue: queues render (evidence: `render-tool/server.mjs`)
- Render job queue → Remotion renderer: spawns renderer (evidence: `render-tool/server.mjs`)
- Render-tool user → Upload and render API: downloads result (evidence: `render-tool/server.mjs`)
