# danielcazi/editor-studio architecture

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

- Interactive diagram: https://gitdiagram.com/danielcazi/editor-studio
- Repository: https://github.com/danielcazi/editor-studio

## Overview

Editor Studio is a local, Claude-assisted short-video editing workflow with human approval at each stage; Motion Studio supplies animated film compositions and rendering tools. The documented path runs from upload and reference selection through review, stills, storyboard, and final video. Source excerpts show the local server’s job, upload, reference, and Claude-session responsibilities, plus rendering contracts; some stage links are based on the README rather than sampled implementation.

Main entry points: [`editor-studio/server.js`](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js) (Local server), [`motion-studio/render.mjs`](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/render.mjs) (Frame renderer), [`editor-studio/WORKFLOW.md`](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/WORKFLOW.md) (Approved brief), [`editor-studio/tools/make_stills.py`](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/make_stills.py) (Stills generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor workflow"]
  node_server["Local server<br/>[server.js]"]
  node_jobs[("Job state<br/>[server.js]")]
  node_uploads["Video upload<br/>[server.js]"]
  node_refs[("Reference bank<br/>[index_refs.mjs]")]
  node_review["Approved brief<br/>[WORKFLOW.md]"]
  node_claude["Claude session<br/>[server.js]"]
  node_studiointerface["Studio interface<br/>[index.html]"]
end

subgraph group_media["Media production"]
  node_stills["Stills generation<br/>[make_stills.py]"]
  node_stills916["Portrait stills<br/>[make_stills_916.py]"]
  node_cutout["Person cutout<br/>[cutout.py]"]
  node_transcribe["Transcription<br/>[transcribe.py]"]
  node_storyboard["Storyboard<br/>[WORKFLOW.md]"]
  node_finalvideo["Final video<br/>[render_video.js]"]
end

subgraph group_motion["Motion compositions"]
  node_film04["CAZI film<br/>[film.js]"]
  node_filmads["Ads film<br/>[film.js]"]
  node_pixel["Pixel Rulers<br/>[film.js]"]
  node_zero["Zero to Live<br/>[film.js]"]
  node_threepages["Three Pages<br/>[film.js]"]
  node_library["Module library"]
end

subgraph group_render["Rendering"]
  node_render["Frame renderer<br/>[render.mjs]"]
end

node_editor(("Video editor"))

node_editor -->|"uploads video"| node_server
node_server -->|"stores uploads"| node_uploads
node_editor -->|"selects references"| node_refs
node_server -->|"serves index"| node_refs
node_server -->|"reads and updates"| node_jobs
node_server -->|"starts session"| node_claude
node_editor -->|"approves stages"| node_review
node_claude -->|"prepares response"| node_review
node_review -->|"advances to stills"| node_stills
node_stills -.->|"creates portrait options"| node_stills916
node_cutout -->|"provides cutout"| node_stills916
node_review -->|"approves storyboard"| node_storyboard
node_storyboard -->|"advances to render"| node_finalvideo
node_transcribe -.->|"provides transcript"| node_storyboard
node_finalvideo -->|"records completion"| node_jobs
node_film04 -->|"exposes seek frames"| node_render
node_filmads -->|"exposes seek frames"| node_render
node_pixel -->|"exposes seek frames"| node_render
node_zero -->|"exposes seek frames"| node_render
node_threepages -->|"exposes seek frames"| node_render
node_library -.->|"includes module"| node_pixel
node_server -.->|"serves interface"| node_studiointerface

click node_server "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js"
click node_jobs "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js"
click node_uploads "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js"
click node_refs "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/index_refs.mjs"
click node_review "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/WORKFLOW.md"
click node_claude "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js"
click node_stills "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/make_stills.py"
click node_stills916 "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/make_stills_916.py"
click node_cutout "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/cutout.py"
click node_transcribe "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/transcribe.py"
click node_storyboard "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/WORKFLOW.md"
click node_finalvideo "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/render_video.js"
click node_film04 "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/exemplos/04-cazi-after/film.js"
click node_filmads "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/exemplos/ads-03/film.js"
click node_pixel "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I001-pixel-rulers/film.js"
click node_zero "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I003-zero-to-live/film.js"
click node_threepages "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I006-tres-paginas/film.js"
click node_render "https://github.com/danielcazi/editor-studio/blob/main/motion-studio/render.mjs"
click node_library "https://github.com/danielcazi/editor-studio/tree/main/motion-studio/library/modules"
click node_studiointerface "https://github.com/danielcazi/editor-studio/blob/main/editor-studio/index.html"

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_server,node_jobs,node_uploads,node_refs,node_review,node_claude,node_studiointerface toneBlue
class node_stills,node_stills916,node_cutout,node_transcribe,node_storyboard,node_finalvideo toneAmber
class node_film04,node_filmads,node_pixel,node_zero,node_threepages,node_library toneMint
class node_render toneRose
class node_editor toneIndigo
```

## Components

### Editor workflow

- [Local server](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js): `editor-studio/server.js`
- [Job state](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js): `editor-studio/server.js`
- [Video upload](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js): `editor-studio/server.js`
- [Reference bank](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/index_refs.mjs): `editor-studio/tools/index_refs.mjs`
- [Approved brief](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/WORKFLOW.md): `editor-studio/WORKFLOW.md`
- [Claude session](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/server.js): `editor-studio/server.js`
- [Studio interface](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/index.html): `editor-studio/index.html`

### Media production

- [Stills generation](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/make_stills.py): `editor-studio/tools/make_stills.py`
- [Portrait stills](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/make_stills_916.py): `editor-studio/tools/make_stills_916.py`
- [Person cutout](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/cutout.py): `editor-studio/tools/cutout.py`
- [Transcription](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/transcribe.py): `editor-studio/tools/transcribe.py`
- [Storyboard](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/WORKFLOW.md): `editor-studio/WORKFLOW.md`
- [Final video](https://github.com/danielcazi/editor-studio/blob/main/editor-studio/tools/render_video.js): `editor-studio/tools/render_video.js`

### Motion compositions

- [CAZI film](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/exemplos/04-cazi-after/film.js): `motion-studio/exemplos/04-cazi-after/film.js`
- [Ads film](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/exemplos/ads-03/film.js): `motion-studio/exemplos/ads-03/film.js`
- [Pixel Rulers](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I001-pixel-rulers/film.js): `motion-studio/library/modules/I001-pixel-rulers/film.js`
- [Zero to Live](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I003-zero-to-live/film.js): `motion-studio/library/modules/I003-zero-to-live/film.js`
- [Three Pages](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/library/modules/I006-tres-paginas/film.js): `motion-studio/library/modules/I006-tres-paginas/film.js`
- [Module library](https://github.com/danielcazi/editor-studio/tree/main/motion-studio/library/modules): `motion-studio/library/modules`

### Rendering

- [Frame renderer](https://github.com/danielcazi/editor-studio/blob/main/motion-studio/render.mjs): `motion-studio/render.mjs`

### Other components

- **Video editor**

## Connections

- Video editor → Local server: uploads video (evidence: `README.md`)
- Local server → Video upload: stores uploads (evidence: `editor-studio/server.js`)
- Video editor → Reference bank: selects references (evidence: `README.md`)
- Local server → Reference bank: serves index (evidence: `editor-studio/server.js`)
- Local server → Job state: reads and updates (evidence: `editor-studio/server.js`)
- Local server → Claude session: starts session (evidence: `editor-studio/server.js`)
- Video editor → Approved brief: approves stages (evidence: `README.md`)
- Claude session → Approved brief: prepares response (evidence: `README.md`)
- Approved brief → Stills generation: advances to stills (evidence: `README.md`)
- Stills generation → Portrait stills: creates portrait options
- Person cutout → Portrait stills: provides cutout (evidence: `editor-studio/tools/make_stills_916.py`)
- Approved brief → Storyboard: approves storyboard (evidence: `README.md`)
- Storyboard → Final video: advances to render (evidence: `README.md`)
- Transcription → Storyboard: provides transcript
- Final video → Job state: records completion (evidence: `editor-studio/tools/render_video.js`)
- CAZI film → Frame renderer: exposes seek frames (evidence: `motion-studio/render.mjs`)
- Ads film → Frame renderer: exposes seek frames (evidence: `motion-studio/render.mjs`)
- Pixel Rulers → Frame renderer: exposes seek frames (evidence: `motion-studio/render.mjs`)
- Zero to Live → Frame renderer: exposes seek frames (evidence: `motion-studio/render.mjs`)
- Three Pages → Frame renderer: exposes seek frames (evidence: `motion-studio/render.mjs`)
- Module library → Pixel Rulers: includes module
- Local server → Studio interface: serves interface
