hyperframes-cli
Original:🇺🇸 English
Translated
Use when the user mentions "hyperframes", wants to preview a composition in the studio, render to MP4/WebM, scaffold a new video project, lint or validate a composition, or troubleshoot rendering. Also use after finishing a composition with compose-video — lint and preview are the natural next steps.
162.6kinstalls
Sourceheygen-com/hyperframes
Added on
NPX Install
npx skill4agent add heygen-com/hyperframes hyperframes-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →HyperFrames CLI
The CLI turns HTML compositions into previews and rendered video. Everything runs through .
npx hyperframesbash
npx hyperframes <command>Requires Node.js >= 22 and FFmpeg. Run if anything fails.
npx hyperframes doctorWorkflow
The natural sequence when building a composition:
- Scaffold — (new projects only)
npx hyperframes init my-video - Write — author HTML composition (see skill)
compose-video - Lint — to catch structural errors
npx hyperframes lint - Preview — to see it live in the studio
npx hyperframes preview - Render — to export video
npx hyperframes render
Lint before preview. It catches missing , overlapping tracks on the same , unregistered timelines, and other structural issues that silently produce broken output. A 2-second lint saves minutes debugging a blank screen. Both and auto-lint, but linting explicitly after editing gives you a chance to fix issues without waiting for the server or renderer to spin up.
data-composition-iddata-track-indexpreviewrenderScaffolding New Projects
bash
npx hyperframes init my-video # interactive wizard
npx hyperframes init my-video --template warm-grain # pick a template
npx hyperframes init my-video --video clip.mp4 # with video file
npx hyperframes init my-video --audio track.mp3 # with audio file
npx hyperframes init my-video --non-interactive # skip prompts (CI/agents)Templates: , , , , , , , , .
blankwarm-grainplay-modeswiss-gridvignellidecision-treekinetic-typeproduct-promonyt-graphinitLinting
bash
npx hyperframes lint # current directory
npx hyperframes lint ./my-project # specific project
npx hyperframes lint --verbose # include info-level findings
npx hyperframes lint --json # machine-readable output for scriptingLints and all files in . Reports errors (must fix), warnings (should fix), and info (with ).
index.htmlcompositions/--verboseWhen to lint:
- After writing or editing any composition file — always
- Before rendering — blocks on errors with
render, but linting first is faster--strict - After timing changes — overlapping clips on the same track are a common mistake
Previewing in the Studio
bash
npx hyperframes preview # serve current directory
npx hyperframes preview ./my-project # specific project
npx hyperframes preview --port 4567 # custom port (default 3002)Opens the studio in your browser automatically. Hot-reloads on file changes. Run from the project root (directory containing ).
index.htmlRendering to Video
bash
npx hyperframes render # standard MP4
npx hyperframes render --output final.mp4 # named output
npx hyperframes render --quality draft # fast iteration
npx hyperframes render --fps 60 --quality high -o hd.mp4 # high quality
npx hyperframes render --format webm -o overlay.webm # transparent WebM
npx hyperframes render --docker -o deterministic.mp4 # reproducible| Flag | Options | Default | Notes |
|---|---|---|---|
| path | renders/name_timestamp.mp4 | Output file path |
| 24, 30, 60 | 30 | 60fps doubles render time |
| draft, standard, high | standard | Use draft while iterating |
| mp4, webm | mp4 | WebM supports transparency |
| 1-8 or auto | auto (half CPU cores, max 4) | Each spawns a Chrome process |
| flag | off | Byte-identical output across machines |
| flag | off | GPU-accelerated encoding |
| flag | off | Fail on lint errors |
| flag | off | Fail on errors AND warnings |
Quality guidance:
- while iterating on timing and layout — fast feedback
draft - for review and most deliverables
standard - only for final delivery where render time doesn't matter
high
Troubleshooting
bash
npx hyperframes doctor # check environment (Chrome, FFmpeg, Node, memory, disk)
npx hyperframes browser # manage bundled Chrome installation
npx hyperframes info # version and environment details
npx hyperframes upgrade # check for updatesRun first if rendering fails or produces unexpected results. Common issues:
doctor- Missing FFmpeg →
brew install ffmpeg - Missing Chrome →
npx hyperframes browser ensure - Low memory → close other apps (each render worker uses ~256MB)
Other Commands
bash
npx hyperframes compositions # list compositions in current project
npx hyperframes docs # open documentation in browser
npx hyperframes benchmark . # benchmark render performance