Miguel Ángel c99cbbe44d fix(studio): a drag behind a refused edit is refused only when it would land on a clip (#8456)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.

* fix(studio): a ripple shift queued behind a refused edit is refused before it writes

The timeline's edit queue now has one owner. It knows when an edit still
pending is refused, and a ripple shift (after a delete or a trim) queued
behind it is refused instead of saving starts that assumed that edit. The
trim ripple's rollback moves clips back by its own shift only. Drags,
single-clip timing and link edits are unchanged.

* fix(studio): a drag queued behind a refused edit is refused only if it would overlap

A drop is where the user put it, so a drag queued behind an edit that is
then refused still saves, unless it would now land on a clip in its lane,
such as the one a refused delete puts back. Then it is refused with the
same "Clips on the same track can't overlap." notice a refused drop
shows, and the clip returns to where it was. The lane overlap check is
shared with the insert-on-drop partner check.

* fix(studio): a trim behind a refused edit follows the drag rule, and both notices show as info

A trim queued behind an edit that is then refused is kept unless it now
overlaps a clip in its lane, the same rule as a drag. A refused drag or
trim shows "Clips on the same track can't overlap." in the same info tone
as a refused drop: the notice's owner now holds its words and its tone.

* fix(studio): a refused edit refuses trims behind it, per project, until every save settles

- A queued save stays tracked until it settles, so a later failure still
  refuses the ripple queued behind it.
- A trim's own resize is refused behind a refused edit too: its start and
  duration were read from the timeline that edit left.
- Each project gets its own queue.
- A refused trim shift reloads the preview, as a refused delete does.

* test(studio): the project-switch case keeps the old project's save pending

* fix(studio): a single-clip SDK timing save waits its turn in the edit queue

The SDK move and resize now run inside the queued edit, with the file-write
fallback in the same entry, so the earlier-refusal check guards both paths
and later edits see these saves.

* test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path

* fix(studio): a single-clip drag behind a refused edit is refused only when it lands on a clip

* fix(studio): a queued timeline edit reads and writes only the project it was queued in

Each edit queue now carries the project it was made for and hands that id to
every queued edit, so the SDK readers, the file writes and the tween rewrite
never follow a project switch that happens while an edit waits.

* test(studio): hold the old project's save from the start in the project-switch case

* revert(studio): leave project isolation of queued edits to its own change

Takes out the per-project queue and the project binding of queued edits.
Main already lets a queued edit follow a project switch, through more
handles than the project id (preview, timeline store, history), so that
fix moves to one change that covers every handle.

* fix(studio): a queued single-clip SDK save reads the project it was made in

Main read the project as the save started, right away; queued, it read it
when its turn came. The move and resize now take the project when the
gesture queues them, for the SDK reader and the tween rewrite.

* fix(studio): a refused edit refuses only later edits of its own project

Each queued edit carries the project it was queued in, and the queue tracks
refusals per project, so a refusal left behind by a project the editor has
moved away from never refuses an edit in the one now open.

* test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target

* fix(studio): a refused drag takes back only its own shift

With Ripple on, a drag behind a refused delete was rolled back to its
rippled start, on top of the clip the delete put back. Both drag rollbacks
now move the clip from where it is by this drag's own shift, the rule the
delete and trim rollbacks follow. The overlap check no longer takes a lane
it never reads.

* test(studio): the drag-overlap test's earlier refused edit belongs to the hook's project

* refactor(studio): track-insert edits live beside the track-insert layout

buildTrackInsertEdits moves unchanged from the drag commit into
timelineDragLanding, next to layoutAfterTrackInsert, whose layout it turns
into edits. Both the drag and the canvas z-order mirror still call it.

* fix(studio): a drag behind a refusal in a project no longer shown is refused

The drag's overlap check reads the timeline on screen. Once the editor shows
another project, that timeline is not the drag's own, so the check could keep
a drag that lands on the clip its refused delete put back. A queue whose
project is not shown now refuses an edit behind a refusal outright, before any
policy reads live state.

* test(studio): the group-drag row carries the policy the move adapter gives it
2026-11-22 10:07:54 +00:00
2026-11-22 01:40:53 +00:00
2026-03-21 22:43:56 -07:00
2026-11-22 01:40:53 +00:00

HyperFrames

Skills downloads GitHub top repository global rank npm version npm downloads License Node.js Discord

The open-source AI video editor: create, edit, remake.

Write HTML. Render video. Built for agents.

Download the app · Quickstart · Showcase · Catalog · Docs · Discord · X · YouTube

HyperFrames Studio, the AI video editor: ask for a launch video, get an editable project, then mark one word and the agent changes just that

HyperFrames is HeyGen's AI video editor for people and agents. Describe a video, bring your own footage, or remake a video you love, and get a real project you can change down to the frame: ask for a bigger title, a faster cut or new captions, and it changes just that.

Underneath, HyperFrames is a free, open-source framework (Apache 2.0) for turning HTML, CSS, JavaScript, media and seekable animations into deterministic MP4 videos. Use it locally with the CLI, from AI coding agents like Claude Code, Codex and Cursor with skills, or as the rendering core behind hosted authoring workflows. No React required.

Three ways to use it

Best for Start
HyperFrames Studio app Anyone, no code. Describe a video or drop in your footage, then edit by typing or pointing. Use the built-in agent on Pro, or your own Claude Code or Codex. Download for Mac, Windows or Linux (free plan)
Your coding agent Claude Code, Codex, Cursor, Gemini CLI and other agents. npx skills add heygen-com/hyperframes
Claude, ChatGPT or Grok (beta) Making a video in a chat, nothing to install. ChatGPT: Business, Enterprise and Edu workspaces. Connect HyperFrames by HeyGen, listed in Claude's connector directory

The HyperFrames Studio app has a free plan. Pro ($25 a month) adds top video, image, voice and music models (HeyGen Video 1, Seedance 2.5, Lyria 3 Pro and more) and 25,000 credits a month.

Made with HyperFrames

Editing a talking-head video by editing its script in HyperFrames Studio
Script-based editing
A creator's own phone footage edited into a finished social video with HyperFrames
Edit your own footage
Animated captions added to a talking-head video with HyperFrames
Captions on your video
A video rebuilt as an editable HyperFrames project, then changed
Remake any video
Product launch video built from a company's website with HyperFrames
Launch video from your website
Faceless YouTube explainer made with HyperFrames
Faceless explainer
Flat cartoon explainer video about the Sun made with HyperFrames
Flat cartoon explainer
Motion graphics built from a real 1969 newspaper front page with HyperFrames
Real-UI motion graphics
3D one-take launch trailer made with HyperFrames
3D one-take trailer
Kinetic 3D typography made with HyperFrames
3D type
A Remotion project with 3D voxels, ported to HyperFrames
Remotion project, ported
Generative motion design made with HyperFrames
Generative motion

Click any clip to watch it with sound.

What you can make

Video How
Branded UGC videos for TikTok and Instagram from your own phone clips: captions, music, text hooks, fast client revisions The Studio app: drop in your footage, then edit by typing or pointing
Video podcast episodes: line up a multi-camera recording, cut to whoever is talking, clean up the sound, add captions The Studio app's podcast edit
Product demos, tutorials, launch videos and feature announcements, from your website or a screen recording Paste your URL into the Studio app, or ask your agent
Explainer and faceless YouTube episodes from your topic, script or voiceover Ask for one; /style-sampling for five proven series styles
Remake a video you love, then make it yours /reverse-any-video
Social videos with kinetic captions, overlays, and music /hyperframes with the catalog
Data visualizations, chart races, and map animations Catalog blocks for charts and maps
PR walkthroughs and changelog videos with animated code diffs, narration, and captions Point your agent at the pull request
Docs-to-video and site-tour explainers Give your agent the document or link
Motion graphics with code instead of After Effects, reusable in automated content pipelines The CLI, cloud render or AWS Lambda
Decks with presenter mode /slideshow
Motion from a Figma file /figma
A Remotion project, ported /remotion-to-hyperframes

By job: AI video editor · animated captions · add text to video · AI motion graphics · HTML to MP4 · Lottie to MP4 · SVG to MP4

Community skills (hyperframes-community-skills, community-maintained, review before use): camera-3d-captions (captions in 3D around a speaker), vox-explainer (collage explainers), p5-paint-animation (handwriting and paint-on), prod-by-claude (live-coded music videos), session-story and day-in-my-life (your agent sessions as films), duo (side-by-side phone memes), x-posting-license (an ID-card video for any X profile).

Quick start for developers

Using Claude Code, Codex, Cursor, or another coding agent? Install the skills once, then ask your agent to make a video.

npx skills add heygen-com/hyperframes     # pick "Core Skills" in the picker
# or, with no picker (scripts, CI):
npx hyperframes skills update

Then try: Using /hyperframes, create a 10-second product intro with a fade-in title, a background video, and subtle background music.

Claude Code plugin

claude plugin marketplace add heygen-com/hyperframes
claude plugin install hyperframes@hyperframes

Codex, Cursor, Gemini CLI, Copilot

See the plugin guide.

By hand, with the CLI

npx hyperframes init my-video
cd my-video
npx hyperframes preview      # live preview in the browser
npx hyperframes render       # render to MP4

Requirements: Node.js 22+ and FFmpeg. Render in the cloud with hyperframes cloud render, or on your own AWS Lambda.

Skill install options, updates and the core set (full details)

Claude Code plugin updates

To enable auto-update for the hyperframes marketplace, run claude in a terminal in your project. In Claude Code's terminal UI, run /plugin, then select Marketplaces → hyperframes → Enable auto-update. Afterward, use /hyperframes:hyperframes. See the plugin guide for Copilot, VS Code, Cursor, Gemini CLI, updates, and migration.

Standalone skills (including OpenCode)

The picker opens with nothing pre-selected — the Core Skills group is all you need; /slideshow, /remotion-to-hyperframes and /figma install on demand. Without the picker (a script or a CI job), npx hyperframes skills update installs exactly the core set, whereas skills add --all installs all 9 published skills. The six repo-internal skills under .claude/skills / .agents/skills are excluded by default. For the full published set use npx hyperframes skills.

skills add resolves the skills.sh registry blob, which can lag main by hours. npx hyperframes skills update installs the skills from the release tag that matches your CLI version, so they match the CLI that runs them.

Run project-local installs from your video project's directory. From a HyperFrames checkout, use npx hyperframes skills update for a global install instead: a project-local installer target can overlap the tracked skills/ source and overwrite uncommitted edits. See contributor setup.

The skills teach agents the HyperFrames production loop: plan the video, write valid HTML, wire seekable animations, add media, lint, preview, and render. They work with Claude Code, Codex, Cursor, Gemini CLI, IBM Bob, and other coding agents that support skills.

Share a video for review

Sign in with npx hyperframes auth login, then run npx hyperframes share to choose who can open the rendered review. Use share --update when edits should become a new version and share --manage for web settings. CLI and Desktop use the same sharing system and five free projects per workspace. Existing legacy published links remain reachable.

Skills

HyperFrames ships 9 skills. Make any video by asking for it; the /hyperframes skill carries the contract and the references (film, captions, overlays, motion, look). Read it first.

The core set below is what npx hyperframes skills update installs and what the picker lists as "Core Skills". Install one skill with npx skills add heygen-com/hyperframes --skill <name>, or all 9 with --all. A non-interactive or agent run of npx skills add without --skill installs all 9. npx hyperframes init adds the core set only when it is missing and never touches a skill you already have; on-demand skills install with npx hyperframes skills update <name>.

Core set

Skill Use when
/hyperframes Read first for any request to make, edit, animate or render a video, motion graphic, captions or overlays with HyperFrames (HTML rendered to video). Holds the render contract and the work loop, and points to the references for format, motion, look, captions, whole films and storyboards.
/hyperframes-cli The HyperFrames CLI by job — scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, share, project history — plus reading its JSON and recovering from build or render failures.
/hyperframes-registry About 450 ready-made blocks and components installed as editable source — transitions, overlays, titles, kinetic type, captions, charts, maps, 3D, camera moves. Use before hand-building any named visual; also for hyperframes add and catalog.
/media-use Get or make any media for a video — music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks — with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull.
/reverse-any-video Rebuilding any video file as an editable HyperFrames project (motion graphics, talking heads, live action, AI-generated footage), checked frame by frame against the original.
/style-sampling Making a new episode on your topic in one of five proven styles: Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime.

On demand

Skill Use when
/figma Bring Figma into a video — rendered assets, brand tokens, components, storyboard frames as reconstructed motion, shaders and connector-assisted motion. Use when you paste a figma.com link.
/slideshow A presentation, pitch deck or interactive deck — discrete slides, fragment reveals, branching, hotspot navigation, presenter mode with speaker notes. Output is a navigable deck, not a rendered MP4.
/remotion-to-hyperframes Bringing existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, other tools' renders), verified frame by frame.

For visual design handoff workflows, see the Claude Design guide and Open Design guide.

More from the community: hyperframes-community-skills.

Frame.md

frame.md — your design system, ready for video.

Every brand has a design.md. None of them were written for a camera. frame.md is the missing translation layer: it takes your web-context design spec and inverts it for the frame — the same tokens, the same rules, but rewritten so an AI agent can compose a promo video without guessing at scale or reaching for web chrome.

The output is a DESIGN.md superset your whole toolchain can read. Atoms stay sacred. Composition stays free. Numbers come from the script.

Biennale Yellow
Biennale Yellow
BlockFrame
BlockFrame
Blue Professional
Blue Professional
Bold Poster
Bold Poster

Browse and remix them all at hyperframes.studio/design.

How It Works

Define a video as HTML. Add data attributes for timing and tracks. Use GSAP, CSS, Lottie, Three.js, Anime.js, WAAPI, or your own frame adapter for seekable animation.

<div id="stage" data-composition-id="launch" data-start="0" data-width="1920" data-height="1080">
  <video
    class="clip"
    data-start="0"
    data-duration="6"
    data-track-index="0"
    src="intro.mp4"
    muted
    playsinline
  ></video>

  <h1 id="title" class="clip" data-start="1" data-duration="4" data-track-index="1">Launch day</h1>

  <audio
    data-start="0"
    data-duration="6"
    data-track-index="2"
    data-volume="0.5"
    src="music.wav"
  ></audio>

  <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>

Preview instantly in the browser. Render locally or in Docker. The renderer seeks each frame in headless Chrome and encodes the result with FFmpeg, so the same input produces the same video.

Why HyperFrames?

  • HTML-native: make videos programmatically with HTML, CSS and JavaScript; compositions are HTML files with data attributes. No React requirement, no proprietary timeline format.
  • Agent-friendly: agents already write HTML, and the CLI is non-interactive by default.
  • Deterministic: same input, same frames, same output. Built for CI, regression tests, and automated rendering.
  • No build step: an index.html composition plays as-is and can be previewed directly in the browser.
  • Adapter-based animation: bring GSAP, CSS animations, Lottie, Three.js, Anime.js, WAAPI, or a custom runtime.
  • Open source: Apache 2.0 license, with no per-render fees or commercial-use thresholds.

HyperFrames vs Remotion

HyperFrames is inspired by Remotion. Both tools render video with headless Chrome and FFmpeg. The main difference is the authoring model: Remotion's bet is React components; HyperFrames' bet is plain HTML that humans and agents can both write easily.

HyperFrames Remotion
Authoring HTML + CSS + seekable animation React components
Build step None; index.html plays as-is Bundler required
Agent handoff Plain HTML files JSX / React project
Library-clock animations Seekable, frame-accurate via adapters Wall-clock animation patterns need care
Distributed rendering Local and AWS Lambda render paths Remotion Lambda, mature cloud renderer
License Apache 2.0 Source-available Remotion License

Read the full comparison in the HyperFrames vs Remotion guide, or the side-by-side comparison page.

Catalog

Install ready-to-use blocks and components:

npx hyperframes add flash-through-white   # shader transition
npx hyperframes add instagram-follow      # social overlay
npx hyperframes add data-chart            # animated chart

Browse the catalog at hyperframes.heygen.com/catalog.

HyperFrames Stack

HyperFrames is the open-source rendering engine, plus a growing set of tools around HTML-native video creation.

Piece Status What it does
CLI Available Scaffold, preview, lint, inspect, and render local video projects
Core / Engine / Producer Available Parse compositions, drive headless Chrome, encode video, and mix audio
Catalog Available Reusable blocks and components for transitions, overlays, captions, charts, maps, and effects
Agent skills Available Teach coding agents the video-production patterns that generic web docs miss
Browser editor (hyperframes preview) Available, evolving Preview and edit compositions in the browser: canvas, timeline, keyframes
AWS Lambda rendering Available Deploy a distributed render stack and drive renders from your laptop or CI
hyperframes.studio Available The HyperFrames Studio app for Mac, Windows and Linux, plans and community
frame.md Available Invert your design system for the camera — a DESIGN.md superset an agent can compose video from

Packages

Package Description
hyperframes CLI for creating, previewing, linting, and rendering compositions
@hyperframes/core Types, parsers, generators, linter, runtime, and frame adapters
@hyperframes/engine Seekable page-to-video capture engine using Puppeteer and FFmpeg
@hyperframes/producer Full rendering pipeline for capture, encode, and audio mix
@hyperframes/studio Browser-based composition editor UI
@hyperframes/player Embeddable <hyperframes-player> web component
@hyperframes/shader-transitions WebGL shader transitions for compositions
@hyperframes/aws-lambda AWS Lambda SDK and deployment surface for distributed renders

Documentation

Full documentation: hyperframes.heygen.com/introduction

Community

HyperFrames is used in production at HeyGen, with community examples from teams like tldraw, TanStack, and others in ADOPTERS.md. Open a PR if your team is using HyperFrames.

Star History Chart

Development Note

The repo uses Git LFS for golden regression-test baselines under packages/producer/tests/**/output.mp4 (about 240 MB of .mp4 files). If you're cloning the full repo for development, install Git LFS first:

# macOS
brew install git-lfs

# Ubuntu / Debian
sudo apt install git-lfs

# Windows
winget install GitHub.GitLFS

# Then, once per machine
git lfs install

If you only need source files, you can skip LFS content:

GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/heygen-com/hyperframes.git

License

Apache 2.0

S
Description
Write HTML. Render video. Built for agents.
Readme
782 MiB
Languages
JavaScript 54%
TypeScript 45.8%