Loading...
Loading...
Translate a Remotion (React-based) video composition into a HyperFrames HTML composition. Use when (1) the user provides Remotion source (`.tsx` files using `useCurrentFrame`, `Sequence`, `AbsoluteFill`, `interpolate`, `spring`, `staticFile`, etc.) and asks to port, convert, or migrate it to HyperFrames; (2) the user pastes a Remotion entry point (`Root.tsx`, `Composition`) and wants HTML; (3) the user links a Remotion repo and asks for the HyperFrames equivalent; (4) the user says "port my Remotion project", "translate this Remotion code", "rewrite as HTML", or "I have a Remotion comp, make it HyperFrames". Skill detects unsupported patterns (useState, useEffect with side effects, async calculateMetadata, third-party React component libraries, `@remotion/lambda` features) and recommends the runtime interop escape hatch instead of attempting a lossy translation.
npx skill4agent add heygen-com/hyperframes remotion-to-hyperframesscripts/lint_source.pyuseStateuseReduceruseEffectuseLayoutEffectcalculateMetadata@remotion/lambdadelayRenderuseCallbackuseMemostaticFileinterpolateColorsreferences/escape-hatch.mdTRANSLATION_NOTES.md@remotion/lambdarenderMediaOnLambda(...)references/api-map.md| Source contains | Load reference |
|---|---|
| |
| |
| |
| |
| |
| |
| |
index.html<div id="stage">data-composition-iddata-start="0"data-durationdata-fpsdata-widthdata-heightdata-*data-startdata-durationdata-track-index<style>from<script>gsap.timeline({paused: true})useCurrentFrame()window.__timelines["<composition-id>"] = tl;parameters.mddata-*references/eval.md# Render Remotion baseline (after npm install in the fixture)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4
# Render HF translation
cd ../hf-src && npx hyperframes render --output ../hf.mp4
# SSIM diff
../../scripts/render_diff.sh ./remotion-src/out/baseline.mp4 ./hf.mp4 ./diffp05eval.mdscripts/frame_strip.shConfig.setVideoImageFormat("png")Config.setColorSpace("bt709")remotion.config.tsTRANSLATION_NOTES.mdreferences/limitations.mduseStateuseEffect@remotion/lambdareferences/escape-hatch.md./assets/test-corpus/run.sh| Tier | Composition shape | Mean SSIM | Threshold |
|---|---|---|---|
| T1 | single-element fade-in | 0.974 | 0.95 |
| T2 | multi-scene + spring + audio + image | 0.985 | 0.95 |
| T3 | data-driven, custom subcomponents, count-up | 0.953 | 0.90 |
| T4 | escape-hatch (8 lint cases) | 8/8 pass | n/a |