Editing a video usually means opening an editor with a timeline, dragging clips around and tweaking keyframes by hand. HyperFrames flips that around: the video is an HTML page. Scenes are elements with data-* attributes, motion is a GSAP timeline, and the CLI renders that page frame by frame until it has an MP4.
Since it’s all code, Claude Code can write it. You describe the edit the way you’d ask an editor (“cut the silences”, “big captions at the bottom center”, “a three-second title card”), Claude builds the composition, you review it in the browser and export it. This guide walks through that whole loop, based on the official documentation.
What you need before you start
- Node.js 22 or newer. On an older version the CLI answers with
node_version_unsupported. - FFmpeg, to encode the video. The CLI finds Chrome or downloads it on its own.
- Claude Code, signed in.
brew install ffmpeg
npx hyperframes doctor # checks Node, FFmpeg and Chromedoctor is also the first command worth running whenever something stops working.
Installing the skills in Claude Code
This is the step that makes everything else work. HyperFrames has a strict contract (which attributes each element carries, how timelines are registered, what you can’t do during a render) and Claude doesn’t know it out of the box. The skills teach it. The CLAUDE.md every project generates puts it bluntly: compositions written without them break.
The recommended route is the plugin:
claude plugin marketplace add heygen-com/hyperframes
claude plugin install hyperframes@hyperframes
claude plugin details hyperframes # should list hyperframes, hyperframes-cli and media-useThen open a new session or run /reload-plugins. If you want it to update itself: /plugin → Marketplaces → hyperframes → Enable auto-update.
If you’d rather not use plugins, the skills can also be installed standalone in ~/.claude/skills:
npx skills add heygen-com/hyperframes # pick "Core Skills"
npx hyperframes skills checkPick one of the two methods and don’t mix them in the same agent. The name depends on which one you use: with the plugin the skill is invoked as /hyperframes:hyperframes; with standalone skills, as /hyperframes.
Creating the project from your recording
npx hyperframes init my-video --video recording.mp4 --non-interactiveWith --video the CLI brings your recording into the project (converted to H.264 MP4, unless you pass --keep-original), transcribes it with Whisper and leaves per-word timings ready for captions. --non-interactive skips the wizard’s questions, which helps when the one running the command is the agent.
If your recording isn’t in English, add --language with its code (es, ja, …). Without it, the CLI transcribes with a Whisper model that only knows English, and other languages come out wrong: in a test with Spanish audio, “prueba de transcripción” turned into “pueva de transcription”. With --language es it switches to the multilingual model and the sentence comes out right.
Other variants:
npx hyperframes init my-videofor an empty project.--resolution portraitfor vertical video. Without this flag, the canvas takes your video’s shape.--skip-transcribeif you don’t need the transcript.
The project ends up like this:
| File | What it’s for |
|---|---|
index.html | The main composition and its root timeline. |
recording.mp4 | Your video, now inside the project. |
transcript.json | The transcript with per-word timings, if the video had audio. |
CLAUDE.md / AGENTS.md | Instructions for the agent: which skill to load, commands and warnings. |
package.json | dev, check, render and publish scripts, with the CLI version pinned. |
hyperframes.json | The project’s configuration. |
As the edit grows, scenes get split into files inside compositions/ and referenced from index.html with data-composition-src.
That CLAUDE.md is the nicest touch: the project is born ready for an agent to work in it.
The editing loop
Open Claude Code inside the project
cd my-video
claudeClaude reads CLAUDE.md on startup, so it already knows the commands and knows it has to load the skill before touching the composition.
Ask for the edit
Name the skill at the start and ask for the result in editing terms: cuts, titles, captions, music, pacing.
Using /hyperframes:hyperframes, edit recording.mp4: remove silences longer than one second, add big word-by-word captions at the bottom center and a 3-second title card with the product name. No music.
It doesn’t have to start from a recording. It works from scratch too:
Using /hyperframes:hyperframes, make a 10-second intro for https://example.com with the site’s logo and colors.
For music, voiceover or generated images, Claude turns to the media-use skill, which ships in the same package.
Tweaks go in the same conversation, because Claude keeps the context of what it already built:
The title comes in too fast; give it half a second more and switch the captions to a heavier typeface.
Watch the result in Studio
Studio is HyperFrames’ editor in the browser, and it reloads live whenever index.html or a sub-composition changes. Ask Claude to start it in the background:
npx hyperframes preview --background # http://localhost:3002
npx hyperframes preview --status
npx hyperframes preview --stop # when the review is doneThe --background part matters. If the agent runs npm run dev in the foreground, the process dies with its session and the browser is left on ERR_CONNECTION_TIMED_OUT. npm run dev is for when you’re the one running it.
In Studio you can drag clips on the timeline to move or lengthen them. With ⌘K you describe a change and Studio copies the request, ready to paste into Claude. Preview and render use the same runtime, so what you see is what gets exported.
Review before rendering
The check
check is the gate before every render. In a single pass it runs lint, validation in a real browser, layout, motion and WCAG AA contrast. Errors (✗) always get fixed; warnings (⚠) get reviewed.
npm run check # = npx hyperframes check
npx hyperframes lint --verbose # structure only, no browser; includes minor findings
npx hyperframes check --strict # warnings fail too
npx hyperframes check --safe-zone reels # social media safe zonesFrames of what changed
A green check doesn’t tell you how the video looks. That’s what snapshots are for: PNGs of the seconds you want to review.
npx hyperframes snapshot --at 1,3,5
npx hyperframes snapshot --range 8,12 --frames 6
npx hyperframes snapshot --review # start and middle of each scene, plus a strip per cutThe images land in .hyperframes/artifacts/snapshots/, and Claude can open them and comment on them before answering you. It’s worth always looking at three moments of whatever was edited: the first frame, the state in motion and the end.
Delivering
Render
Use draft while you iterate, and for the final version looks (the default, CRF 16) or delivery. Without --output, the file goes to renders/ with the date and time.
npx hyperframes render --quality draft --output review.mp4
npx hyperframes render --output final.mp4
npx hyperframes render --fps 60 --quality delivery --output final-60.mp4The flags you’ll use most:
| Flag | Values | Notes |
|---|---|---|
-q, --quality | draft · looks · standard · delivery | looks by default. high is the same as delivery. |
-f, --fps | 24, 30, 60… or 30000/1001 | Defaults to the composition’s data-fps, else 30. |
--format | mp4 · webm · mov · gif · png-sequence · hls | webm and mov keep transparency. |
-c, --composition | path to a scene | Renders only that sub-composition. |
--docker | Pins the Chromium version, the fonts and the FFmpeg encoder, for reproducible renders. |
Sending it for review
If someone else needs to see the video, you don’t have to send them the MP4. share renders it, uploads it to HyperFrames and gives you back a link:
npx hyperframes share --public # first time: anyone with the link can see it
npx hyperframes share --update # renders again and adds a new version to the same link
npx hyperframes share --status # where it stands, without rendering or uploading anythingThe first time you have to choose who sees it: --public, --private, or --team and --invite-only (those two need a paid plan). After that, --update keeps the same link, so whoever reviews always sees the latest version. By default it uploads only the video; with --include-source it also uploads the project so the other person can edit it.
There’s also publish (npm run publish), which uploads the whole project to a stable hyperframes.studio URL. It’s the older method: it still works, but the documentation recommends share for new reviews.
The rules the skill enforces
You don’t have to write them yourself, but knowing them helps you understand the check’s errors and review what Claude delivers:
data-startanddata-durationmark when each element appears and how long it lasts. For video, audio and images the duration is optional: it takes the file’s own (or 3 seconds, for an image).data-startaccepts seconds or relative references like"intro + 0.5".class="clip"gives each scene its full-frame box and is what the editor uses to recognize it as a clip. If it’s missing, lint warns withtimed_element_missing_clip_class.- One root GSAP timeline per composition, created with
{ paused: true }and registered onwindow.__timelinesunder the same id as itsdata-composition-id. HyperFrames moves the playhead, not the browser. - Determinism. No
Date.now(), unseededMath.random(),requestAnimationFrame, system timers or network requests mid-render: every frame has to come out the same on every render. - Audio is declared. A
<video>carriesdata-has-audio="true"if it has sound, ormutedif it’s b-roll. Music and voice go in a separate<audio>, with anid. - No imperative control. Don’t call
play()orpause()or setcurrentTimefrom a script: the runtime decides what plays on each frame. To trim the start of a clip there’sdata-media-start, and for volume,data-volume.
The determinism rule is the one that explains almost everything else. The render doesn’t play the page the way a browser would: it jumps to each frame and takes a picture of it. Anything that depends on the real clock, randomness or the network breaks that equation.
If something fails
| Symptom | What to do |
|---|---|
| The render won’t start | npx hyperframes doctor, then lint and check. Copy the first exact error and paste it to Claude. |
Claude doesn’t recognize /hyperframes | Check with claude plugin details hyperframes or npx hyperframes skills check and open a new session. |
| The preview stopped responding | npx hyperframes preview --status; if nothing is running, start it again with --background. |
| You edited in the desktop app | Run npx hyperframes catch-up before the next change with Claude so it sees what changed. |
| The pinned CLI version fell behind | npx hyperframes@latest upgrade --project . --check, then again without --check to rewrite the versions. |
The flags in this guide match CLI v0.9.67. If something changed, npx hyperframes <command> --help is the source that wins.
In short
The loop fits in four verbs: prepare (requirements, skills, init), edit (ask Claude and watch in Studio), review (check and snapshot) and deliver (render, plus share if someone else reviews it). What changes compared to a traditional editor is that the edit is described instead of done by hand, and the result is code you can read, version and render again whenever you want.