HyperFrames tutorial: HTML to MP4 with an AI agent
Make your first HyperFrames video: set up the project, write a composition in HTML with GSAP, check it, render an MP4, and hand the work to an agent.
- For
- Developers and agents new to HyperFrames
- Written for
- Claude CodeCodexCursorGitHub CopilotGemini CLIOpenCodeAny agent that reads SKILL.md folders
- Time
- 4 min read · updated Oct 26, 2026
The short answer
- Install Node.js 22 or newer and FFmpeg, then run
npx hyperframes init my-video. - Write the video in
index.html: each element getsdata-start,data-durationanddata-track-index, and a paused GSAP timeline moves it. - Run
npx hyperframes check, thennpx hyperframes renderto get an MP4. An agent can do all of this for you.
HyperFrames is an open-source framework from HeyGen that turns HTML, CSS and animations into video. You build a page the size of the frame, say when each element is on screen, and the renderer steps through time in a headless Chrome and encodes the frames with FFmpeg. It is released under Apache 2.0.
This tutorial makes a five-second title card. We ran every command here with HyperFrames 0.8.192.
Step 1: set up
- Node.js 22 or newer (
node -vto check) - FFmpeg on your
PATH(brew install ffmpeg,winget install ffmpegorapt install ffmpeg) - Chrome comes with the first render. If a render says Chrome is missing, run
npx hyperframes browser ensure.
The project holds an index.html, a hyperframes.json and a package.json with dev, check and render scripts. init also writes CLAUDE.md and AGENTS.md, so an agent you start in the folder knows how the project works.
Step 2: write the composition
Replace index.html with this. The root element sets the frame and the length. Every child with the clip class says when it appears (data-start), how long it stays (data-duration) and its row in the timeline (data-track-index). Times are in seconds.
- The timeline is created paused and registered on
window.__timelinesunder the composition’s id. HyperFrames seeks it to each frame’s time, so the video never depends on how fast your machine is. - GSAP is one option. The README also lists CSS animations, the Web Animations API, Lottie, three.js and Anime.js.
- The title is on screen at 0 seconds and only slides into place.
checkwarns when the first frame is empty, because social players use it as the thumbnail.
Step 3: preview and check
preview opens the project in your browser with live reload. check lints the file, plays it in headless Chrome, and reports layout problems, text that fails contrast and craft issues such as the empty first frame. Fix what it finds before you render.
To look at single moments, save stills: npx hyperframes snapshot --at 0.3,1.6,4 -o snapshots writes a PNG for each time.
Step 4: render
Our run wrote a five-second 1920×1080 H.264 MP4 at 30 frames a second. Some options worth knowing:
--quality draftfor quick checks,deliveryfor the final file.--fps 60for smoother motion. Without it, the root’sdata-fpsis used, or 30.--format webmor--format movfor video with transparency, and--format giffor a short loop.--resolution portraitfor 1080×1920, if your layout is built for it.
Fonts and audio
HyperFrames bundles some font families, and npx hyperframes docs compositions lists them. For any other font, add an @font-face that points at a file in the project, so every render uses the same one.
Sound is an <audio> element on the timeline, with the same data-start, data-duration and data-track-index, plus data-volume. The renderer mixes it into the MP4. Use only music you have a license for.
Hand it to an agent
Because a composition is plain HTML, any coding agent can write one. There are two ways to give it the know-how:
- HyperFrames’ own skills.
npx hyperframes skills updateinstalls them for Claude Code, Codex, Cursor, Gemini CLI and other agents. Then ask, for example, “Using /hyperframes, create a 15-second intro about our launch.” - A Lookbk video skill. It adds a finished design on top: a template, a brief your agent fills in, scripts that check it, and a version of HyperFrames pinned so the result doesn’t change under you.
Kinetic Title Drop is free. How to make videos with Claude Code walks through a first render with it, and the Launch Films series builds full launch videos from your real screens.
Common problems
The render hangs, or shows a still frame, with an error about GSAP
Chrome couldn’t load GSAP from
cdn.jsdelivr.net. Runnpm i gsap@3.14.2, copynode_modules/gsap/dist/gsap.min.jsintoassets/vendor/, and point the<script src>at it.checkreports text out of the frame or overlappingShorten the text or make it smaller. The frame is a fixed size, so long words don’t wrap the way they would on a web page.
Motion looks jerky in the MP4 but fine in the browser
Something moves on real time instead of the timeline, such as a
setIntervalor your ownrequestAnimationFrameloop. Drive it from the paused timeline.
Common questions
- Is HyperFrames free?
- Yes. It is open source under Apache 2.0, which allows commercial use. There are no per-render fees: it renders on your machine.
- Do I need to know React?
- No. A composition is an HTML file with CSS and a script. That is the main difference from Remotion; see HyperFrames vs Remotion.
- Which version should I use?
- The newest when you start. Once a project works, keep it on that version, as the scripts in Lookbk’s skills do with
npx --yes hyperframes@0.8.192, so a later release can’t change the result.
Sources
What this guide says about other companies’ tools comes from their own documentation, checked on Oct 26, 2026.
Did this guide help?
Read next
All guidesHow to make videos with Claude Code
Three ways to make MP4 videos with Claude Code: Remotion’s skills, HyperFrames, or a ready-made video skill. Setup, a first render and fixes.
HyperFrames vs Remotion for agent-made video
Two ways to turn code into video. How they differ, and why the license matters if you sell or share what you build on them.
Remotion alternatives for agent-made video (2026)
HyperFrames, Motion Canvas, Revideo and a browser plus FFmpeg, compared with Remotion: what your agent writes, the license, and when to stay put.
Make a product launch video with an AI agent
How agents make launch films from HTML, then a walkthrough from brief to MP4: pick a skill, capture real screens, approve a storyboard, fit a track, render.
See a skill’s result before you install it.
Every skill page shows what it makes, what it needs and which agents can run it.


