What Is HyperFrames, and How Do You Use It with Claude Code?
HyperFrames is an open-source framework from HeyGen that turns HTML into video. An AI agent such as Claude Code writes the scene as HTML, CSS and JavaScript, usually with GSAP for animation, and HyperFrames renders it frame by frame in headless Chrome, then encodes an MP4 with FFmpeg. It installs into Claude Code as skills or as a plugin.
HTML as a video format
Video models generate pixels. HyperFrames takes the other path: the video is written as a web page, and a renderer turns the page into frames. The project’s tagline puts it in one line: write HTML, render video, built for agents.
That suits a coding agent like Claude Code, because writing HTML, CSS and JavaScript is something it already does well. Text on screen stays sharp, brand colours are exact, and a change is an edit to a file instead of a new generation that may come out different. Run the same file twice and you get the same frames.
HyperFrames is published by HeyGen on GitHub under the Apache-2.0 licence, and its README says it is used in production at HeyGen. The details below come from that README and the project’s documentation as of October 24, 2026.
How a composition is written
A HyperFrames composition is an HTML file. There is no build step, so the same index.html also plays directly in a browser.
- Clips: elements with the
clipclass, positioned in time with data attributes such asdata-start,data-durationanddata-track-index. - The canvas: the root element carries
data-composition-id,data-widthanddata-height. - Audio: ordinary
<audio>elements with adata-volumeattribute. - Motion: usually a GSAP timeline, created paused and registered on
window.__timelinesso the renderer can move it to any exact moment. The README also lists adapters for CSS animation, Lottie, Three.js, Anime.js and the Web Animations API.
Because the timeline is paused and controlled from outside, the renderer can ask for frame 1, frame 2, frame 3 and so on, in order, no matter how long each one takes to draw.
How it renders
HyperFrames opens the composition in headless Chrome through Puppeteer, seeks to each frame, captures it, and encodes the frames with FFmpeg into an MP4. The documentation stresses the practical result: it requests every exact frame instead of recording live playback, so a slow machine does not drop frames from the finished file.
This is the same family of technique explained in how AI renders motion graphics: the animation is code, time is a number the renderer controls, and ffmpeg joins the frames.
Installing it in Claude Code
You need Node.js 22 or newer and FFmpeg. The README lists these routes:
- Skills:
npx skills add heygen-com/hyperframesadds HyperFrames’ skills, which teach the agent how to write compositions. - Claude Code plugin:
claude plugin marketplace add heygen-com/hyperframes, thenclaude plugin install hyperframes@hyperframes. - A new project:
npx hyperframes init my-videocreates a starting folder. - Preview and render:
npx hyperframes previewto watch it,npx hyperframes renderfor the MP4.
Once the skills are installed, you describe the video to Claude Code in plain words and it writes the composition. If you have not used skills before, this guide covers where they live and how Claude Code picks one.
A first request to try
Start small, so you can see each part working before you ask for a full film. In a new folder, after installing the skills, ask Claude Code something like this:
Make a 6-second 1080x1920 title card with HyperFrames. Black background, the words “Launch day” in large white type sliding up from the bottom, then a thin line drawing under it. Render it to an MP4.
Then check three things. Open the composition in a browser and confirm it plays. Watch the MP4 and confirm the motion is smooth and the type is sharp. Ask Claude Code to change one detail, such as the line colour, and confirm only that detail changed. Once those work, build up: add your logo, a second scene, a voiceover track. Small steps make it easy to tell whether a problem comes from the request, the composition or the render.
HyperFrames and Remotion
Remotion has been the common choice for code-made video. Its docs describe a video as a function of images over time, written as React components that read the current frame number. Both projects render frame by frame in a headless browser and encode with FFmpeg. They differ in how you write a scene:
| HyperFrames | Remotion | |
|---|---|---|
| Scene written in | HTML, CSS, JavaScript (often GSAP) | React components |
| Build step | None; the file plays in a browser | A React project |
| Timing | Data attributes plus a paused timeline | Frame number read inside components |
| Licence | Apache-2.0 | See Remotion’s own licence terms |
If your agent already works in a React codebase, Remotion slots in, and our Claude Code and Remotion guide covers that path. If you want the lightest setup, one HTML file that you can also open and watch in a browser, HyperFrames is closer to that.
Where it fits for creators
HyperFrames is a motion-graphics tool. It shines at title cards, product films, animated charts, kinetic type and UI walkthroughs. It is not a replacement for editing a filmed talking-head video: transcribing, cutting pauses and timing captions to your words are separate jobs, and a Claude Code editing skill or a timeline editor handles them.
The 25 motion design prompts in this library use the same idea. Each prompt has Claude write a 10-second product film as a single HTML file that plays in the browser, and includes a render script that turns it into an MP4 with Chrome and ffmpeg. The difference is the starting point: a prompt gives Claude a finished scene-by-scene design to build, where a framework gives it the tools and leaves the design to your request.
Where this falls short
- HyperFrames makes motion graphics from code. It does not cut, caption or clean up a filmed talking-head recording on its own.
- HTML compositions are text, so long scenes with many layers can be slow to render on an older laptop.
- It is young and moves fast. Commands and attributes in this article reflect the project's README on October 24, 2026 and may change.
Questions
What is HyperFrames?
HyperFrames is an open-source framework from HeyGen that renders HTML, CSS and JavaScript animations to MP4. It is built for AI agents: the agent writes the composition as a web page, and HyperFrames captures every frame in a headless browser and encodes the video with FFmpeg.
How do I install HyperFrames in Claude Code?
The project's README lists two routes: npx skills add heygen-com/hyperframes to add its skills, or the Claude Code plugin marketplace with claude plugin marketplace add heygen-com/hyperframes and then claude plugin install hyperframes@hyperframes. You also need Node.js 22 or newer and FFmpeg.
Is HyperFrames better than Remotion?
They solve the same problem in different languages. Remotion describes a video as React components that read the current frame. HyperFrames uses plain HTML with data attributes and GSAP, with no build step. If your agent already writes React, Remotion fits; if you want a single HTML file that also plays in a browser, HyperFrames fits.
Can HyperFrames edit my filmed video?
It can place your clip inside a composition and animate graphics around it, but it is not an editor for raw footage. Cutting pauses, transcribing and captioning a talking-head recording are separate steps, usually done with a transcription model and ffmpeg.
Read next
Sources (5)
- hyperframes — GitHub — HeyGen. Accessed October 24, 2026.
- What is HyperFrames? — HyperFrames docs — HeyGen. Accessed October 24, 2026.
- The core idea — Remotion. Accessed October 24, 2026.
- Extend Claude with skills — Anthropic — Claude Code docs. Accessed October 24, 2026.
- FFmpeg Documentation — FFmpeg. Accessed October 24, 2026.