Notes from building vawe, with the numbers.
An agent writes one HTML page and the renderer turns it into a film.
Step-by-step guides that end with a file you can run: render HTML to a video, export an animation, drive vawe from an agent.
Headless Chrome, Puppeteer, speed and repeatable frames: what broke when we rendered a page to video, and what fixed it.
What an AI agent gets wrong on its own, and the commands, defaults, checks and judges that make it succeed.
Easing, transitions, blur, depth and audio: how we turned a good film into measured rules.

HTML to MP4: render a page with headless Chrome
Render an HTML page to MP4 with a 20-line Puppeteer script or with vawe. Both seek every frame, so a busy machine cannot drop one.

Video as JSON or HTML? A blind test with AI agents
JSON vs HTML as a video format: a blind A/B test. The HTML page won on speed (5.9 minutes against 10.75) and on score (8 against 5). What we deleted.

Three.js to MP4: render a scene frame by frame
Render a three js animation to MP4 with one window.seek(t) function. No real clock, so the same page gives the same frames. Code and tests.

How an AI agent edits video it cannot watch
An agent edits video by reading a text log of each clip: length, shots, loudness and a transcript with word times. Here is that log, field by field.

Remove silences from video with an AI agent
An agent finds silences from the word times in a transcript, turns each gap into a cut, and renders the result. Rows, trims and HTML included.

Puppeteer, --no-sandbox and an old Chrome: a security audit of a video renderer
Our renderer ran Chrome 131 with the sandbox off. What four open-source scanners and a code review found, what we fixed, and a checklist for any tool that drives headless Chrome.

Animated chart video: render a bar chart to MP4 from code
Make an animated bar chart video with HTML and a seek function, render it to MP4 with vawe, and batch one chart per dataset with --param. Code that ran.

Canvas animation to video: render a canvas to MP4 by seeking
Export a canvas animation to MP4 without MediaRecorder. Draw frame t from t alone in window.seek, seed the random numbers, render with vawe. Code that ran.

Claude Code with Remotion or plain HTML for video?
Should Claude Code write Remotion or plain HTML to make a video? What our blind test measured (5.9 vs 10.75 minutes), what it did not, and how to choose.

SVG animation to MP4: render SMIL and CSS from code
Turn an SVG animation into an MP4 from code. vawe pauses the SVG and seeks every frame, so SMIL and CSS animation render the same each run. A page that ran.

Animated captions in HTML: word by word, rendered to MP4
Make animated word-by-word captions with plain HTML and CSS, then render them to an MP4 with vawe. One table of times, no React, code that ran.

Can Claude make videos? Yes, if the video is code
Can Claude make videos? Yes: Claude Code writes one HTML page and a renderer films it into an MP4. The commands, a page that rendered, and the limits.

GSAP to MP4: export a timeline as video
Pause a GSAP timeline, call tl.time(t) for each frame and render it to MP4 with vawe or Puppeteer. Code, three traps we hit and a clip.

Batch render videos from one HTML template
Batch render videos from a template: fill one HTML page with JSON rows and render a clip per row with a Node loop. We ran three rows.

HTML video aspect ratio: 16:9, 9:16 and 1:1
Lay out one HTML page with --vw and --vh so the same file renders in 16:9, 9:16 and 1:1. The CSS, the flag, three stills.

CSS animation to video: export an MP4 or WebM
Turn a CSS keyframe or Web Animation into an MP4 or WebM. Pause, seek, capture and encode. Covers SVG and canvas too.

CSS text animation: 5 kinetic typography effects
Five kinetic text effects in plain CSS, each with code and a 2 s clip: stagger, wave, scale punch, mask reveal and tracking.

Programmatic video: 6 JavaScript tools compared
Remotion, Revideo, Motion Canvas, HyperFrames, vawe and ffmpeg scripts compared on language, determinism, agent use, license and hosting.

Puppeteer video: screenshots to MP4 with ffmpeg
Capture frames with Puppeteer, pipe them into ffmpeg and get an MP4. The frame loop, the pixel format flag and the traps.

AI agent tooling: design for the weaker model
Six films by a weaker model: median 13 drafts, 0 of 6 passed the judge. How to build defaults, checks and one command per step.

Can AI agents watch video? What they miss, measured
Our agent read 5 reference frames, then made 0.20 s flashes where the reference ran 0.07 to 0.10 s. Ground-truth fixtures and six tools fixed it.

Cut video to the beat in code: a cut table for HTML video
Read a music track as a beat grid, check that each cut lands within one frame of a hit, and move it. 8 of 19 calls failed first.

Depth of field in CSS and WebGL: a measured test
CSS blur and text-shadow against one WebGL lens that films the page. Bloom measured 24.9 px against 20.7 px on a reference film.

Image to particles in three.js: a step-by-step guide
Weight pixels by luma and edges, draw seeded points, light them by normal. 120,000 points in a 1.3 MB clip. Code included.

Motion graphics transitions: 12 types, 10 mistakes
Name what carries the eye over each cut. 12 handoff families and the 10 tells of a slideshow, with clips and a check you can run.

CLI design for AI agents: one binary, one verb per step
CLI design for AI agents: one binary with 24 verbs, one-line usage errors, a result line that survives a pipe and a hook that names the next step.

Headless Chrome screenshots differ between runs: 6 fixes
Two renders of one page gave 70 of 216 different frames. Six causes of pixel drift in headless Chrome, the fix for each, and a test.

LUFS for code-made video: set the loudness in the page
Our example film measured -28.8 LUFS against a -20 target. A plain mix, a limiter and one check fixed it. Why we also ban synth beds.

Puppeteer deviceScaleFactor: lay out big, capture small
Use deviceScaleFactor for a half-size draft that keeps the final layout. Frame diff fell from 10.07 to 0.86. Plus the 800x600 viewport bug.

Render video with Puppeteer faster: capture from 140 s to 47 s
JPEG quality 92, GPU compositing, one Chrome per lane (140 s to 47 s) and a reaper for orphan processes. What helped and what we undid.

Resume a failed video render in Puppeteer and catch hangs
A render died at 97% and left 3.7 GB of frames. Slice markers, retries and a 60 s watchdog that names the stuck step.

CSS motion blur for video: blend 1 to 32 subframes
Add motion blur to an HTML animation by blending 1 to 32 subframes per frame, set by measured travel. A 5 s film took 4,017 subframes.

Seek CSS animations frame by frame in Puppeteer
Seek CSS animations and Web Animations forward and back in Puppeteer. Keep finished animations, drop cancelled ones, wait for fonts.

The rules of easing for motion video
Twelve rules of easing for motion video, each with a reason, a number and the code: land entrances, launch exits, overshoot only for mass, speed bands.