Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
docs(prompting): validated chart example, add duration-with-no-tail rewrite
Vance Ingalls87843f29103e
diff --git a/docs/prompting/anatomy.mdx b/docs/prompting/anatomy.mdxindex a3c18e4324..451e4ee3a1 100644--- a/docs/prompting/anatomy.mdx+++ b/docs/prompting/anatomy.mdx@@ -60,6 +60,10 @@ The fixes that come up most, as before/after pairs — each exists because of ho- ❌ `then everything holds motionless to the end`- ✅ `then everything settles into a gentle ambient idle (breathing scale, slow drift)`+**A duration with no tail.** The subtler version of the same mistake: state a runtime longer than the beats you describe and the leftover seconds become a dead hold by default. Validating this guide's chart example turned up a 12-second ask carrying about five seconds of described content — the builder had to invent the remaining seven. Either shorten the ask to the content, or say what the tail does.+- ❌ `12-second video. [five seconds of beats]`+- ✅ `12-second video. [beats] … then hold ~5s on the finished chart with the leader pulsing once and a slow ambient drift`+**Simultaneity collisions.** Two things "at 4s" overlap for a few frames; the renderer does exactly what you wrote.- ❌ `at 4s the counter fades out and READY stamps in`- ✅ `the counter fades out fully by 4.2s; at 4.2s READY stamps in`diff --git a/docs/prompting/data-and-maps.mdx b/docs/prompting/data-and-maps.mdxindex eaf83b4023..9fd4962a56 100644--- a/docs/prompting/data-and-maps.mdx+++ b/docs/prompting/data-and-maps.mdx@@ -22,6 +22,9 @@ Feed data inline or as a file. Small series go straight in the prompt; a CSV get> ```> Use the `data-chart` registry block. No audio.+<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/chart-languages.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*Rendered from the prompt above, unedited — labels count up while the next bar is already growing.*+> /motion-graphics 10-second 1920x1080 video, dark slate background. Title "Top languages 2026" top-left. Five horizontal bars (Python, TypeScript, Rust, Go, Java) grow from zero with staggered starts, overtaking each other twice mid-animation; each bar has a right-edge value label counting up to its final %. End state holds 2s with the leader pulsing once. Hand-draw everything — no chart library. No audio.**State the block *or* opt out of it — don't leave it implicit.** "Animate this data" without a decision drifts between a generic block and an improvised layout.