view source

heygen/hyperframes

tool

HyperFrames - render HTML and CSS compositions to MP4, WebM, GIF or transparent video with npx; needs Node.js 22.19+ and ffmpeg

HyperFrames turns an HTML file into a video. A composition is plain HTML and CSS with data-* timing attributes and a paused GSAP timeline; the renderer sets the clock for each frame, captures it in headless Chrome, and encodes the frames with ffmpeg. The tap uses it for motion graphics: stat reveals, animated charts, logo stings, lower thirds, kinetic titles, and transparent overlays for real footage. It is Apache-2.0, local rendering needs no account and adds no watermark, and it needs Node.js 22.19 or newer plus ffmpeg. The tool is pre-1.0, so every command pins the exact version; the one verified here is 0.10.1. The CLI sends anonymous usage data (command names, render timings) until you run npx [email protected] telemetry disable; it never sends project names or video content.

Key Commands

CommandDescription
npx [email protected] init <name> --resolution portrait --non-interactive --skip-skills --skip-transcribeScaffold a project (index.html, hyperframes.json); portrait is 1080x1920
npx [email protected] doctorCheck Node.js, ffmpeg, Chrome and optional tools
npx [email protected] lintCheck the project structure and data-* attributes
npx [email protected] checkOpen the project in a browser and report runtime, layout, motion, contrast and safe-zone problems
npx [email protected] snapshot --at 0.5,2,6 --output snapsSave PNG frames at exact times, plus a contact sheet
npx [email protected] render --output out/master.mp4Render MP4 (H.264, looks quality, CRF 16)
npx [email protected] render --quality draft --output out/draft.mp4Faster review render
npx [email protected] render --format webm --output out/overlay.webmTransparent VP9 WebM for browser playback
npx [email protected] render --format mov --output out/overlay.movTransparent ProRes 4444 MOV for video editors
npx [email protected] render --format gif --fps 15 --output out/loop.gifLooping GIF, no audio, 30 fps at most
npx [email protected] render --docker --output out/master.mp4Same render in a pinned Chromium, font set and ffmpeg (needs Docker)

Common Usage

bash
npx [email protected] init video-out/demo/motion --resolution portrait --non-interactive --skip-skills --skip-transcribe
cd video-out/demo/motion
# write index.html and put font files under assets/fonts/, then:
npx [email protected] lint
npx [email protected] check
npx [email protected] snapshot --at 0.5,2,6
npx [email protected] render --output out/master.mp4

Composition rules: every timed element has class="clip", data-start and data-duration in seconds; the root carries data-composition-id, data-width, data-height and data-duration; one paused GSAP timeline is registered as window.__timelines["<composition id>"]; nothing reads the wall clock.

The init scaffold loads GSAP from cdn.jsdelivr.net, so a render needs network access unless the script is vendored into the project.