Skip to content
Remotion to HyperFrames

Remotion to HyperFrames Skill

HeyGen's official skill for porting Remotion projects and other video code or footage into HyperFrames, then checking the result frame by frame against the original render.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from heygen-com/hyperframes.

$ npx skills add heygen-com/hyperframes --skill remotion-to-hyperframes

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/remotion-to-hyperframes/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/heygen-com/hyperframes.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/remotion-to-hyperframes ~/.claude/skills/remotion-to-hyperframes

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/remotion-to-hyperframes/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Three import levels: native translation, hosted code, or media clip
  • Linter flags Remotion APIs that cannot translate
  • Remotion API-to-HyperFrames reference map
  • Frame-by-frame diff with SSIM and worst-moment sheets
  • Keeps imports editable in HyperFrames Studio via composition variables
  • Writes TRANSLATION_NOTES.md for anything approximated

Remotion to HyperFrames is the import skill of HeyGen's open-source HyperFrames video framework, which renders HTML, CSS and seekable animation to MP4. It brings existing work in at the highest level it can and records which level it used.

Code that can become HTML plus GSAP, which covers most Remotion projects, is translated natively. A bundled linter flags Remotion patterns that cannot translate (useState, useReducer, effects with dependencies, async calculateMetadata, React UI kits such as MUI or shadcn) and those that are dropped with a note. Scenes become sub-compositions, frame counts become seconds, props become editable composition variables, and reference files map each Remotion API (sequencing, timing, media, transitions, Lottie, fonts) to its equivalent. Browser-drawable code such as canvas, p5.js, Three.js, Lottie or WebGL is hosted and driven by HyperFrames time; anything else (Manim, After Effects, Blender renders) comes in as a media clip.

Verification is built in: npx hyperframes diff scores the port against the original video with SSIM, the worst cell per frame and a sheet of the worst moments, and the agent writes anything that did not translate cleanly to TRANSLATION_NOTES.md. The skill sends HyperFrames a usage event once per run unless you decline when asked.

SKILL.md

The instructions your agent loads, as published by HeyGen.

SKILL.md
name
remotion-to-hyperframes
description
Bring existing video code or footage into HyperFrames and verify it frame by frame against the original - Remotion first, also Motion Canvas, Lottie, Three.js, p5.js, canvas or plain HTML/CSS animation, or renders from Manim, After Effects or Blender. Use to port, convert, migrate or reuse work made with another tool.

Running the CLI: every npx hyperframes <command> here, the beacon included, means node <SKILLS>/hyperframes/scripts/plugin-cli.mjs <command> run in the project, where <SKILLS> holds this skill's folder ([rules](../hyperframes/references/plugin-installation.md)).

Usage note: before the first one, tell the person once: "I'll send HyperFrames a usage note (linked to your account if signed in); say no to skip." Unless they say no, run npx hyperframes events --skill=remotion-to-hyperframes once as this skill starts.

Import into HyperFrames

HyperFrames is the container: its tracks, sub-compositions and variables are editable in Studio whatever runs inside a clip. Bring each part in at the highest level it supports and record which level you used.

LevelForHowEditable in Studio afterwards
Nativecode that can become HTML + GSAP: most Remotion, HTML/CSS/GSAP animation, simple Motion Canvastranslate it, then verify frame by frameevery element; variables, catalog, presets apply
Hostedcode that can draw any requested frame in a browser: canvas, p5.js, Three.js, Lottie, WebGL, other JS animationkeep the code and drive it from HyperFrames timetiming, position, exposed parameters
Mediaanything that outputs video or frames: Manim, After Effects, Blender, PIL, moviepyrender to a file and use it as a clipcut, place, layer; not the pixels inside

Code that depends on wall-clock time, live physics or the network can only come in as media.

Native: translate, then verify
  1. For Remotion, run python3 <SKILL_DIR>/scripts/lint_source.py <source dir> first. Blockers (useState, useReducer, useEffect with dependencies, async calculateMetadata, React UI kits such as MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI) don't translate: host them or refactor them out, never approximate (references/escape-hatch.md). Warnings (@remotion/lambda config, delayRender, useMemo, custom hooks) are dropped and noted.
  2. Translate to the /hyperframes contract: one sub-composition per scene, times in seconds (frame / fps), asset paths root-relative. Each Remotion API's equivalent is in references/api-map.md. Put Remotion's render-page rule * { box-sizing: border-box; } once in the root index.html <style>: without it every bordered or padded element grows by its border and padding.
  3. Keep it editable: the source's props become data-composition-variables bound with data-var-text, data-var-src or var(--id); each Sequence becomes a timed clip or a sub-composition; a reused component becomes one sub-composition mounted several times with data-variable-values.
  4. Compare frame by frame: npx hyperframes diff <original.mp4> . --at <t,…> scores your project against the original at those times without rendering; sample every scene and both sides of every cut. Then render and npx hyperframes diff <original.mp4> <hf.mp4> scores every frame: SSIM, the worst cell of each frame (one late or recoloured element), cuts, and a sheet of the worst moments (thresholds per complexity tier in references/eval.md). Render the Remotion side with Config.setVideoImageFormat("png") and Config.setColorSpace("bt709"), or the diff measures the encoders (about 0.05 SSIM).
  5. Write what didn't translate cleanly (dropped volume ramps, approximated presentations, substituted fonts) to TRANSLATION_NOTES.md.
RemotionRead
Composition, defaultProps, schema, calculateMetadatareferences/parameters.md
Sequence, Series, Loop, AbsoluteFill, Freezereferences/sequencing.md
useCurrentFrame, interpolate, spring, Easing, interpolateColorsreferences/timing.md
Audio, Video, Img, IFrame, staticFile, delayRenderreferences/media.md
TransitionSeries, @remotion/transitionsreferences/transitions.md
@remotion/lottiereferences/lottie.md
@remotion/google-fonts, Font.loadFont, @font-facereferences/fonts.md
What can't be portedreferences/limitations.md

Before hand-building a named visual the source used, search npx hyperframes catalog --query "<the visual, in English>" --json: it ranks the whole registry with nothing installed.

Hosted

Keep the code and let HyperFrames own the clock: it draws the frame for the time it is given. The seek protocol and the built-in adapters for Lottie, Three.js, anime.js, WAAPI and CSS animations are in ../hyperframes/references/runtimes.md. No requestAnimationFrame loop or timer as the time source, seeded randomness only, and data-duration on the root when nothing else defines the length.

Media

<video class="clip" data-has-audio="true" src="assets/x.mp4" ...>, or muted when it is silent. Nothing else is needed.

In the final message, list each imported part with its level, what a person can change in Studio, and how the frame-by-frame comparison came out.

Install

HeyGen's official skill for driving the HyperFrames CLI: scaffold a video project, lint and check compositions, snapshot frames, edit the timeline, preview and render HTML compositions to MP4 locally, in Docker or in the cloud.

Remotion's official skill for exporting a Remotion video: npx remotion render and still, input props, license keys and free-license renders, frame sequences and transparent video output.

Browse all skills →