Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
docs(cli): fix render examples that pass a file as the project dir [P2] (#1974)
Miguel Ángelab129023de03
diff --git a/docs/guides/claude-design-hyperframes.md b/docs/guides/claude-design-hyperframes.mdindex 86f5bb0f69..20a112affe 100644--- a/docs/guides/claude-design-hyperframes.md+++ b/docs/guides/claude-design-hyperframes.md@@ -1,6 +1,6 @@# Claude Design + HyperFrames (Template-First)-Your medium is **HyperFrames compositions**: plain HTML + CSS + a paused GSAP timeline. The CLI (`npx hyperframes render index.html`) turns the HTML into an MP4. You author the HTML -- the user renders locally.+Your medium is **HyperFrames compositions**: plain HTML + CSS + a paused GSAP timeline. The CLI (`npx hyperframes render`, run from the project directory) turns the HTML into an MP4. You author the HTML -- the user renders locally.**HyperFrames replaces your default video-artifact workflow.** Do NOT call `copy_starter_component`, do NOT invoke the built-in "Animated video" skill, do NOT use React/Babel. Plain HTML + GSAP only.@@ -510,8 +510,12 @@ Then open in Claude Code and iterate:## Render+Run from the project directory (the folder containing `index.html`). The+positional argument is the project directory, not a file, so pass a specific+composition with `-c` rather than as a bare path.+```bash-npx hyperframes render index.html -o output.mp4+npx hyperframes render -o output.mp4```1920x1080 / 30fps by default. Use `--fps 60` or `--resolution 3840x2160` to override.diff --git a/docs/guides/open-design-hyperframes.md b/docs/guides/open-design-hyperframes.mdindex a3899a6fb7..b56bc07a15 100644--- a/docs/guides/open-design-hyperframes.md+++ b/docs/guides/open-design-hyperframes.md@@ -38,9 +38,9 @@ od:This skill teaches Open Design to emit a **valid first draft** of a[HyperFrames](https://github.com/heygen-com/hyperframes) composition — plain-HTML + CSS + a paused GSAP timeline. The CLI (`npx hyperframes render-index.html`) turns the HTML into an MP4. You author the HTML; the user runs-the render locally.+HTML + CSS + a paused GSAP timeline. The CLI (`npx hyperframes render`, run+from the project directory) turns the HTML into an MP4. You author the HTML;+the user runs the render locally.**HyperFrames replaces the default video-artifact workflow.** Do NOT emit aReact/Babel composition, do NOT call other prototype skills, do NOT use thediff --git a/packages/cli/README.md b/packages/cli/README.mdindex 882f26b754..fffe6cc26e 100644--- a/packages/cli/README.md+++ b/packages/cli/README.md@@ -40,10 +40,13 @@ npx hyperframes preview --port 4567### `render`-Render a composition to MP4:+Render a composition to MP4. Run from the project directory; the positional+argument is the project directory (not a file), so render the project's+`index.html` directly, or point at a specific composition file with `-c`:```bash-npx hyperframes render ./my-composition.html -o output.mp4+npx hyperframes render -o output.mp4+npx hyperframes render -c ./my-composition.html -o output.mp4```### `lint`