Overview of the HyperFrames CLI architecture
The HyperFrames CLI is the official command-line interface for creating, validating, previewing, and rendering HTML video compositions under the Apache 2.0 license. Invoked via npx hyperframes without requiring a global binary install, the HyperFrames CLI connects your local HTML/CSS/GSAP project files to headless Chrome and FFmpeg.
Whether a human developer runs commands interactively or an AI coding agent executes them inside an automated build loop, the CLI enforces a predictable four-stage lifecycle: check system binaries, scaffold or inspect HTML markup, lint visual bounds and WCAG contrast, and step frames deterministically into a finished MP4 or WebM file.
Complete HyperFrames CLI subcommand table
Every core workflow maps to a single subcommand. Run npx hyperframes --help at any time to confirm version-specific options installed in your local Node.js cache.
| HyperFrames CLI Command | Primary Purpose | Typical Usage & Behavior |
|---|---|---|
npx hyperframes doctor | Environment diagnostics | Verifies Node.js runtime, Chrome/Chromium executable discovery, and FFmpeg codec support. |
npx hyperframes init <dir> | Project scaffolding | Creates a starter composition folder; supports --example templates such as product-promo. |
npx hyperframes lint | Layout & contrast check | Loads scenes in headless Chrome to detect DOM overflow, clipped text, and low WCAG contrast. |
npx hyperframes check | Composition validation | Validates root data-composition-id metadata, clip timing attributes, and asset paths. |
npx hyperframes preview | Live Studio server | Starts the interactive browser preview studio on http://localhost:3002 with hot reload. |
npx hyperframes render | Deterministic video export | Steps paused timelines frame-by-frame and encodes MP4, WebM, or GIF via FFmpeg. |
npx hyperframes skills update | Agent rule sync | Refreshes local AI coding agent skill instructions to match the current framework version. |
If you are running these commands for the first time, pair this dictionary with our beginner HyperFrames tutorial or generate a starter HTML file visually on the HyperFrames Studio homepage.
Render flags, output formats, and frame-rate rules in the HyperFrames CLI
During local export, the render subcommand in the HyperFrames CLI supports frame rates from 1 to 240 FPS (including rational broadcast rates like 30000/1001) and outputs MP4, MOV, WebM, GIF, PNG image sequences, or HLS streams. Distributed cloud backends such as Lambda and CloudRun enforce narrower limits, commonly 24, 25, 30, or 60 FPS.
# Standard local 1080p MP4 or Apple-ready MOV export
npx hyperframes render --output renders/promo.mp4
# Fast low-overhead draft pass for timing review
npx hyperframes render --quality draft --output renders/preview-draft.mp4
# Custom frame rate (local CLI 1-240 FPS or rational 30000/1001) and WebM output
npx hyperframes render --fps=60 --format webm --output renders/reel.webmRunning a --quality draft pass before full bitrate encoding cuts turnaround time during iterative motion tweaks. In automated Claude HyperFrames sessions, instruct your agent to run npx hyperframes lint first and only invoke npx hyperframes render once layout checks return zero errors.
Local rendering vs cloud upload limits (.hyperframesignore)
Local rendering on your own machine or Docker runner has no project archive size ceiling. By contrast, when packaging a workspace for direct cloud rendering upload, upstream cloud endpoints cap project archives at 200 MB and read a root .hyperframesignore file alongside automatic exclusions for root-level renders/, snapshots/, and node_modules/.
- Verified upstream reference (Dec 2026): All flag behaviors on this page are cross-checked against official
heygen-com/hyperframesCLI, Cloud, and Lambda documentation. - Keep cloud bundles lean: Store compressed WOFF2 fonts and trimmed B-roll clips inside
assets/while writing local exports torenders/so cloud uploads stay well under 200 MB. - Zero license keys in CI: Because the HyperFrames CLI is Apache-2.0 open source, Docker runners execute without login tokens or seat activation keys. Review compute math in HyperFrames pricing or starter markup in HyperFrames templates.