CODE

How these videos are built

From the video "Just got back from the gym"

⏱ 1 afternoon◆ Claude plan

No video AI, no credits. Every frame is drawn by code on a normal laptop. That's why it costs nothing per video. Here's the whole machine, then a prompt to build a small version yourself.

The 6 parts

  1. The script is a simple list. Each line says who speaks, what they say, the camera shot and the face (happy, shocked, smug).
  2. The voices come from edge-tts, which is free. It also gives the timing of every word.
  3. The scene is built with Three.js, a free 3D library that runs in a web page. The characters are simple shapes: boxes, spheres and a face drawn on top.
  4. The animation follows the voice. The mouth opens with the volume, captions light up word by word, and the camera cuts on every line.
  5. Chrome renders it with no window open, one exact frame at a time. ffmpeg joins the frames into an MP4. This isn't screen recording, so nothing stutters.
  6. Music and sound effects are generated in Python, so there are no licenses to buy. Everything is mixed to -14 LUFS, the loudness the apps expect.

A 35-second video takes about a minute or two to render on our laptop. Writing and fixing the first version took real back-and-forth. After that, a new episode is mostly writing the script.

Prompt to build a mini version (Claude Code)
Build me a tiny code-made cartoon pipeline in this folder. Free tools only.

1. scene.html: a Three.js scene with a desk and two characters made from simple shapes: a person with round glasses, and a small orange block character with big eyes. Expose window.render(t) that draws the exact frame at time t (seconds).
2. script.json: 4 dialogue lines. Each has who, text and camera (close-up or wide).
3. voices.py: make each line with edge-tts, save the audio and the word timings, and build one timeline file.
4. render.mjs: open scene.html in headless Chrome with Puppeteer, step t at 30 fps, take each frame and pipe it into ffmpeg to get a 1080x1920 MP4.
5. Captions: draw them on a canvas over the scene, word by word from the timings. The speaking character's mouth opens with the voice volume.
6. Audio: mix the voices with a quiet music bed generated in Python, and set loudness to -14 LUFS.

Start with a 5-second test. Show me one frame before you render the full video.
Example · Real lines from our script file
{ "who": "claude",  "text": "Zero.",            "shot": "close-up", "face": "happy" }
{ "who": "creator", "text": "Even the voices?", "shot": "medium",   "face": "thinking", "pose": "scratch head" }
{ "who": "claude",  "text": "Also code.",       "shot": "close-up", "face": "happy", "gag": "wireframe body" }

Things that will go wrong (and the fix)