Guide · Making a video
How it works
The four passes from repo to reel: gather, story, build and render, and the checks between them.
Gather
The README, the site’s own copy, real numbers and the brand. Then the app itself: Claude builds and starts it, and capture.mjs records screenshots and a screen clip of it doing its one job with Playwright.
Story
Five to seven scenes in story.json, 60 to 90 spoken words. The words come from the project, never invented numbers or quotes, and the screen says less than the voice.
Build
Each phrase is voiced on its own with Kokoro, on the CPU. The timeline puts every reveal where its phrase starts, and music.mjs writes a bed to the exact length.
Render
Remotion renders all three shapes from the same scenes after Claude checks a contact sheet. FFmpeg mixes, normalizes the loudness and makes the GIF.
The checks between them
Before anything renders, Claude reads a contact sheet with one frame per scene, then render.mjs check measures every cut it will render. Anything marked FIX stops the render until it’s fixed:
- text under the cut’s smallest size (30 px vertical, 26 square and portrait, 22 landscape)
- text under WCAG contrast, 4.5:1, or 3:1 from 40 px up
- anything off the frame
It also flags words where a vertical app’s buttons sit, and scenes too short to read. After the render, each MP4 is checked to decode, have every frame, no black frames, and land at −14 LUFS.