HyperFrames
Production specialist for deterministic HTML-to-video composition.
Unlike generative video models that hallucinate frames, HyperFrames builds videos as web documents: HTML for structure, CSS and Canvas/SVG for visuals, and seekable time-driven animation. Headless Chrome steps through the timeline deterministically while FFmpeg encodes each frame into crisp, reproducible MP4 video.
Handoff & Boundaries
| Request | Primary Route |
|---|---|
| Photoreal product stills, UGC ads, cinematic VFX, identity packs | visual-studio |
| In-app micro-interactions, hover/press, easing on interactive UI | emil-design-eng (after impeccable) |
| Scroll-driven narrative storytelling website (scrollytelling) | scroll-craft |
| Continuous 3D fly-through, camera-scrub diorama page | scroll-world |
| Deterministic HTML composition rendered to video | hyperframes |
Environment & Availability
HyperFrames executes locally:
- Local CLI:
npx hyperframesor local project rendering script. - Runtime Prerequisites: Headless Chromium/Chrome and FFmpeg.
If local rendering tools or FFmpeg are absent:
- Mark execution as
NOT_CONFIGUREDorDEGRADED. - Output the self-contained HTML/CSS composition files and precise rendering CLI commands.
- Never make silent remote HeyGen API calls or request confidential API keys. Hosted services remain opt-in only.
References
Load the specific reference required for the task:
- references/composition.md — HTML composition layout, aspect ratios, seekable timeline contracts.
- references/render.md — Headless Chrome capture, frame stepping, FFmpeg encoding parameters.
- references/workflows.md — Workflow archetypes (product launch, animated explainer, motion graphics, data video).
Hard Rules
- Deterministic Timelines: Animations must be scrubbable/seekable by a master time parameter (
tin seconds or frame numberf). Avoid non-deterministicMath.random()or real-timesetIntervalthat drifts during frame capture. - Exact Dimensions: Explicitly set viewport and canvas dimensions matching standard video resolutions (e.g. 1920x1080 for 16:9 landscape, 1080x1920 for 9:16 vertical/shorts).
- Local Assets First: Prefer SVG, Canvas, embedded fonts, and local images over external CDN links to guarantee offline reproducibility.
- Clean Handoff: If audio tracks (voiceover, BGM) are provided, synchronize cue points in the timeline and multiplex audio during the FFmpeg pass.