Files
wehub-resource-sync 85453da49f
regression / regression-shards (style-16-prod style-9-prod style-17-prod iframe-render-compat variables-prod mp4-h265-sdr, shard-4) (push) Has been cancelled
regression / regression-shards (style-4-prod style-11-prod style-2-prod animejs-adapter typegpu-adapter parallel-capture-regression, shard-5) (push) Has been cancelled
regression / regression-shards (style-7-prod style-8-prod style-10-prod css-spinner-render-compat webm-transparency mp4-h264-sdr webm-vp9, shard-3) (push) Has been cancelled
regression / regression-shards (sub-composition-video style-18-prod raf-ball-render-compat font-variant-numeric sub-comp-t0 sub-comp-id-selector, shard-7) (push) Has been cancelled
Windows render verification / Detect changes (push) Has been cancelled
Windows render verification / Preflight (lint + format) (push) Has been cancelled
Windows render verification / Render on windows-latest (push) Has been cancelled
Windows render verification / Tests on windows-latest (push) Has been cancelled
CI / Detect changes (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Fallow audit (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Producer: integration tests (push) Has been cancelled
CI / Producer: unit tests (push) Has been cancelled
CI / File size check (push) Has been cancelled
CI / Test: skills (push) Has been cancelled
CI / Skills: manifest in sync (push) Has been cancelled
CI / CLI: npx shim (macos-latest) (push) Has been cancelled
CI / CLI: npx shim (ubuntu-latest) (push) Has been cancelled
CI / CLI: npx shim (windows-latest) (push) Has been cancelled
CI / SDK: unit + contract + smoke (push) Has been cancelled
CI / Test: runtime contract (push) Has been cancelled
CI / Studio: load smoke (push) Has been cancelled
CI / Smoke: global install (push) Has been cancelled
CI / CLI smoke (required) (push) Has been cancelled
CI / Semantic PR title (push) Has been cancelled
Player perf / Detect changes (push) Has been cancelled
Player perf / Preflight (lint + format) (push) Has been cancelled
Player perf / player-perf (push) Has been cancelled
Player perf / Perf: drift (push) Has been cancelled
Player perf / Perf: fps (push) Has been cancelled
Player perf / Perf: parity (push) Has been cancelled
Player perf / Perf: scrub (push) Has been cancelled
Player perf / Perf: load (push) Has been cancelled
preview-regression / Detect changes (push) Has been cancelled
preview-regression / Preflight (lint + format) (push) Has been cancelled
preview-regression / Preview parity (push) Has been cancelled
preview-regression / preview-regression (push) Has been cancelled
regression / regression (push) Has been cancelled
regression / Detect changes (push) Has been cancelled
regression / Preflight (lint + format) (push) Has been cancelled
regression / regression-shards (hdr-regression style-5-prod style-3-prod mov-prores, shard-1) (push) Has been cancelled
regression / regression-shards (overlay-montage-prod style-12-prod chat missing-host-comp-id png-sequence portrait-edge-bleed, shard-6) (push) Has been cancelled
regression / regression-shards (style-13-prod style-6-prod vignelli-stacking gsap-letters-render-compat audio-mux-parity, shard-8) (push) Has been cancelled
regression / regression-shards (style-15-prod hdr-hlg-regression style-1-prod many-cuts vfr-screen-recording render-symlinked-assets, shard-2) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docs / Validate docs (push) Has been cancelled
Sync skills to ClawHub / Publish changed skills (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:58:35 +08:00

12 KiB

Remotion → HyperFrames API Map

Authoritative translation table. Load this reference when starting a translation to know the high-level mapping; load the per-topic references for fragile details (timing, transitions, etc.).

Reading this table

  • drop = remove from output entirely. The HF runtime handles it.
  • see references/X.md = the mapping is non-trivial; read the linked file.
  • refuse + interop = the skill bows out and recommends the runtime adapter pattern from PR #214.

Composition root

Remotion HyperFrames
<Composition id durationInFrames fps width height> root <div id="stage" data-composition-id data-start="0" data-duration="<dur/fps>" data-fps data-width data-height>
defaultProps={...} data-* attributes on #stage (one per scalar prop). Nested objects/arrays — see parameters.md
schema={z.object(...)} not represented in HTML; the schema lives in the agent's translation step only
calculateMetadata (sync) resolve at translation time, write concrete values into data-*
calculateMetadata (async) refuse + interop — see escape-hatch.md
registerRoot(RemotionRoot) drop
<AbsoluteFill style> <div style="position:absolute;inset:0;{style}">

Sequencing

See sequencing.md for nesting and stagger details.

Remotion HyperFrames
<Sequence from={F} durationInFrames={D}> <div data-start="<F/fps>" data-duration="<D/fps>" data-track-index="N">
<Series> + <Series.Sequence> siblings with sequential data-start values
<Loop durationInFrames={D}> not a primitive — emit a custom GSAP repeat: -1 loop with manual offset math
<Freeze frame={F}> drop the wrapper; HF doesn't have running animation outside the seek-driven timeline so freeze is a no-op

Timing

See timing.md — this is the highest-leverage section.

Remotion HyperFrames
useCurrentFrame() drop — HF seeks the timeline. The math derived from frame becomes an animatable property of a paused GSAP tween.
useVideoConfig() for fps / durationInFrames drop — read from data-fps / data-duration on #stage
interpolate(frame, [a,b], [x,y]) (linear) gsap.fromTo(t, {p:x}, {p:y, duration:(b-a)/fps, ease:"none"}) at offset a/fps
interpolate(frame, [a,b,c,d], [x,y,y,z]) (multi-segment) three gsap.to calls at offsets a/fps, b/fps, c/fps
interpolate(..., {easing: Easing.bezier}) GSAP CustomEase.create("c", "M0,0 C${a},${b} ${c},${d} 1,1")
spring({frame, fps, config: {damping, stiffness, mass}}) GSAP back.out(N) — see timing.md for damping → overshoot table
interpolateColors(frame, range, colors) gsap.to({...}, { backgroundColor, color, duration, ease }) — GSAP handles color tweens natively
Easing.in / .out / .inOut(power) GSAP power<N>.in / power<N>.out / power<N>.inOut

Media

See media.md for trim, volume ramps, and decoder notes.

Remotion HyperFrames
<Audio src volume> <audio data-start data-duration data-track-index data-volume src>
<Audio playbackRate startFrom endAt> data-playback-rate, data-trim-start, data-trim-end
<Video src> <video muted playsinline data-start data-duration data-track-index src>
<OffthreadVideo> <video> — HF doesn't need the off-thread variant (uses headless Chrome)
<Img src> <img>
<IFrame src> <iframe> — HF auto-falls back to screenshot mode for nested iframes
staticFile("x.png") "assets/x.png" — copy the file into hf-src/assets/ next to index.html
delayRender() / continueRender() drop — HF waits on asset readiness via the Frame Adapter pattern

Transitions

See transitions.md.

Remotion HyperFrames
<TransitionSeries> + <TransitionSeries.Transition presentation={fade()} /> manual gsap.to(scene, {opacity: 0/1, duration}) crossfade at the boundary
slide(), wipe(), clockWipe(), fade() HF shader-transitions package presets — pick the closest
linearTiming({durationInFrames}) duration in seconds (/fps)
springTiming({config}) duration in seconds, ease back.out — see timing.md

Lottie

See lottie.md.

Remotion HyperFrames
<Lottie animationData={data}> <div id="lottie-N"> + <script>const anim = lottie.loadAnimation({...}); window.__hfLottie.push(anim)</script>
loop / playbackRate props translate only after checking player seek behavior; HF adapter seeks absolute time via goToAndStop
@remotion/lottie runtime lottie-web from CDN — drop the React wrapper

Fonts

See fonts.md.

Remotion HyperFrames
loadFont() from @remotion/google-fonts/<Family> @font-face rule referencing the Google Fonts CSS, OR <link> to Google Fonts in <head>
Local font via @font-face same — paste the rule into <style>
System font fallback document the font-fallback divergence cost (see eval.md)

Parameters

See parameters.md.

Remotion HyperFrames
z.object({foo: z.string()}) data-foo on #stage (the schema is implicit in HTML structure)
nested array prop (stats[]) repeated HTML markup with per-instance data-* attrs
Zod default values bake defaults into the HTML directly
Zod runtime validation not represented; if validation matters, validate in the translation step before emitting HTML

React patterns

Remotion HyperFrames
Custom React subcomponent (pure, prop-driven) inline as repeated HTML using the prop interface as the template
useState driving animation refuse + interop
useReducer driving animation refuse + interop
useEffect(fn, [deps]) (non-empty deps) refuse + interop
useEffect(fn, []) (mount-once side effect) drop the effect; use queueMicrotask if startup work is needed
useCallback, useMemo drop the wrappers — decorative
Custom hook (pure derivation of useCurrentFrame) inline the body
Custom hook with state/effects refuse + interop

Distributed rendering

@remotion/lambda and @remotion/cloudrun are deployment configuration — orthogonal to the rendered composition itself. The skill emits these as warnings (not blockers) and drops them in step 3 (Generate) with a note in TRANSLATION_NOTES.md. HF is single-machine today; document the gap.

Remotion HyperFrames
@remotion/lambda import drop the import (warning r2hf/lambda-import)
renderMediaOnLambda(...) drop the call; note in TRANSLATION_NOTES.md
@remotion/cloudrun drop the import + call; note in TRANSLATION_NOTES.md

When to bow out entirely

If any blocker pattern is present, recommend the runtime interop pattern from PR #214 instead of attempting translation. See escape-hatch.md.

The blockers are documented in scripts/lint_source.py and tested by tier-4-escape-hatch.