Back to personal projects

Video studio · In progress

phloem

Stack
  • Node.js 24
  • TypeScript
  • Hono
  • React 19
  • Vite
  • Playwright
  • ffmpeg
  • Claude Code

A local studio that makes Well Botany's short vertical videos cut on the beat: HTML templates, beat detection, brand checks and Claude Code in the loop.

The Approach

  • Each video style is a template: a small JS module that draws a 1080×1920 frame for any moment in time. The same code runs in the preview and in the renderer.
  • Imported tracks get their tempo, beats, bars and drops. Scene cuts sit on beats, and dragging the edge of a scene changes it by whole beats.
  • Headless Chromium draws every frame and ffmpeg encodes it, so the file matches the preview frame for frame. The upload is silent: the sound is added in the TikTok or Instagram app, so it stays licensed.
  • Brand checks update as you type: safe zone, text length, banned words, number of brands, photo reuse and length.
  • The Claude tab runs the local Claude Code with a phloem CLI. It edits videos and templates, looks at frames it renders itself and answers comments pinned to a time in the video.

The Outcome

6

brand checks that update as you type

1:1

preview to file, frame for frame

Videos by status, from draft to published
Editor: slots, live 9:16 preview, beat timeline and brand checks
Claude Code fixes a note and reports what the checks found
Track: beats, bars and the drop, with tools to fix the grid
Asset library: product photos with the background removed