What Is HyperFrames? From HTML to Video

Learn how HeyGen’s open-source HyperFrames turns HTML, CSS, and timed animation into video, and when to use the CLI, Studio, or hosted connector.

Updated Dec 4, 2026 · Tested with HyperFrames 0.10.10

HyperFrames is HeyGen’s open-source framework for making editable videos with HTML, CSS, JavaScript, and media files. A project describes a fixed-size canvas, what appears on it, and when each element moves or plays. The command-line tool captures that composition at successive points in time and writes a video you can play outside the browser.

Pronounce it HY-per-frames, as the English words hyper and frames. The framework, command-line package, and Studio share the name. The npm command uses lowercase hyperframes.

What goes into a project

The entry point is usually index.html. In a standard scaffold, the root element declares the composition ID, width, height, and duration. Timed clips declare their start and duration in seconds. CSS handles position, color, typography, and the fixed canvas in the same way it would for a web layout. For a landscape video that might mean a 1920 × 1080 canvas with a headline centered inside an inset safe area.

The timing layer makes a project behave like a video. For a 15-second launch clip, you could show the opening question from 0 to 4 seconds, the feature from 4 to 10, and a final call to action from 10 to 15. Put each scene's copy in its own HTML element and use a seekable GSAP timeline to animate the headings in at the scene boundaries. When a reviewer asks for a new headline, the edit is to the text in that scene. The project still contains the timings and motion for the other scenes.

HyperFrames is especially useful for motion graphics with a lot of deliberate detail. Product launch clips, animated charts, branded captions, screencast overlays, and diagrams all benefit from being able to place and change individual elements. Footage and sound can come from files you already have. An agent can also write the project files from a brief, so knowing HTML helps with review even when you delegate the initial draft.

How HTML becomes an MP4

  1. HyperFrames loads the composition in headless Chrome, where the browser resolves styles, fonts, images, and video elements.
  2. The runtime seeks the composition to each frame's time. At 30 frames per second, a 10-second composition produces 300 frames. An animation in a registered GSAP timeline can be evaluated at a requested time even if the browser visits that time out of order.
  3. Chrome supplies the rendered frames. FFmpeg encodes the result and assembles the final output, including audio when the composition uses it.

That pipeline explains why preview and export have different jobs. The browser preview lets you scrub and revise the project while it is still editable. A render produces a finished file with the frames encoded in sequence. The same source and compatible assets can be rendered again after changing text or timing. Keep fonts and media available to the renderer and put animations on a seekable timeline. A timer that starts from wall-clock time can look fine in a browser tab and land on the wrong frame during capture.

To see what the engine is working with, run this inside a HyperFrames project.

bash
npx hyperframes lint
npx hyperframes check

Linting looks for common mistakes in the source. The browser check can also uncover runtime, layout, motion, and contrast issues. Fix a missing asset or a clipped line at the source, then check the relevant frame again. A completed export confirms that a file was produced. Watching it confirms that the cuts, copy, and pacing work for the audience.

How this differs from text-to-video generation

A text-to-video diffusion model synthesizes imagery from a prompt. HyperFrames renders the layout, media, and animation you describe in project files. A coding agent can turn a natural-language prompt into those files, which is why the experience starts with text even though the rendering mechanism is an HTML composition.

This distinction matters when you need to fix something precise. A wrong price in a video made of editable text can be corrected in the HTML. Moving the price reveal half a second earlier is a timing edit. For a photorealistic shot of a product in a scene you never filmed, bring in suitable footage or an externally generated clip and place it on the timeline. HyperFrames can composite that clip with your text and graphics.

CLI, Studio, and the chat connector

  • Local CLI and agent skills. Keep an editable project in your own folder, get optional coding-agent assistance, and export an MP4 locally.
  • HyperFrames Studio. Use a visual editing app with preview and agent-assisted editing. Check Studio's pricing page for account and plan terms.
  • Hosted chat connector. Ask for a short video in a supported Claude, ChatGPT, or Grok conversation and get a project link and hosted MP4.

HeyGen develops the framework and offers the Studio app and hosted integrations. The CLI uses your computer for the basic workflow. Installing it and rendering a title card do not require HeyGen sign-in. A hosted workflow involves an account and has its own limits. Choose based on where you need the project to live and how much control you want over the export. See the official quickstart, the pricing guide, and the connector guide.

The framework repository uses the Apache License 2.0. Check the terms of any footage, music, fonts, or generated assets you add to a production. Those assets can come with terms of their own. See the HyperFrames repository and license.

Try the smallest useful example

Follow the installation guide, then create and render a blank starter from a parent directory where you can make a new folder.

bash
npx hyperframes init hello-frames --non-interactive --skip-skills
cd hello-frames
npx hyperframes render --quality draft --workers 1 -o hello.mp4

On CLI 0.10.10, the default starter is a 10-second landscape title card. A successful render ends with Render complete and an output summary. Open hello.mp4, then change the visible title in index.html and render again. If Chrome cannot start, check the Chrome troubleshooting guide. If encoding fails, check FFmpeg on your PATH. Once you can reproduce that edit and export, build a three-scene clip in the first video tutorial.

Frequently asked questions

How do you pronounce HyperFrames?
Read it as the two English words hyper and frames, with the main stress on HY: HY-per-frames.
Can I use HyperFrames without a HeyGen account?
Yes. You can author, preview, check, and render a local project with the CLI without signing in to HeyGen.

Related guides