HyperFrames CLI
Everything in a HyperFrames project routes through npx hyperframes. This
skill is the operator's manual — when the user asks to "preview", "render",
"add a transition", or when something breaks, run the right command.
Command map
| Command |
When to use |
npx hyperframes init |
Start a new composition. Prompts for template (Tailwind, blank, etc.) |
npx hyperframes init --tailwind |
Skip the prompt and scaffold with Tailwind (recommended default) |
npx hyperframes preview |
Live preview in the browser with hot reload |
npx hyperframes lint |
Validate timing, schema, missing assets |
npx hyperframes inspect |
Print the parsed scene graph — use when timing looks off |
npx hyperframes render |
Render the composition. Defaults: 1920x1080, 30fps, MP4 |
npx hyperframes render --format gif |
GIF output (smaller, lower quality) |
npx hyperframes render --format webm |
WebM output (transparent backgrounds supported) |
npx hyperframes render --width 1080 --height 1920 |
Vertical for Reels / TikTok / Shorts |
npx hyperframes add <block> |
Install a registry block (e.g., lower-third, glitch-transition) |
npx hyperframes doctor |
Check the environment (browser, ffmpeg, node) |
npx hyperframes browser |
Reinstall the Playwright browser used for rendering |
npx hyperframes info |
Print version + environment summary |
npx hyperframes upgrade |
Update to the latest version |
If a flag is uncertain, run npx hyperframes <command> --help first.
Standard workflow
- Scaffold —
npx hyperframes init (or --tailwind)
- Compose — edit the HTML in
src/
- Preview —
npx hyperframes preview in one terminal; edit + save in
another. Hot reload is fast.
- Lint —
npx hyperframes lint before every render. Catches the 90%
of bugs preview misses (timing overlaps, missing assets, schema drift).
- Render —
npx hyperframes render
When things break
- Render fails / blank output →
npx hyperframes doctor. Usually a
missing browser binary or ffmpeg.
- Stale preview / changes not appearing → restart
preview, clear
browser cache.
- Schema errors →
npx hyperframes inspect shows what the parser is
actually seeing. Compare against the source.
- "Browser not found" →
npx hyperframes browser reinstalls it.
- Version mismatch with a tutorial →
npx hyperframes info then
npx hyperframes upgrade if you're behind.
Registry blocks
npx hyperframes add pulls pre-built blocks (captions, lower thirds,
transitions, VFX, text effects) into the project. Browse what's available
with npx hyperframes add --list. After adding a block, the project
imports it automatically — no manual wiring.
Good defaults to suggest:
lower-third-clean — overlay names/titles
caption-bouncy — subtitle/caption styling
transition-fade — smooth scene-to-scene fade
transition-glitch — kinetic, modern cut
text-effect-typewriter — character-by-character reveal
Notes
- Don't edit the rendered output directly — always edit the source HTML
and re-render.
- Commit the source, not the MP4. Rendering is deterministic; the artifact
rebuilds.
- If the user is using Tailwind, the project already includes the CDN
build — no separate Tailwind config needed for most cases.
1---2name: hyperframes-cli3description: HyperFrames CLI dev loop — use `npx hyperframes` for scaffolding (init), validation (lint, inspect), preview, render, and environment troubleshooting (doctor, browser, info, upgrade). Use when working in or alongside a HyperFrames project and the user asks to scaffold, preview, render, lint, install a registry block, or diagnose a broken environment.4---56# HyperFrames CLI78Everything in a HyperFrames project routes through `npx hyperframes`. This9skill is the operator's manual — when the user asks to "preview", "render",10"add a transition", or when something breaks, run the right command.1112## Command map1314| Command | When to use |15| --- | --- |16| `npx hyperframes init` | Start a new composition. Prompts for template (Tailwind, blank, etc.) |17| `npx hyperframes init --tailwind` | Skip the prompt and scaffold with Tailwind (recommended default) |18| `npx hyperframes preview` | Live preview in the browser with hot reload |19| `npx hyperframes lint` | Validate timing, schema, missing assets |20| `npx hyperframes inspect` | Print the parsed scene graph — use when timing looks off |21| `npx hyperframes render` | Render the composition. Defaults: 1920x1080, 30fps, MP4 |22| `npx hyperframes render --format gif` | GIF output (smaller, lower quality) |23| `npx hyperframes render --format webm` | WebM output (transparent backgrounds supported) |24| `npx hyperframes render --width 1080 --height 1920` | Vertical for Reels / TikTok / Shorts |25| `npx hyperframes add <block>` | Install a registry block (e.g., `lower-third`, `glitch-transition`) |26| `npx hyperframes doctor` | Check the environment (browser, ffmpeg, node) |27| `npx hyperframes browser` | Reinstall the Playwright browser used for rendering |28| `npx hyperframes info` | Print version + environment summary |29| `npx hyperframes upgrade` | Update to the latest version |3031If a flag is uncertain, run `npx hyperframes <command> --help` first.3233## Standard workflow34351. **Scaffold** — `npx hyperframes init` (or `--tailwind`)362. **Compose** — edit the HTML in `src/`373. **Preview** — `npx hyperframes preview` in one terminal; edit + save in38 another. Hot reload is fast.394. **Lint** — `npx hyperframes lint` before every render. Catches the 90%40 of bugs preview misses (timing overlaps, missing assets, schema drift).415. **Render** — `npx hyperframes render`4243## When things break4445- **Render fails / blank output** → `npx hyperframes doctor`. Usually a46 missing browser binary or ffmpeg.47- **Stale preview / changes not appearing** → restart `preview`, clear48 browser cache.49- **Schema errors** → `npx hyperframes inspect` shows what the parser is50 actually seeing. Compare against the source.51- **"Browser not found"** → `npx hyperframes browser` reinstalls it.52- **Version mismatch with a tutorial** → `npx hyperframes info` then53 `npx hyperframes upgrade` if you're behind.5455## Registry blocks5657`npx hyperframes add` pulls pre-built blocks (captions, lower thirds,58transitions, VFX, text effects) into the project. Browse what's available59with `npx hyperframes add --list`. After adding a block, the project60imports it automatically — no manual wiring.6162Good defaults to suggest:63- `lower-third-clean` — overlay names/titles64- `caption-bouncy` — subtitle/caption styling65- `transition-fade` — smooth scene-to-scene fade66- `transition-glitch` — kinetic, modern cut67- `text-effect-typewriter` — character-by-character reveal6869## Notes7071- Don't edit the rendered output directly — always edit the source HTML72 and re-render.73- Commit the source, not the MP4. Rendering is deterministic; the artifact74 rebuilds.75- If the user is using Tailwind, the project already includes the CDN76 build — no separate Tailwind config needed for most cases.