Home / What is HyperFrames

What is HyperFrames?

HyperFrames is an open-source framework for turning HTML, CSS, media and seekable animations into deterministic MP4 videos. It is developed by HeyGen, licensed Apache-2.0, and described by the project as “Write HTML. Render video. Built for agents.” You author a composition as a web page; the renderer seeks each exact frame in headless Chrome and encodes the result with FFmpeg.

Sample MP4 from a HyperFrames / HTML composition (product-launch style cut). Html2MP4 hosts the same render path — this page is a definition guide, not a create form.
Diagram of HyperFrames tracks with data-start and data-duration clips
Composition tracks: clips placed with data-start, data-duration and data-track-index

How HyperFrames works

You define a video as an HTML page. Data attributes set when each element starts, how long it lasts and which track it sits on. Animation comes from any seekable runtime — GSAP, CSS animations, Lottie, Three.js, Anime.js, WAAPI or a custom adapter. The renderer opens the page in headless Chrome, seeks each exact frame, captures it and encodes the result with FFmpeg. Because frames are seeked rather than recorded from live wall-clock playback, slow machines do not drop frames the way a screen recorder would.

<div id="stage" data-composition-id="launch" data-start="0"
     data-width="1920" data-height="1080">
  <h1 id="title" class="clip" data-start="1" data-duration="4"
      data-track-index="1">Launch day</h1>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
  <script>
    const tl = gsap.timeline({ paused: true });
    tl.from("#title", { opacity: 0, y: 40, duration: 0.8 }, 1);
    window.__timelines = window.__timelines || {};
    window.__timelines.launch = tl;
  </script>
</div>

The rendering model in three steps

  1. HTML is the timeline. A composition is an HTML file. Attributes like data-start, data-duration and data-track-index place clips on tracks.
  2. Seek every frame. Headless Chrome is seeked frame by frame instead of recording live playback, so slow machines don’t drop frames.
  3. Encode with FFmpeg. Captured frames (plus audio mixing) become an MP4. Same input, same output — useful for CI and batch jobs.

Quick start, from the official README:

npx hyperframes init my-video
cd my-video
npx hyperframes preview   # live reload
npx hyperframes render    # → MP4

Install and render details: install HyperFrames · render troubleshooting. Hands-on walkthrough: HyperFrames tutorial.

Key features

  • HTML-native — no React requirement, no proprietary timeline format, no build step required for a basic composition.
  • Deterministic — same input, same frames, same output. Useful for CI, agents and batch personalization.
  • Agent-friendly — non-interactive CLI; the project documents “agent skills” so coding agents can author videos.
  • Catalog — reusable blocks for transitions, overlays, captions, charts and effects (HeyGen docs mention 150+).
  • Formats — MP4, MOV, WebM, GIF, PNG sequence (per HeyGen documentation).
  • Where it renders — locally, Docker, AWS Lambda, or HeyGen’s Cloud Rendering API.

The HyperFrames stack

  • CLI — scaffold, preview, lint, inspect, render
  • Core / Engine / Producer — parse compositions, drive Chrome, encode, mix audio
  • Studio — browser surface for previewing and editing
  • hyperframes.dev — community playground for sharing and rendering

Who this is for

People who land on “what is HyperFrames” usually need a clear definition before they install anything or pick a product. Typical readers:

  • Developers and technical marketers — Want programmatic video from web skills (HTML/CSS/JS) instead of After Effects timelines.
  • Teams building agent workflows — Need a non-interactive, deterministic render path that coding agents can drive from a repo or CI.
  • Motion-curious engineers — Prefer GSAP / CSS / Lottie in the browser over learning a React video DSL first.
  • Product builders evaluating stacks — Comparing HyperFrames, Remotion and hosted HTML→MP4 tools before committing to a pipeline.

If you already know you want a finished MP4 without a local Node stack, skip ahead to CLI vs Html2MP4 hosted or open prompt to video / video templates.

CLI vs Html2MP4 hosted

Honest boundary: Html2MP4 is an independent hosted product that creates MP4 videos online. It is not an official HeyGen product, not a HyperFrames subsidiary, and not affiliated with or endorsed by HeyGen. “HyperFrames” remains a trademark of its owner.

  • HyperFrames CLI (local / your infra) — You write HTML compositions, install Node + Chrome/FFmpeg-capable tooling, run npx hyperframes render (or Docker / Lambda). Full control, your machines, your CI. Start from the install guide and tutorial.
  • Html2MP4 hosted — Browser forms that use AI to create or adapt HTML and export video online. No local Node/FFmpeg required. Paths: prompt to video, video templates, website to video, brand kit, pasted HTML to MP4, showcase. Check the credit estimate before creating. There is no submit-time preview editor.

Choose CLI when you need repo-native pipelines and custom adapters. Choose hosted when you want an MP4 from a brief, template fields, URL or pasted markup without operating Chrome yourself.

What you get from seekable HTML→MP4

Whether you run HyperFrames yourself or use Html2MP4, the valuable outcome is the same class of file:

  • Frame-accurate MP4 — Each frame is sought, not “record until the fan slows down.”
  • Web-native authoring — Layout with HTML/CSS; motion with seekable JS or CSS; no proprietary binary project file required for basic work.
  • Repeatable output — Same composition → same frames, which matters for agents, A/B variants and batch personalization.
  • Standard delivery — H.264 MP4 suitable for site embeds, social and decks (exact codecs/containers depend on your encode settings or the host’s defaults).

Related method pages: HTML to MP4 · render HTML to MP4 · HTML animation to video · CSS animation to video · GSAP to MP4 · programmatic video from HTML.

Good use cases

  • Product launch and changelog videos
  • Data-driven or personalized videos at scale (one template, many variables)
  • Social clips, captions, lower thirds
  • Videos authored end-to-end by an AI coding agent
  • CI-generated release notes or changelog reels from markup in the repo

Common misconceptions / honest limits

  • “Any webpage becomes a perfect video.” — Live sites with lazy loaders, wall-clock requestAnimationFrame, or non-seekable players often need a seekable composition (or a hosted flow that rebuilds one). Screen-recording a tab is a different problem; see website to video for the hosted URL path.
  • “HyperFrames requires React.” — It does not. Remotion does. HyperFrames is HTML-first.
  • “Html2MP4 is HeyGen.” — No. Html2MP4 is independently operated (contact@html2mp4.com · @Everitere1).
  • “Hosted means unlimited free renders.” — New accounts get 3 free credits. Check the credit estimate before creating. Packs are on Pricing.
  • “There is a public REST video API on this site.” — Html2MP4 does not expose a public REST API for video jobs. Batch-style work today is form/hosted or your own HyperFrames CLI pipeline — see programmatic video from HTML.
  • “Preview before every submit on Html2MP4.” — There is no submit-time preview editor; flow is form → enqueue → download.

This guide stays definitional. To try renders without pretending this page is a create form:

Common questions

What is HyperFrames?

HyperFrames is an open-source Apache-2.0 framework from HeyGen for turning HTML, CSS, media and seekable animations into deterministic MP4 videos. You author a composition as HTML; a headless Chrome renderer seeks each frame and FFmpeg encodes the result.

Do I need React to use HyperFrames?

No. HyperFrames is HTML-native. There is no React requirement and no proprietary timeline format. You can use plain HTML plus any seekable animation runtime such as GSAP, CSS animations, Lottie, Three.js, Anime.js or WAAPI.

How is HyperFrames different from Remotion?

HyperFrames treats HTML as the timeline and renders with seekable headless Chrome plus FFmpeg. Remotion is a React-based video framework with its own composition model. Both can produce programmatic video; they differ in authoring style and stack. See HyperFrames alternatives for a fuller comparison.

Is HyperFrames free and open source?

Yes. The project is licensed Apache-2.0. You can run the CLI locally, in Docker, or on your own infrastructure. Cloud Rendering APIs and hosted products that use HyperFrames may have their own pricing.

What is the relationship between Html2MP4 and HyperFrames?

Html2MP4 is an independent hosted product that creates MP4 videos online. It is not affiliated with or endorsed by HeyGen. HyperFrames is a separate open-source project.

Can I render HyperFrames video without installing Node?

Locally, the HyperFrames CLI typically needs Node and a Chrome/FFmpeg-capable environment. If you do not want to install that stack, use a hosted path such as Prompt to video, Video templates, or HTML to MP4 — those run the render on the server.

What animation libraries work with HyperFrames?

Any seekable runtime works in principle: GSAP timelines registered for frame seek, CSS animations, Lottie, Three.js, Anime.js, WAAPI, or a custom adapter. Live wall-clock playback that cannot be seeked to an exact time is a poor fit for deterministic frame capture. For CSS/@keyframes export patterns see CSS animation to video; for GSAP seek notes see GSAP to MP4.

Related

This page is an independent overview. For hands-on steps see the HyperFrames tutorial. To weigh other tools, read HyperFrames alternatives. Broader methods are in how to convert HTML to MP4; animation export in HTML animation to video; pipeline details in render HTML to MP4.