Limited offerMonthly $29 $8.71/mo · 70% off for as long as you stay subscribedMonthly $29 $8.71/moEnds in Get the deal

Answers 4 min read

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 clip class, positioned in time with data attributes such as data-start, data-duration and data-track-index.
  • The canvas: the root element carries data-composition-id, data-width and data-height.
  • Audio: ordinary <audio> elements with a data-volume attribute.
  • Motion: usually a GSAP timeline, created paused and registered on window.__timelines so 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/hyperframes adds HyperFrames’ skills, which teach the agent how to write compositions.
  • Claude Code plugin: claude plugin marketplace add heygen-com/hyperframes, then claude plugin install hyperframes@hyperframes.
  • A new project: npx hyperframes init my-video creates a starting folder.
  • Preview and render: npx hyperframes preview to watch it, npx hyperframes render for 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:

HyperFramesRemotion
Scene written inHTML, CSS, JavaScript (often GSAP)React components
Build stepNone; the file plays in a browserA React project
TimingData attributes plus a paused timelineFrame number read inside components
LicenceApache-2.0See 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

Try it on your own video.

Every effect prompt is free. Pick one, paste it into Claude Code and render your first edit.

Free download

Get the .md file

Enter your email and the download starts right away.

We use your email for this download and, if you tick the box, for updates. See our privacy policy.

Welcome to AI Creator Library

Sign up and make videos and designs with Claude.

Monthly $8.71/mo · 70% off while you stay

or

Free to join. No card, no password.

Pick a plan

Unlock the whole library

Checkout takes a minute, and you are signed in right after it.

Monthly

$29$8.71 / month

70% off for as long as you stay subscribed. Join by Nov 24; applied at checkout.

  • 5 skills or prompts a day
  • All AI Video Edit styles, Motion Graphics, Social Media posts, Faceless Shorts and Creator Concepts
  • Use it inside Claude (MCP)
  • New additions included
Start monthly

Already a member?