All skills
heygen-com avatar

/remotion-to-hyperframes

@ff6e210
by HeyGenheygen-com/hyperframes55k stars
4,998

Port an existing Remotion (React) composition's source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

Use this Skill: https://skilld.dev/gh/heygen-com/hyperframes/remotion-to-hyperframes

This session only. Nothing lands on disk.

referenceslimitations.md

≈1.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Translation limitations

What the skill explicitly cannot translate, separated from the blocker-list (which is enforced by lint_source.py). These are known gaps — surface them to the user as translation notes when translating the surrounding composition.

React patterns the skill refuses

See escape-hatch.md. Any of these triggers a bow-out:

  • useState, useReducer driving animation
  • useEffect / useLayoutEffect with non-empty deps (side effects)
  • async calculateMetadata
  • Third-party React UI libraries (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI)

@remotion/lambda is no longer in this list — it's a warning, not a blocker, because Lambda config is orthogonal to composition rendering. The skill drops the imports and renderMediaOnLambda(...) calls and writes a TRANSLATION_NOTES.md entry. See escape-hatch.md.

Patterns that work with caveats

Volume ramps on <Audio>

Remotion accepts a function for volume:

<Audio src={...} volume={(f) => interpolate(f, [0, 30], [0, 1])} />

HF ramps volume with a data-automation volume lane on the <audio> (form in hyperframes-core/references/creator-editing-recipes.md). Translation: write the lane from the interpolate points, OR bake the ramp into the audio file with ffmpeg afade. The dropped-ramp path produces audibly different output but visually-identical video, so SSIM passes — just flag it.

<Loop> with stateful children

<Loop durationInFrames={30}>
  <CounterThatIncrementsViaUseRef />
</Loop>

A bounded GSAP repeat can reproduce visual repetition when its finite count is derived from the visible duration. If the looped child has cross-iteration state (a counter, a randomness seed), HF won't reproduce it identically per iteration. Bow out unless the child is fully deterministic per-iteration; never use repeat: -1.

Remotion's <Img> with crossOrigin

<Img src="https://other-domain.com/x.png" crossOrigin="anonymous" />

HF's renderer doesn't enforce CORS the same way Remotion does. Most public images work; private images served with auth headers won't. If the source uses crossOrigin="use-credentials", the asset needs to be downloaded and inlined at translation time.

Custom presentation in <TransitionSeries>

const customPresentation: PresentationComponent = ({ children, presentationProgress }) => {
  return <div style={{ filter: `blur(${(1 - presentationProgress) * 20}px)` }}>{children}</div>;
};

Pure presentations (transform/filter/opacity computed from progress) translate to GSAP tweens cleanly. Presentations that read useCurrentFrame() internally or have stateful children don't — bow out.

Code-split components (React.lazy)

const HeavyChart = React.lazy(() => import("./HeavyChart"));

React.lazy is async and doesn't fit the deterministic-render model. Translate to a regular import; the resulting HF composition will just include all the code upfront.

Patterns that always work

  • <AbsoluteFill> and <Sequence> (any nesting)
  • useCurrentFrame() derivations: interpolate, spring, Easing, interpolateColors, manual math
  • <Audio>, <Video>, <Img>, <IFrame> with simple props
  • staticFile() references
  • Custom React subcomponents that are pure functions of props
  • Custom hooks that are pure derivations of useCurrentFrame
  • @remotion/lottie (translates to HF's Lottie adapter)
  • @remotion/google-fonts/<Family> (translates to <link> or @font-face)
  • Sync calculateMetadata (resolved at translation time)
  • <TransitionSeries> with built-in presentations (fade, slide, wipe, clockWipe, flip, iris)

What the skill never tries to translate

These are out-of-scope by design:

  • HDR rendering — HF supports HDR but Remotion doesn't, so there's nothing to translate from.
  • Variable frame rate — both tools assume constant fps.
  • Multi-composition <Composition> lists — translate one at a time. The skill prompts the user to choose which composition.
  • Remotion Studio props panel — visual prop editing in HF Studio needs different infrastructure; out of scope.

Reporting gaps to the user

When translation produces something but the something has gaps, write a TRANSLATION_NOTES.md next to the output:

# Translation notes

The following Remotion patterns were translated with caveats:

- `<Audio volume={(f) => ...}>` (line 15): volume ramp written as a
  `data-automation` volume lane (see `creator-editing-recipes.md`); the
  ffmpeg `afade` bake-in is the alternative.
- `<HeavyChart>` (line 30): translated as inline HTML. The original
  React.lazy boundary was dropped — bundle size unchanged because HF
  serves a single HTML file.

If any of these caveats matter, consider the runtime interop pattern
instead.

This file is also generated by the skill alongside the HF output, not held in the corpus.

Source: SKILL.md on GitHub

1 warning3d3 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    The skill is a specialized tool for migrating Remotion video compositions to HyperFrames HTML. It includes a security-conscious linter that identifies and blocks non-deterministic or side-effect-heavy React patterns (like useState or side-effects in useEffect) from being translated. It uses standard industry tools (ffmpeg, npm) and official vendor resources from trusted and well-known services.

  • Socket3d

    No alerts

  • Snyk3d

    Risk: MEDIUM · 1 issue

Signed by skilld at ff6e210. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 17 hours ago.

Activeupdated 4 days ago

README badge

README badge for heygen-com/hyperframes/remotion-to-hyperframes