# sirioberati/youtube-ai-motion-graphics architecture

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

- Interactive diagram: https://gitdiagram.com/sirioberati/youtube-ai-motion-graphics
- Repository: https://github.com/sirioberati/youtube-ai-motion-graphics

## Overview

This repository is a toolkit for creating animated explainer boards and syncing them to spoken video, rather than a hosted application. The user workflow runs from creative references and board planning through word-level transcription, board timing, rendering, quality checks, and export or editor-timeline handoff. The graph includes the documented prompt and design-skill capabilities as well as the sampled board-sync runtime. Some stage-to-stage data links are documented in the README; source excerpts do not expose every stage implementation, so those links are cited to the README rather than inferred from filenames.

Main entry points: [`skills/board-sync/board_sync.py`](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/board_sync.py) (Sync orchestrator), [`skills/board-sync/scripts/render.py`](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/render.py) (Frame renderer), [`skills/board-sync/scripts/common.py`](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/common.py) (Shared helpers), [`skills/board-sync/scripts/words.py`](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/words.py) (Word timings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Board authoring"]
  node_prompts["Workflow prompts"]
  node_briefskill["Brief skill"]
  node_designskill["Design system"]
  node_boards["Animated boards"]
  node_checks["QA checks<br/>[checks.md]"]
end

subgraph group_sync["Speech synchronization"]
  node_orchestrator["Sync orchestrator<br/>[board_sync.py]"]
  node_words["Word timings<br/>[words.py]"]
  node_windows["Board windows<br/>[windows.py]"]
  node_briefparse["Brief parser<br/>[brief.py]"]
  node_units["Board units<br/>[units.py]"]
  node_choreo["Cue choreography<br/>[choreo.py]"]
end

subgraph group_output["Render and delivery"]
  node_renderer["Frame renderer<br/>[render.py]"]
  node_qa["Rendered QA<br/>[qa.py]"]
  node_timeline["Editor timelines<br/>[timeline.py]"]
  node_preview["Preview video<br/>[preview.py]"]
  node_export["MP4 export<br/>[export.py]"]
end

subgraph group_shared["Shared runtime"]
  node_common["Shared helpers<br/>[common.py]"]
end

node_creator(("Video creator"))
node_voice(("Voice and script"))
node_editors(("Video editor"))
node_chromeffmpeg["Chrome and FFmpeg"]

node_creator -->|"follows"| node_prompts
node_prompts -->|"plans boards"| node_briefskill
node_prompts -->|"defines style"| node_designskill
node_designskill -->|"guides creation"| node_boards
node_briefskill -->|"specifies content"| node_boards
node_creator -->|"records corrections"| node_checks
node_voice -->|"provides transcript or audio"| node_words
node_orchestrator -->|"dispatches stage"| node_words
node_orchestrator -->|"dispatches stage"| node_windows
node_orchestrator -->|"dispatches stage"| node_briefparse
node_orchestrator -->|"dispatches stage"| node_units
node_orchestrator -->|"dispatches stage"| node_choreo
node_orchestrator -->|"dispatches stage"| node_renderer
node_orchestrator -->|"dispatches stage"| node_qa
node_orchestrator -->|"dispatches stage"| node_timeline
node_orchestrator -->|"dispatches stage"| node_preview
node_words -->|"aligns speech"| node_windows
node_windows -.->|"supplies board windows"| node_briefparse
node_boards -->|"extracts elements"| node_units
node_briefparse -->|"supplies brief"| node_choreo
node_units -->|"supplies elements"| node_choreo
node_words -->|"anchors cues"| node_choreo
node_choreo -->|"supplies scenes"| node_renderer
node_windows -->|"sets render order"| node_renderer
node_renderer -->|"checks rendered clips"| node_qa
node_checks -->|"guides review"| node_qa
node_windows -->|"builds editor sequence"| node_timeline
node_renderer -->|"provides board track"| node_timeline
node_renderer -->|"provides board track"| node_preview
node_voice -->|"provides audio"| node_preview
node_renderer -->|"renders boards to MP4"| node_export
node_chromeffmpeg -->|"renders frames"| node_renderer
node_chromeffmpeg -->|"encodes video"| node_export
node_timeline -->|"hands off timeline"| node_editors
node_preview -->|"enables watch-through"| node_creator
node_export -->|"delivers MP4"| node_creator
node_orchestrator -->|"uses helpers"| node_common
node_words -->|"uses helpers"| node_common
node_briefparse -->|"uses helpers"| node_common
node_units -->|"uses helpers"| node_common
node_renderer -->|"uses helpers"| node_common
node_qa -->|"uses helpers"| node_common
node_timeline -->|"uses helpers"| node_common

click node_prompts "https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/prompts"
click node_briefskill "https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/skills/explainer-board-brief"
click node_designskill "https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/skills/explainer-board-system"
click node_boards "https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/boards"
click node_checks "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/checks.md"
click node_orchestrator "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/board_sync.py"
click node_words "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/words.py"
click node_windows "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/windows.py"
click node_briefparse "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/brief.py"
click node_units "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/units.py"
click node_choreo "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/choreo.py"
click node_renderer "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/render.py"
click node_qa "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/qa.py"
click node_timeline "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/timeline.py"
click node_preview "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/preview.py"
click node_export "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/tools/export.py"
click node_common "https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/common.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_prompts,node_briefskill,node_designskill,node_boards,node_checks toneBlue
class node_orchestrator,node_words,node_windows,node_briefparse,node_units,node_choreo toneAmber
class node_renderer,node_qa,node_timeline,node_preview,node_export toneMint
class node_common toneRose
class node_creator,node_voice,node_editors,node_chromeffmpeg toneIndigo
```

## Components

### Board authoring

- [Workflow prompts](https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/prompts): `prompts`
- [Brief skill](https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/skills/explainer-board-brief): `skills/explainer-board-brief`
- [Design system](https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/skills/explainer-board-system): `skills/explainer-board-system`
- [Animated boards](https://github.com/sirioberati/youtube-ai-motion-graphics/tree/main/boards): `boards`
- [QA checks](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/checks.md): `checks.md`

### Speech synchronization

- [Sync orchestrator](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/board_sync.py): `skills/board-sync/board_sync.py`
- [Word timings](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/words.py): `skills/board-sync/scripts/words.py`
- [Board windows](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/windows.py): `skills/board-sync/scripts/windows.py`
- [Brief parser](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/brief.py): `skills/board-sync/scripts/brief.py`
- [Board units](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/units.py): `skills/board-sync/scripts/units.py`
- [Cue choreography](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/choreo.py): `skills/board-sync/scripts/choreo.py`

### Render and delivery

- [Frame renderer](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/render.py): `skills/board-sync/scripts/render.py`
- [Rendered QA](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/qa.py): `skills/board-sync/scripts/qa.py`
- [Editor timelines](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/timeline.py): `skills/board-sync/scripts/timeline.py`
- [Preview video](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/preview.py): `skills/board-sync/scripts/preview.py`
- [MP4 export](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/tools/export.py): `tools/export.py`

### Shared runtime

- [Shared helpers](https://github.com/sirioberati/youtube-ai-motion-graphics/blob/main/skills/board-sync/scripts/common.py): `skills/board-sync/scripts/common.py`

### Other components

- **Video creator**
- **Voice and script**
- **Video editor**
- **Chrome and FFmpeg**

## Connections

- Video creator → Workflow prompts: follows (evidence: `README.md`)
- Workflow prompts → Brief skill: plans boards (evidence: `README.md`)
- Workflow prompts → Design system: defines style (evidence: `README.md`)
- Design system → Animated boards: guides creation (evidence: `README.md`)
- Brief skill → Animated boards: specifies content (evidence: `README.md`)
- Video creator → QA checks: records corrections (evidence: `README.md`)
- Voice and script → Word timings: provides transcript or audio (evidence: `README.md`)
- Sync orchestrator → Word timings: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Board windows: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Brief parser: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Board units: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Cue choreography: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Frame renderer: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Rendered QA: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Editor timelines: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Sync orchestrator → Preview video: dispatches stage (evidence: `skills/board-sync/board_sync.py`)
- Word timings → Board windows: aligns speech (evidence: `README.md`)
- Board windows → Brief parser: supplies board windows
- Animated boards → Board units: extracts elements (evidence: `README.md`)
- Brief parser → Cue choreography: supplies brief (evidence: `skills/board-sync/scripts/choreo.py`)
- Board units → Cue choreography: supplies elements (evidence: `skills/board-sync/scripts/choreo.py`)
- Word timings → Cue choreography: anchors cues (evidence: `skills/board-sync/scripts/choreo.py`)
- Cue choreography → Frame renderer: supplies scenes (evidence: `README.md`)
- Board windows → Frame renderer: sets render order (evidence: `skills/board-sync/scripts/render.py`)
- Frame renderer → Rendered QA: checks rendered clips (evidence: `skills/board-sync/scripts/qa.py`)
- QA checks → Rendered QA: guides review (evidence: `README.md`)
- Board windows → Editor timelines: builds editor sequence (evidence: `skills/board-sync/scripts/timeline.py`)
- Frame renderer → Editor timelines: provides board track (evidence: `skills/board-sync/scripts/timeline.py`)
- Frame renderer → Preview video: provides board track (evidence: `skills/board-sync/scripts/preview.py`)
- Voice and script → Preview video: provides audio (evidence: `skills/board-sync/scripts/preview.py`)
- Frame renderer → MP4 export: renders boards to MP4 (evidence: `README.md`)
- Chrome and FFmpeg → Frame renderer: renders frames (evidence: `README.md`)
- Chrome and FFmpeg → MP4 export: encodes video (evidence: `README.md`)
- Editor timelines → Video editor: hands off timeline (evidence: `README.md`)
- Preview video → Video creator: enables watch-through (evidence: `skills/board-sync/scripts/preview.py`)
- MP4 export → Video creator: delivers MP4 (evidence: `README.md`)
- Sync orchestrator → Shared helpers: uses helpers (evidence: `skills/board-sync/board_sync.py`)
- Word timings → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/words.py`)
- Brief parser → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/brief.py`)
- Board units → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/units.py`)
- Frame renderer → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/render.py`)
- Rendered QA → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/qa.py`)
- Editor timelines → Shared helpers: uses helpers (evidence: `skills/board-sync/scripts/timeline.py`)
