# vawe blog: building agent-native motion graphics

> Engineering notes from building vawe, where agents write motion graphics as HTML: what broke, what we measured and what we changed.

Canonical: https://vawe.dev/blog
Last updated: 2026-11-17

## How-to

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.

- [Remove silences from video with an AI agent](https://vawe.dev/blog/cut-silences-with-an-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.
- [Animated chart video: render a bar chart to MP4 from code](https://vawe.dev/blog/animated-chart-video): 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](https://vawe.dev/blog/canvas-to-video): 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.
- [SVG animation to MP4: render SMIL and CSS from code](https://vawe.dev/blog/svg-animation-to-mp4): 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](https://vawe.dev/blog/animated-captions-html): 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](https://vawe.dev/blog/can-claude-make-videos): 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](https://vawe.dev/blog/gsap-to-mp4): 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.
- [Three.js to MP4: render a scene frame by frame](https://vawe.dev/blog/threejs-to-mp4): 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.
- [Batch render videos from one HTML template](https://vawe.dev/blog/batch-render-videos): 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](https://vawe.dev/blog/html-video-aspect-ratios): 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](https://vawe.dev/blog/css-animation-to-video): 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](https://vawe.dev/blog/kinetic-typography-css): 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](https://vawe.dev/blog/programmatic-video-javascript): 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](https://vawe.dev/blog/puppeteer-to-mp4): Capture frames with Puppeteer, pipe them into ffmpeg and get an MP4. The frame loop, the pixel format flag and the traps.
- [HTML to MP4: render a page with headless Chrome](https://vawe.dev/blog/render-html-to-mp4): 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.

## Rendering

Headless Chrome, Puppeteer, speed and repeatable frames: what broke when we rendered a page to video, and what fixed it.

- [Puppeteer, --no-sandbox and an old Chrome: a security audit of a video renderer](https://vawe.dev/blog/headless-chrome-security): 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.
- [Headless Chrome screenshots differ between runs: 6 fixes](https://vawe.dev/blog/determinism): 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.
- [Puppeteer deviceScaleFactor: lay out big, capture small](https://vawe.dev/blog/drafts-lie): 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](https://vawe.dev/blog/fast-drafts): 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](https://vawe.dev/blog/resumable-finals): 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.
- [Seek CSS animations frame by frame in Puppeteer](https://vawe.dev/blog/seekable-css): Seek CSS animations and Web Animations forward and back in Puppeteer. Keep finished animations, drop cancelled ones, wait for fonts.
- [Video as JSON or HTML? A blind test with AI agents](https://vawe.dev/blog/html-over-json): 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.

## Agents

What an AI agent gets wrong on its own, and the commands, defaults, checks and judges that make it succeed.

- [How an AI agent edits video it cannot watch](https://vawe.dev/blog/how-an-agent-reads-footage): 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.
- [Claude Code with Remotion or plain HTML for video?](https://vawe.dev/blog/claude-code-remotion-or-html): 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.
- [AI agent tooling: design for the weaker model](https://vawe.dev/blog/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](https://vawe.dev/blog/watch-a-film): 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.
- [CLI design for AI agents: one binary, one verb per step](https://vawe.dev/blog/one-binary): 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.

## Motion and sound

Easing, transitions, blur, depth and audio: how we turned a good film into measured rules.

- [Cut video to the beat in code: a cut table for HTML video](https://vawe.dev/blog/beat): 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](https://vawe.dev/blog/real-lens): 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](https://vawe.dev/blog/image-points): 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](https://vawe.dev/blog/transitions): 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.
- [LUFS for code-made video: set the loudness in the page](https://vawe.dev/blog/audio-as-written): 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.
- [CSS motion blur for video: blend 1 to 32 subframes](https://vawe.dev/blog/motion-blur): 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.
- [The rules of easing for motion video](https://vawe.dev/blog/easing): 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.

- [RSS feed](https://vawe.dev/blog/rss.xml): every post with its full text
