# vincentwei1021/video-talkcraft architecture

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

- Interactive diagram: https://gitdiagram.com/vincentwei1021/video-talkcraft
- Repository: https://github.com/vincentwei1021/video-talkcraft

## Overview

video-talkcraft is an agent-assisted workflow for producing voiceover-led videos, plus a Remotion motion library and an editing workbench. Its documented path runs from script and voiceover through word-level timing, SHOTBOOK storyboarding, scene implementation, rendering, and three-part quality review. The workbench can also import a finished talk video into editable tracks for preview and export. The workflow edges below rely on README statements; sampled source confirms selected workbench wiring, but many production scripts and UI modules were not inspected.

Main entry points: [`workbench/src/App.tsx`](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/App.tsx) (Workbench app), [`template/motion-systems/scenes`](https://github.com/vincentwei1021/video-talkcraft/tree/main/template/motion-systems/scenes) (Scene implementation), [`workbench/src/cards/templateCards.ts`](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/templateCards.ts) (Template cards), [`scripts/timestamps_cpu.py`](https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/timestamps_cpu.py) (Word timing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_production["Video production"]
  node_scriptvoice["Script + voiceover"]
  node_timing["Word timing<br/>[timestamps_cpu.py]"]
  node_shotbook["SHOTBOOK design"]
  node_scenes["Scene implementation"]
  node_render["Segment rendering<br/>[render_shots.mjs]"]
  node_quality["Three-part QA"]
  node_deliverable["Rendered video"]
  node_tts["Fish Audio TTS<br/>[tts_fishaudio.py]"]
end

subgraph group_motion["Motion system"]
  node_motioncards["108 motion cards"]
  node_cameras["Camera system<br/>[camera.tsx]"]
  node_transitions["Transitions<br/>[transitions.tsx]"]
  node_components["Visual components"]
end

subgraph group_bench["Editing workbench"]
  node_app["Workbench app<br/>[App.tsx]"]
  node_library["Asset library<br/>[LibraryPanel.tsx]"]
  node_registry["Card registry<br/>[registry.ts]"]
  node_templatecards["Template cards<br/>[templateCards.ts]"]
  node_tplindex["Template index<br/>[tpl-index.ts]"]
  node_tplmeta["Template metadata<br/>[tplMeta.ts]"]
  node_store["Project state<br/>[store.ts]"]
  node_timeline["Multitrack timeline<br/>[Timeline.tsx]"]
  node_inspector["Property inspector<br/>[Inspector.tsx]"]
  node_preview["Live preview<br/>[PreviewPanel.tsx]"]
  node_player["Player controls<br/>[playerRef.ts]"]
  node_importer["Talk-video import<br/>[kouboImport.ts]"]
  node_pipeline["Live pipeline sync<br/>[store.ts]"]
  node_hmr["Hot reload bridge<br/>[hmr.ts]"]
  node_export["Video export<br/>[exportJob.ts]"]
end

subgraph group_gallery["Card gallery"]
  node_gallerysite["Preview gallery<br/>[build.mjs]"]
end

node_creator(("Creator / agent"))

node_creator -->|"provides"| node_scriptvoice
node_scriptvoice -->|"aligns audio"| node_timing
node_timing -->|"anchors shots"| node_shotbook
node_shotbook -->|"guides implementation"| node_scenes
node_scenes -->|"renders scenes"| node_render
node_render -->|"submits for review"| node_quality
node_quality -->|"approves"| node_deliverable
node_creator -.->|"optionally generates"| node_tts
node_motioncards -->|"supplies recipes"| node_scenes
node_cameras -->|"provides camera motion"| node_scenes
node_transitions -->|"provides transitions"| node_scenes
node_components -->|"supplies visuals"| node_scenes
node_creator -->|"opens workbench"| node_app
node_app -->|"renders panel"| node_library
node_app -->|"renders panel"| node_inspector
node_app -->|"renders panel"| node_preview
node_app -->|"renders timeline"| node_timeline
node_library -->|"loads cards"| node_registry
node_registry -->|"includes templates"| node_templatecards
node_templatecards -->|"reads index"| node_tplindex
node_templatecards -->|"reads metadata"| node_tplmeta
node_app -->|"reads project state"| node_store
node_preview -->|"controls playback"| node_player
node_app -->|"connects pipeline"| node_pipeline
node_app -->|"syncs imported project"| node_importer
node_app -->|"starts export"| node_export
node_creator -->|"browses previews"| node_gallerysite
node_deliverable -->|"decomposes project"| node_importer

click node_timing "https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/timestamps_cpu.py"
click node_scenes "https://github.com/vincentwei1021/video-talkcraft/tree/main/template/motion-systems/scenes"
click node_render "https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/render_shots.mjs"
click node_quality "https://github.com/vincentwei1021/video-talkcraft/tree/main/scripts"
click node_tts "https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/tts_fishaudio.py"
click node_motioncards "https://github.com/vincentwei1021/video-talkcraft/tree/main/template/cards"
click node_cameras "https://github.com/vincentwei1021/video-talkcraft/blob/main/template/motion-systems/camera.tsx"
click node_transitions "https://github.com/vincentwei1021/video-talkcraft/blob/main/template/motion-systems/transitions.tsx"
click node_components "https://github.com/vincentwei1021/video-talkcraft/tree/main/template/components"
click node_app "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/App.tsx"
click node_library "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/panels/LibraryPanel.tsx"
click node_registry "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/registry.ts"
click node_templatecards "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/templateCards.ts"
click node_tplindex "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/tpl-index.ts"
click node_tplmeta "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/tplMeta.ts"
click node_store "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/store.ts"
click node_timeline "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/timeline/Timeline.tsx"
click node_inspector "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/panels/Inspector.tsx"
click node_preview "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/preview/PreviewPanel.tsx"
click node_player "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/playerRef.ts"
click node_importer "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/kouboImport.ts"
click node_pipeline "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/pipeline/store.ts"
click node_hmr "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/hmr.ts"
click node_export "https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/exportJob.ts"
click node_gallerysite "https://github.com/vincentwei1021/video-talkcraft/blob/main/gallery/build.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_scriptvoice,node_timing,node_shotbook,node_scenes,node_render,node_quality,node_deliverable,node_tts toneBlue
class node_motioncards,node_cameras,node_transitions,node_components toneAmber
class node_app,node_library,node_registry,node_templatecards,node_tplindex,node_tplmeta,node_store,node_timeline,node_inspector,node_preview,node_player,node_importer,node_pipeline,node_hmr,node_export toneMint
class node_gallerysite toneRose
class node_creator toneIndigo
```

## Components

### Video production

- **Script + voiceover**
- [Word timing](https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/timestamps_cpu.py): `scripts/timestamps_cpu.py`
- **SHOTBOOK design**
- [Scene implementation](https://github.com/vincentwei1021/video-talkcraft/tree/main/template/motion-systems/scenes): `template/motion-systems/scenes`
- [Segment rendering](https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/render_shots.mjs): `scripts/render_shots.mjs`
- [Three-part QA](https://github.com/vincentwei1021/video-talkcraft/tree/main/scripts): `scripts`
- **Rendered video**
- [Fish Audio TTS](https://github.com/vincentwei1021/video-talkcraft/blob/main/scripts/tts_fishaudio.py): `scripts/tts_fishaudio.py`

### Motion system

- [108 motion cards](https://github.com/vincentwei1021/video-talkcraft/tree/main/template/cards): `template/cards`
- [Camera system](https://github.com/vincentwei1021/video-talkcraft/blob/main/template/motion-systems/camera.tsx): `template/motion-systems/camera.tsx`
- [Transitions](https://github.com/vincentwei1021/video-talkcraft/blob/main/template/motion-systems/transitions.tsx): `template/motion-systems/transitions.tsx`
- [Visual components](https://github.com/vincentwei1021/video-talkcraft/tree/main/template/components): `template/components`

### Editing workbench

- [Workbench app](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/App.tsx): `workbench/src/App.tsx`
- [Asset library](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/panels/LibraryPanel.tsx): `workbench/src/panels/LibraryPanel.tsx`
- [Card registry](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/registry.ts): `workbench/src/cards/registry.ts`
- [Template cards](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/templateCards.ts): `workbench/src/cards/templateCards.ts`
- [Template index](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/tpl-index.ts): `workbench/src/cards/tpl-index.ts`
- [Template metadata](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/cards/tplMeta.ts): `workbench/src/cards/tplMeta.ts`
- [Project state](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/store.ts): `workbench/src/store.ts`
- [Multitrack timeline](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/timeline/Timeline.tsx): `workbench/src/timeline/Timeline.tsx`
- [Property inspector](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/panels/Inspector.tsx): `workbench/src/panels/Inspector.tsx`
- [Live preview](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/preview/PreviewPanel.tsx): `workbench/src/preview/PreviewPanel.tsx`
- [Player controls](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/playerRef.ts): `workbench/src/playerRef.ts`
- [Talk-video import](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/kouboImport.ts): `workbench/src/kouboImport.ts`
- [Live pipeline sync](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/pipeline/store.ts): `workbench/src/pipeline/store.ts`
- [Hot reload bridge](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/hmr.ts): `workbench/src/hmr.ts`
- [Video export](https://github.com/vincentwei1021/video-talkcraft/blob/main/workbench/src/exportJob.ts): `workbench/src/exportJob.ts`

### Card gallery

- [Preview gallery](https://github.com/vincentwei1021/video-talkcraft/blob/main/gallery/build.mjs): `gallery/build.mjs`

### Other components

- **Creator / agent**

## Connections

- Creator / agent → Script + voiceover: provides (evidence: `README.md`)
- Script + voiceover → Word timing: aligns audio (evidence: `README.md`)
- Word timing → SHOTBOOK design: anchors shots (evidence: `README.md`)
- SHOTBOOK design → Scene implementation: guides implementation (evidence: `README.md`)
- Scene implementation → Segment rendering: renders scenes (evidence: `README.md`)
- Segment rendering → Three-part QA: submits for review (evidence: `README.md`)
- Three-part QA → Rendered video: approves (evidence: `README.md`)
- Creator / agent → Fish Audio TTS: optionally generates (evidence: `README.md`)
- 108 motion cards → Scene implementation: supplies recipes (evidence: `README.md`)
- Camera system → Scene implementation: provides camera motion (evidence: `template/motion-systems/scenes/S1Hook-example.tsx`)
- Transitions → Scene implementation: provides transitions (evidence: `README.md`)
- Visual components → Scene implementation: supplies visuals (evidence: `README.md`)
- Creator / agent → Workbench app: opens workbench (evidence: `README.md`)
- Workbench app → Asset library: renders panel (evidence: `workbench/src/App.tsx`)
- Workbench app → Property inspector: renders panel (evidence: `workbench/src/App.tsx`)
- Workbench app → Live preview: renders panel (evidence: `workbench/src/App.tsx`)
- Workbench app → Multitrack timeline: renders timeline (evidence: `workbench/src/App.tsx`)
- Asset library → Card registry: loads cards (evidence: `workbench/src/panels/LibraryPanel.tsx`)
- Card registry → Template cards: includes templates (evidence: `workbench/src/cards/registry.ts`)
- Template cards → Template index: reads index (evidence: `workbench/src/cards/templateCards.ts`)
- Template cards → Template metadata: reads metadata (evidence: `workbench/src/cards/templateCards.ts`)
- Workbench app → Project state: reads project state (evidence: `workbench/src/App.tsx`)
- Live preview → Player controls: controls playback (evidence: `workbench/src/preview/PreviewPanel.tsx`)
- Workbench app → Live pipeline sync: connects pipeline (evidence: `workbench/src/App.tsx`)
- Workbench app → Talk-video import: syncs imported project (evidence: `workbench/src/App.tsx`)
- Workbench app → Video export: starts export (evidence: `workbench/src/App.tsx`)
- Creator / agent → Preview gallery: browses previews (evidence: `README.md`)
- Rendered video → Talk-video import: decomposes project (evidence: `README.md`)
