heygen-com/hyperframes · 12 Sep 2026 · Feature

The 'Seek, Don't Play' Hack Powering Agent-Made Video

Megan Russo
Megan Russo
Staff Writer

HeyGen's open-source framework treats HTML as a video timeline, letting AI agents write compositions that render into deterministic MP4s.

heygen-com/hyperframes
49k stars Velocity · 7d +718 ★/day accelerating
star history

The Agent Moment

The current wave of AI coding agents—Claude Code, Cursor, Gemini CLI, Codex—has created an unexpected bottleneck. These tools write Python, JavaScript, and HTML with growing competence, but they still struggle to produce video. The reason is not a lack of creativity; it is that most video infrastructure was built for human hands on timelines, not for autonomous agents writing markup. HyperFrames, open-sourced by HeyGen, arrives as a deliberate bet that the agent is now the primary author, and the browser is the rendering substrate.

heygen-com/hyperframes

The project’s positioning is unambiguous. Its homepage frames the workflow as vibe-coding: you describe the video, the agent writes the HTML, and HyperFrames plays or renders it. The repository ships with agent skills—structured prompt packs that teach coding agents the production loop of planning, writing valid HTML, wiring animations, linting, and rendering. These skills target the exact models developers already use inside their terminals.

HeyGen’s own research blog reveals that this was not a marketing afterthought but a technical origin story. About a year ago, the team tried to have large language models generate video through code directly. The prompts were enormous, the back-and-forth exhausting, and the outputs required so much hand-written glue that the process never reached production readiness. They then tried Remotion, the established React-based video toolkit. While Remotion offered determinism and mature tooling, the React framework acted as a cage. The more guardrails they added to keep the agent inside React’s component model, the safer and more repetitive the outputs became. When they dropped back to plain HTML, CSS, and JavaScript, the agent’s creative range expanded again. HyperFrames exists to preserve that freedom while still producing frame-exact, repeatable MP4s.

The Insight: Seek, Don’t Play

The central engineering question HyperFrames answers is deceptively simple: how do you force a browser, an inherently asynchronous and nondeterministic runtime, to emit the exact same pixels on every render? Browsers decode images in background threads, drop video frames under load, and drive animations from the display clock. All of that is excellent for user experience and terrible for reproducible video output.

The framework’s core abstraction is a single seekable interface exposed by every composition. Instead of pressing play and recording what happens, the renderer asks the page to jump to a specific moment, hold perfectly still, and yield a screenshot. It then advances by one frame’s worth of time and asks again. Time does not flow on its own; nothing is driven by the browser’s animation frame loop. The browser’s only job is to freeze a frame until the next one is requested.

This collapses two traditionally separate systems into one code path. The studio preview runs the same seek logic inside an iframe, scrubbing back and forth via postMessage. The headless production renderer, driven by Puppeteer and the Chrome DevTools Protocol, calls the exact same seek method before each capture. A human scrubbing the timeline and a cloud Lambda rendering frame 147 at three in the morning are exercising identical logic.

Animation libraries plug into this model through a three-method adapter. The framework needs to know how long the animation lasts, how to initialize it, and how to seek to a specific frame. GSAP is the default adapter because its timelines are already paused and seekable by design. Lottie, CSS animations via the Web Animations API, and Three.js clocks all fit the same shape. What does not fit are systems that insist on owning their own clock: uncontrolled CSS keyframe animations, video elements, and canvas libraries running their own requestAnimationFrame loops. Those must either be wrapped in an adapter that confiscates the clock, or prerendered to image sequences and replayed as static frames.

The capture pipeline itself required fighting Chrome’s compositor. A naive screenshot call returns an image as soon as the compositor is willing to hand one over, which is not the same moment that fonts have loaded, layout has settled, and the GPU has finished painting. Early frames would arrive with missing text, unanimated SVG fills, or video elements still showing their default placeholder sizes. The team spent significant time writing heuristics that poll for font readiness, wait on computed styles, and compare pixel hashes to confirm a frame has landed. They concede these heuristics work well but are not fully robust, and they remain the fallback on macOS and Windows where the cleaner alternative is unavailable.

That cleaner alternative is a Chrome DevTools Protocol method that runs one atomic layout-paint-composite-screenshot cycle and returns the result. One call produces exactly one frame. The compositor is paused until the operation completes. This is the path that makes production rendering at scale tolerable, and it represents the bulk of the framework’s technical specialness: not merely wrapping a headless browser, but forcing it to behave like a frame-accurate video server.

HTML vs. React in the Agent Era

Any discussion of HyperFrames immediately invites comparison with Remotion, the incumbent toolkit for programmatic video. The two share foundational DNA—both use headless Chrome and FFmpeg to turn code into MP4s—but their authoring bets diverge sharply. Remotion wagers on React components, a bundler, and JSX. HyperFrames wagers on plain HTML files with data attributes, zero build step, and an index.html that plays as-is in any browser.

For human developers, this is largely a matter of taste. For agents, it is a matter of training distribution. Large language models have seen orders of magnitude more HTML than React project scaffolding. They can write a styled div or a GSAP timeline with far less context than is required to generate a working JSX component inside a bundler ecosystem. The README explicitly contrasts the two approaches, noting that HyperFrames offers plain HTML files for agent handoff while Remotion requires a JSX and React project. The comparison is not hostile—HyperFrames credits Remotion as its inspiration—but it is competitive.

There are commercial implications beyond ergonomics. HyperFrames ships under an Apache 2.0 license with no per-render fees or commercial-use thresholds. Remotion operates under a source-available license that carries different commercial terms. For teams building automated content pipelines, the licensing distinction matters as much as the markup format.

Remotion is not standing still. A recent podcast episode featuring Remotion’s creator noted that the project has moved from 125,000 to 800,000 daily installs, launched its own skills system for agents, and is exploring new Chrome specifications for HTML-in-Canvas rendering. The field is converging on agent-native workflows, but the authoring model remains the dividing line. Remotion’s ecosystem is deeper and its cloud renderer more mature; HyperFrames’ AWS Lambda path is listed as available but younger.

Where the Edges Are

HyperFrames is a rendering engine and a growing toolset, not a magic wand. The README catalogs a studio interface, a component catalog, and a design system in development, but several pieces are still evolving. The Design.HTML feature, intended to visualize brand identity and turn it into reusable compositions, is explicitly marked as in development. The catalog of reusable blocks—transitions, overlays, charts—exists but is early enough that most users will still write raw markup.

The framework also inherits the browser’s limitations. Video elements, which naturally want to play rather than seek, require special handling. Complex canvas-based animations that run their own render loops do not fit the adapter model without modification. The deterministic capture path depends on Chrome DevTools Protocol features that may not behave identically across all operating systems, leaving the heuristic fallback for some local renders.

Perhaps the most honest limitation is that HyperFrames does not generate ideas. It renders what an agent or human codes. If the agent writes dull HTML, the video will be dull. The project lowers the technical barrier between a web page and a TV spot, but it does not replace taste, narrative, or editorial judgment.

The Bigger Picture

HyperFrames arrives at a moment when creative tooling is being re-architected for agents first and humans second. The framework’s development process reflects this priority. HeyGen optimized the authoring model around what Gemini Flash could reliably produce, then ran evaluations across different models, tightening the skills and runtime wherever agents failed. The goal was not to chase the largest model, but to make the system simple enough that a wide range of models could generate usable compositions.

This model-agnostic approach has implications for the AI landscape. If an agent can write a web page, it can now produce product launch videos, animated data visualizations, social clips with kinetic captions, or narrated code walkthroughs. The use cases listed in the documentation—PR explainers, chart races, PDF-to-video explainers—are exactly the kind of repetitive, templated content that organizations currently pay studios or SaaS pipelines to produce. HyperFrames turns that pipeline into a CI job.

The open question is whether the browser will remain the rendering layer for this class of tool. Browsers are heavy, Chrome’s threading model is fundamentally hostile to determinism, and the workarounds are clever but elaborate. A native renderer built for frame-exact output rather than user interactivity could eventually displace the headless-browser approach. For now, HyperFrames wins on ubiquity: every agent already knows HTML, and every machine already runs Chrome.

The tension going forward is between simplicity and expressive power. HTML is approachable, but complex timelines can become unwieldy without the component abstraction that React provides. HyperFrames attempts to bridge that gap with its catalog of installable blocks—shader transitions, social overlays, data charts—essentially creating a modular vocabulary for video without requiring a JavaScript framework. Whether that vocabulary grows rich enough to compete with mature motion-graphics ecosystems will determine if HyperFrames becomes a standard or remains a niche alternative.

Sources

  1. What Is HyperFrames? The HTML-Based Video Renderer ...
  2. AI Video Workflow
  3. HyperFrames — Edit Videos By Vibe-Coding
  4. New 100% Open-Source AI Video Engine for Local Agents!
  5. Make the PERFECT Videos with Claude Code (Full Workflow)
  6. What is HyperFrames? - HeyGen
  7. HTML to Video: How HyperFrames Solved AI ...
  8. I built a fully automated AI video factory. Here's the Make + ...
  9. STOP Using a Video Editor — Hyperframes + Claude AI ...
  10. HyperFrames: The Open-Source Framework That Lets AI ...
  11. Programatic and Skill based Video Creation with Remotion
  12. HyperFrames — OSS framework for AI agents to author ...

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.