HyperFrames

Render deterministic MP4 videos from HTML, CSS, and JavaScript animations using a CLI and agent-friendly framework.

Render deterministic MP4 videos from HTML, CSS, and JavaScript animations using a CLI and agent-friendly framework.

The gist

HyperFrames is an open-source framework from HeyGen for turning web technologies like HTML, CSS, and JavaScript into MP4 videos. It's built for developers and AI agents to solve the problem of creating deterministic, programmatic video content. By defining video compositions in simple HTML files, users can automate the production of anything from product demos to data visualizations, ensuring the same input always produces the same output.

What it does

  • Renders MP4 videos from standard HTML and CSS files.
  • Animates video elements using seekable libraries like GSAP, Lottie, and Three.js.
  • Provides a command-line interface to scaffold, preview, and render video projects.
  • Integrates with AI coding agents via 'skills' to automate video planning and creation.
  • Builds reusable motion graphics components for automated content pipelines.
  • Supports distributed rendering on AWS Lambda for scalable production.

How it works

A user defines a video composition as an HTML file, using data attributes to specify timing, tracks, and media sources. Animations are added via seekable JavaScript libraries. The HyperFrames CLI uses Puppeteer to control a headless Chrome browser, seeking to and capturing each frame individually. It then uses FFmpeg to encode these frames and mix audio into a final MP4 video. The framework is open-source and primarily delivered as a CLI tool.

Best for

This tool is best for developers and teams who need to programmatically generate videos, especially in automated CI/CD pipelines or via AI agents.

Watch out for

HyperFrames is built around a plain HTML authoring model. Teams heavily invested in a React-based component workflow might find a tool like Remotion to be a more natural fit.