# baltasheff-mad/motion-reels architecture

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

- Interactive diagram: https://gitdiagram.com/baltasheff-mad/motion-reels
- Repository: https://github.com/baltasheff-mad/motion-reels

## Overview

Motion Reels is an AI-assisted video-editing system for Reels, Shorts, TikTok, YouTube, and tutorial screen recordings. The documented workflow starts with a project ID, source video, format, and visual style; proceeds through an edit map and Remotion scene assembly; then checks text/layout, reviews frame sheets, renders an MP4, and inspects the result. The studio supplies format-specific templates, style-driven scenes, captions, speaker layers, and reusable visual components. README statements establish the editorial stages; source excerpts show the Remotion composition and rendering layers. Podcast utilities and research workflows are present, but their role in the main editing flow is not established by the provided evidence.

Main entry points: [`studio/src/Root.tsx`](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/Root.tsx) (Composition registry), [`studio/src/styles/engine.tsx`](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/styles/engine.tsx) (Style scene engine), [`studio/src/template/Template.tsx`](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/Template.tsx) (Canvas template), [`studio/src/template/blocks.tsx`](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/blocks.tsx) (Meaningful blocks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Editorial workflow"]
  node_project["Project brief"]
  node_editmap["Edit map"]
  node_review["Frame review<br/>[review.mjs]"]
  node_rendered["Rendered MP4"]
end

subgraph group_studio["Remotion studio"]
  node_root["Composition registry<br/>[Root.tsx]"]
  node_template["Canvas template<br/>[Template.tsx]"]
  node_engine["Style scene engine<br/>[engine.tsx]"]
  node_formats["Output formats<br/>[formats.ts]"]
  node_captions["Caption rendering<br/>[Captions.tsx]"]
  node_blocks["Meaningful blocks<br/>[blocks.tsx]"]
  node_canvas["Canvas layout<br/>[canvas.tsx]"]
end

subgraph group_visuals["Visual system"]
  node_styles["Style library"]
  node_scenes["Scene library<br/>[Scenes.tsx]"]
  node_visualkit["Visual components"]
  node_liquid["Liquid surfaces<br/>[LiquidPanel.tsx]"]
  node_design["Design tokens<br/>[tokens.ts]"]
end

subgraph group_utilities["Media utilities"]
  node_podcast["Podcast utilities"]
  node_workflows["Research workflows"]
end

node_editor(("Editor"))
node_source["Source video"]

node_editor -->|"specifies project"| node_project
node_editor -->|"provides source"| node_source
node_editor -->|"chooses format"| node_project
node_project -->|"guides editing"| node_editmap
node_editmap -->|"drives scene assembly"| node_root
node_root -->|"registers composition"| node_template
node_root -->|"registers styles"| node_engine
node_template -->|"uses format data"| node_formats
node_engine -->|"uses format data"| node_formats
node_engine -->|"renders captions"| node_captions
node_engine -->|"uses block data"| node_blocks
node_template -->|"renders blocks"| node_blocks
node_template -->|"uses canvas layout"| node_canvas
node_engine -->|"selects style"| node_styles
node_root -->|"registers demo"| node_scenes
node_scenes -->|"uses components"| node_visualkit
node_blocks -->|"renders panels"| node_liquid
node_liquid -->|"uses tokens"| node_design
node_root -.->|"supports review"| node_review
node_review -->|"presents frames"| node_editor
node_editor -->|"confirms render"| node_rendered
node_source -->|"is edited into"| node_rendered

click node_review "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/scripts/review.mjs"
click node_root "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/Root.tsx"
click node_template "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/Template.tsx"
click node_engine "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/styles/engine.tsx"
click node_formats "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/formats.ts"
click node_captions "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/montage/Captions.tsx"
click node_blocks "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/blocks.tsx"
click node_canvas "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/canvas.tsx"
click node_styles "https://github.com/baltasheff-mad/motion-reels/tree/main/studio/src/styles"
click node_scenes "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/scenes/kit/Scenes.tsx"
click node_visualkit "https://github.com/baltasheff-mad/motion-reels/tree/main/studio/src/kit"
click node_liquid "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/kit/liquid/LiquidPanel.tsx"
click node_design "https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/ds/tokens.ts"
click node_podcast "https://github.com/baltasheff-mad/motion-reels/tree/main/scripts"
click node_workflows "https://github.com/baltasheff-mad/motion-reels/tree/main/workflows"

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_project,node_editmap,node_review,node_rendered toneBlue
class node_root,node_template,node_engine,node_formats,node_captions,node_blocks,node_canvas toneAmber
class node_styles,node_scenes,node_visualkit,node_liquid,node_design toneMint
class node_podcast,node_workflows toneRose
class node_editor,node_source toneIndigo
```

## Components

### Editorial workflow

- **Project brief**
- **Edit map**
- [Frame review](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/scripts/review.mjs): `studio/scripts/review.mjs`
- **Rendered MP4**

### Remotion studio

- [Composition registry](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/Root.tsx): `studio/src/Root.tsx`
- [Canvas template](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/Template.tsx): `studio/src/template/Template.tsx`
- [Style scene engine](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/styles/engine.tsx): `studio/src/styles/engine.tsx`
- [Output formats](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/formats.ts): `studio/src/formats.ts`
- [Caption rendering](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/montage/Captions.tsx): `studio/src/montage/Captions.tsx`
- [Meaningful blocks](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/blocks.tsx): `studio/src/template/blocks.tsx`
- [Canvas layout](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/template/canvas.tsx): `studio/src/template/canvas.tsx`

### Visual system

- [Style library](https://github.com/baltasheff-mad/motion-reels/tree/main/studio/src/styles): `studio/src/styles`
- [Scene library](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/scenes/kit/Scenes.tsx): `studio/src/scenes/kit/Scenes.tsx`
- [Visual components](https://github.com/baltasheff-mad/motion-reels/tree/main/studio/src/kit): `studio/src/kit`
- [Liquid surfaces](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/kit/liquid/LiquidPanel.tsx): `studio/src/kit/liquid/LiquidPanel.tsx`
- [Design tokens](https://github.com/baltasheff-mad/motion-reels/blob/main/studio/src/ds/tokens.ts): `studio/src/ds/tokens.ts`

### Media utilities

- [Podcast utilities](https://github.com/baltasheff-mad/motion-reels/tree/main/scripts): `scripts`
- [Research workflows](https://github.com/baltasheff-mad/motion-reels/tree/main/workflows): `workflows`

### Other components

- **Editor**
- **Source video**

## Connections

- Editor → Project brief: specifies project (evidence: `README.md`)
- Editor → Source video: provides source (evidence: `README.md`)
- Editor → Project brief: chooses format (evidence: `README.md`)
- Project brief → Edit map: guides editing (evidence: `README.md`)
- Edit map → Composition registry: drives scene assembly (evidence: `README.md`)
- Composition registry → Canvas template: registers composition (evidence: `studio/src/Root.tsx`)
- Composition registry → Style scene engine: registers styles (evidence: `studio/src/Root.tsx`)
- Canvas template → Output formats: uses format data
- Style scene engine → Output formats: uses format data (evidence: `studio/src/styles/engine.tsx`)
- Style scene engine → Caption rendering: renders captions (evidence: `studio/src/styles/engine.tsx`)
- Style scene engine → Meaningful blocks: uses block data (evidence: `studio/src/styles/engine.tsx`)
- Canvas template → Meaningful blocks: renders blocks (evidence: `studio/src/template/blocks.tsx`)
- Canvas template → Canvas layout: uses canvas layout
- Style scene engine → Style library: selects style (evidence: `studio/src/Root.tsx`)
- Composition registry → Scene library: registers demo (evidence: `studio/src/Root.tsx`)
- Scene library → Visual components: uses components (evidence: `studio/src/scenes/kit/Scenes.tsx`)
- Meaningful blocks → Liquid surfaces: renders panels (evidence: `studio/src/template/blocks.tsx`)
- Liquid surfaces → Design tokens: uses tokens (evidence: `studio/src/kit/liquid/LiquidPanel.tsx`)
- Composition registry → Frame review: supports review (evidence: `README.md`)
- Frame review → Editor: presents frames (evidence: `README.md`)
- Editor → Rendered MP4: confirms render (evidence: `README.md`)
- Source video → Rendered MP4: is edited into (evidence: `README.md`)
