Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
docs: remove the Reference Project — nobody wants to be sent to GitHub
ukimsanovb5509602fa9f
diff --git a/docs/developers/index.mdx b/docs/developers/index.mdxindex 247fa2bf48..ad6cad33b7 100644--- a/docs/developers/index.mdx+++ b/docs/developers/index.mdx@@ -28,8 +28,7 @@ cd my-videonpx hyperframes preview```-The project is ordinary HTML. The Reference Project used in the beginner path-starts with this real composition root:+The project is ordinary HTML. A composition starts with this root:```html<div@@ -48,8 +47,6 @@ starts with this real composition root:The project template supplies the composition root, viewport, and duration.HTML and CSS control what appears; `data-*` attributes control when it appears.-You can [inspect the complete project](https://github.com/heygen-com/hyperframes/tree/main/examples/docs-reference-project)-before choosing an integration surface.When the project is ready:```bashdiff --git a/docs/examples.mdx b/docs/examples.mdxindex a27ef4a3c7..1e4f058806 100644--- a/docs/examples.mdx+++ b/docs/examples.mdx@@ -113,32 +113,6 @@ A PR, a Figma file, a design brief — turned into a finished film.</a></div>-## One project, open end to end--This is the same small project used in the Quickstart. Its request, brief,-source, revision notes, checks, and final render are all public.--```text-Using /hyperframes, make a 10-second product intro for https://example.com.-```--<CardGroup cols={2}>- <Card title="Brief" icon="clipboard-list" href="https://github.com/heygen-com/hyperframes/blob/main/examples/docs-reference-project/BRIEF.md">- What the agent decided before building anything.- </Card>- <Card title="Source" icon="folder-open" href="https://github.com/heygen-com/hyperframes/tree/main/examples/docs-reference-project">- Every editable project file, exactly as it renders.- </Card>- <Card title="Revision" icon="pen-to-square" href="https://github.com/heygen-com/hyperframes/blob/main/examples/docs-reference-project/VERIFICATION.md#2-v1--v2">- What changed between the first and second cut, and why.- </Card>- <Card title="Checks" icon="circle-check" href="https://github.com/heygen-com/hyperframes/blob/main/examples/docs-reference-project/VERIFICATION.md">- The real gate output: lint, check, contrast, and the final render.- </Card>-</CardGroup>--The result is not a sealed demo. Open any stage above and use the same shape for-your own project: request → brief → source → revision → render.## Start from a templatediff --git a/docs/go-further.mdx b/docs/go-further.mdxindex 9722f11fe3..741587a45d 100644--- a/docs/go-further.mdx+++ b/docs/go-further.mdx@@ -18,11 +18,6 @@ import { DocsVideo } from "/snippets/docs-video.jsx";The project does not change format as you gain control. Your agent, Studio, theSDK, the Player, and the renderer all work from the same HTML project.-The [Reference Project](https://github.com/heygen-com/hyperframes/tree/main/examples/docs-reference-project)-continues the first-video example. Its first version is a real page capture on a-10-second timeline. The revised version keeps that source and adds editable-variables, narration, fixed captions, music, and sound.-## Choose by the size of the changeUse the agent for changes to the story or several scenes. Use Studio for thediff --git a/docs/studio/index.mdx b/docs/studio/index.mdxindex e1fdf2c6cd..c1848a1869 100644--- a/docs/studio/index.mdx+++ b/docs/studio/index.mdx@@ -15,8 +15,7 @@ import { DocsVideo } from "/snippets/docs-video.jsx";</div>Studio is the visual editor for the same HTML project your agent and the CLI-use. The Reference Project from the first-video guide opens here without an-import or conversion. Open any project folder, then run:+use. Any HyperFrames project opens here without an import or conversion. Open any project folder, then run:```bashnpx hyperframes previewdiff --git a/examples/docs-reference-project/.gitignore b/examples/docs-reference-project/.gitignoredeleted file mode 100644index c41ed53646..0000000000--- a/examples/docs-reference-project/.gitignore+++ /dev/null@@ -1,8 +0,0 @@-.work/-.hyperframes/-.transcode-cache/-node_modules/-renders/-capture/-live/-snapshots/diff --git a/examples/docs-reference-project/BRIEF.md b/examples/docs-reference-project/BRIEF.mddeleted file mode 100644index 844c7ce79b..0000000000--- a/examples/docs-reference-project/BRIEF.md+++ /dev/null@@ -1,88 +0,0 @@-----workflow: product-launch-video-flow: automation-storyboard: no-message: "example.com is the domain you are allowed to use in documentation examples."-audience: "Someone meeting the domain for the first time — usually a developer writing docs."-destination: "Docs page hero — embedded, 16:9"-aspect: "16:9"-format: 1920x1080-length: "10s"-language: en-angle: "Show it as it is. The real captured page is the proof; the copy is the page's own language."-voice: "River (ElevenLabs, SAz9YHcvj6GT2YYXdXww) — calm, unhurried, low-key confidence"-music: "gentle warm piano bed, quiet under the narration"-captions: "phrase-level, fixed lower band, one group at a time"-style_preset: "derived from the live capture (no preset remix — the site's own three tokens are the palette)"------# Brief — a 10-second product intro for example.com--## Intent--One request: _Using `/hyperframes`, make a 10-second product intro for-`https://example.com`._--The intent layer confirmed source, length and aspect, then asked the only thing the-request did not settle — **sell it, or show it as it is.** Answer: show it. So the-site's own captured page is the hero asset, and every word on screen is the page's own-language rather than marketing written over it.--## The factual source--`https://example.com` is a two-sentence page. Captured 2026-08-03 with-`npx hyperframes capture`:--| Element | Verbatim text |-| ------- | ----------------------------------------------------------------------------------------------------- |-| `<h1>` | Example Domain |-| `<p>` | This domain is for use in documentation examples without needing permission. Avoid use in operations. |-| `<a>` | Learn more → `https://iana.org/domains/example` |--Brand tokens read off the live page, not invented:-canvas `#EEEEEE`, ink `#000000` at `opacity: .8`, link/accent `#334488`, type-`system-ui, sans-serif`.--## Structure — one scene, 10.0s--Narration is the spine; every reveal is cued to a spoken phrase. Timings below are the-**measured** word timings from the narration, not estimates.--| t | beat |-| ----------- | ---------------------------------------------------------------------- |-| 0.10 → 1.00 | the accent rule draws; the frame asserts itself |-| 1.00 → 1.68 | "Example Domain" rises out of a mask — VO: _"This is…"_ |-| 1.55 → 2.33 | brand rule draws, then the address in mono — VO: _"…example.com."_ |-| 2.66 → 3.51 | the real captured page travels in at exactly 1:1 — VO: _"The domain…"_ |-| 4.55 → 5.15 | an accent marker draws down the page's own words — VO: _"…examples."_ |-| 5.15 → 6.42 | held read — the composition reads still while the VO carries |-| 6.42 → 7.10 | the supporting line lands — VO: _"…no permission needed."_ |-| 8.03 → 10.0 | captions clear; the frame holds as a clean, still end card |--## Assets--| Asset | Provenance |-| ------------------------ | ------------------------------------------------------------------------------ |-| `assets/example-com.png` | `npx hyperframes capture https://example.com` |-| `assets/narration.wav` | ElevenLabs **River** `SAz9YHcvj6GT2YYXdXww`, via `/media-use` |-| `assets/bgm.wav` | HeyGen audio catalog, 10.0s bed, ingested from the v1 project via `/media-use` |-| `assets/sfx-whoosh.mp3` | `/media-use` bundled library — `whoosh-short`, 0.57s |-| `assets/sfx-tick.mp3` | `/media-use` bundled library — `click-soft`, 0.37s |--## Design truth--- The page is `#EEEEEE`. The composition canvas is one step down (`#E9E9E7`) so the- captured plate reads as a **lifted surface** instead of dissolving into the ground.- That is the one derived value; everything else is the page's own.-- Inter 900 / 400 for the lockup, IBM Plex Mono 400 for the address. Both are in the- renderer's embedded bundle at exactly those weights, so type is byte-identical in- preview and render.-- The plate never scales and never rotates. A 1x capture has no headroom above 1:1;- it travels on `x` only, so the page's own 16px type renders pixel-exact.--## Deliberately not in this video--- No CTA button. The page's one action is a plain text link that says "Learn more";- drawing it as a pill with an arrow would be invented UI.-- No sheen, no bloom, no drifting camera, no texture overlays. One accent device- (the rule / bar / marker family) carries the whole graphic language.diff --git a/examples/docs-reference-project/README.md b/examples/docs-reference-project/README.mddeleted file mode 100644index 3deb0e54dd..0000000000--- a/examples/docs-reference-project/README.md+++ /dev/null@@ -1,165 +0,0 @@-# example.com — 10-second product intro--The HyperFrames docs **Reference Project**. One real project, built end to end from one-real request:--> Using `/hyperframes`, make a 10-second product intro for `https://example.com`.--**1920×1080 · 10.000s · 30 fps · 300 frames · one scene · one caption overlay.**--Everything in here is real: the plate is a live capture of `example.com`, the copy is-the page's own wording, the narration is synthesised speech, and the caption timings are-measured word timings from that narration. Nothing is mocked, and no command output in-these files is invented.-------## Run it--```bash-bun run dev # Studio preview (long-running — keep it in the background)-bun run check # lint + runtime + layout + motion + contrast, one command-bun run render # → renders/video.mp4-```--The scripts pin an exact CLI version so this project re-renders identically over time.-To move the pin up: `npx hyperframes@latest upgrade --project . --check`, then drop-`--check` to apply, then re-run `bun run check`.--## Files--| File | What it is |-| ---------------------------- | --------------------------------------------------------------------------------- |-| `index.html` | the composition — root timeline, the whole scene, all four audio tracks |-| `compositions/captions.html` | the caption overlay, wired as a sub-composition on track 2 |-| `BRIEF.md` | the confirmed intent the workflow was handed |-| `frame.md` | the design spec — palette, type, the plate rule, the caption skin |-| `STORYBOARD.md` | the plan: `## Video direction` plus one time-coded shot sequence |-| `SCRIPT.md` | locked narration, the voice, and the exact commands that regenerate it |-| `VERIFICATION.md` | what passed, what changed from v1, and the two framework bugs found on the way |-| `transcript.json` | Whisper word timings for `assets/narration.wav` — the source of every caption cue |--## The five variables--Declared on `<html>` as `data-composition-variables`, so the same composition can front-another site without touching the HTML:--| id | type | default |-| ---------------- | ------ | --------------------------------------------------------------- |-| `title` | string | `Example Domain` |-| `accent` | color | `#334488` |-| `supportingLine` | string | `For use in documentation examples without needing permission.` |-| `siteUrl` | string | `example.com` |-| `pageImage` | string | `assets/example-com.png` |--They are wired **declaratively** — no `getVariables()` call anywhere in this project:--```html-<h1 data-var-text="title">Example Domain</h1>-<!-- text substitution -->-<img data-var-src="pageImage" src="assets/example-com.png" />-<!-- src substitution -->-```--```css-background: var(--accent, #334488); /* the runtime publishes every scalar variable- as a --<id> custom property on the root */-```--Override at render time:--```bash-npx hyperframes render --variables '{"title":"Acme Docs","accent":"#0f766e"}'-npx hyperframes render --variables-file rows.json --strict-variables-```--Two gotchas worth knowing, both learned here:--1. **Keep the `data-composition-variables` JSON pure ASCII.** It sits on `<html>`, which- is consumed before `<meta charset>` takes effect, so a literal em dash in a `default`- renders as `â€"`. Use the JSON escape `\u2014` instead — verified by snapshot. Body text- and sub-composition text are unaffected.-2. **Put `data-var-src` before `src`.** `lint`'s `missing_local_asset` scan matches the- last `src=` in the tag, and `data-var-src` also ends in `src`, so the reverse order- makes it read the variable id as a filename and fail.--## Audio--Four tracks, each a plain `<audio>` element — the framework owns playback, so this-project never calls `play()`, `pause()` or seeks.--| Track | Element | Asset | Baseline | Notes |-| ----- | ------------- | ---------------- | -------- | ------------------------------------------ |-| 8 | `#bgm` | `bgm.wav` | `0.34` | ducked / recovered / faded on the timeline |-| 9 | `#vo` | `narration.wav` | `1.0` | starts at `1.00s`, runs `6.97s` |-| 10 | `#sfx-plate` | `sfx-whoosh.mp3` | `0.20` | at `2.62s`, under the plate's travel |-| 11 | `#sfx-marker` | `sfx-tick.mp3` | `0.16` | at `4.54s`, on the marker draw |--<!-- The two WAVs are the only assets over the repository's 500 KB non-LFS- limit, so they are the only ones stored as pointers. -->--Both WAVs are Git LFS pointers, so **run `git lfs pull` before rendering**. Without-it the bed and the voiceover are 130-byte stubs and the captions — timed from-`narration.wav` — play over silence. The two MP3 stings and the capture PNG are-stored plainly and need no extra step.--The bed is not a static level. Volume is **keyframed on the timeline**, which the runtime-probes and applies identically in preview and render:--```js-tl.to("#bgm", { volume: 0.13, duration: 0.6 }, 0.7); // duck under the voice-tl.to("#bgm", { volume: 0.3, duration: 0.9 }, 7.7); // recover after the last word-tl.to("#bgm", { volume: 0, duration: 1.0 }, 9.0); // out under the end card-```--`data-volume` is only the baseline for elements no tween touches.--## Captions--`compositions/captions.html`, mounted on track 2 for the full 10s. It follows the-captions overlay doctrine literally, and the discipline is worth copying:--- **Three groups for three spoken sentences.** Phrase-level, not word-level churn.-- **Fixed position, always.** One full-width absolute container, `text-align: center`,- `bottom: 64px`. No `left: 50% + translateX(-50%)` (it clips at canvas edges), no- per-group placement, no random offsets.-- **A structurally reserved band.** `index.html`'s stage ends at `bottom: var(--band)`- (`184px` = 17%), so nothing in the artwork can ever collide with a caption. Verified- with `check --caption-zone "x0=0;y0=.83;x1=1;y1=1;severity=error;…"`.-- **One group visible at a time, provably.** Group _n_'s hard kill sits at the exact time- group _n+1_ starts, so before that instant only _n_ can be non-zero and after it _n_ is- killed outright.-- **Emphasis by luminance only.** Each word lights `#9a9a9a → #ffffff` on its own- measured onset and stays lit, so the phrase fills in with the voice. No scale pop, no- colour flash, no scatter exit, no marker effects, no labels.-- **`fitTextFontSize` as the overflow guard**, so an edited or translated phrase shrinks- instead of wrapping up out of the band.--## Media provenance--The project keeps only the assets used by the composition:--| Shipped asset | Source |-| ------------------------ | ----------------------------------------------------------- |-| `assets/example-com.png` | `npx hyperframes capture https://example.com` |-| `assets/narration.wav` | ElevenLabs **River**, `eleven_multilingual_v2` |-| `assets/bgm.wav` | HeyGen audio catalog, 10.0-second bed |-| `assets/sfx-whoosh.mp3` | `/media-use` bundled library — `whoosh-short`, 0.57 seconds |-| `assets/sfx-tick.mp3` | `/media-use` bundled library — `click-soft`, 0.37 seconds |--Generated capture folders, frame dumps, contact sheets, and compiled docs embeds are not-committed. The docs copy of the verified render is served from the HyperFrames media CDN.--## Learning path through the composition--Read `index.html` top to bottom; it is ordered deliberately:--1. `data-composition-variables` on `<html>` — the parameters.-2. `#root` custom properties — the palette, and the `--band` reservation.-3. Track 0 `#bg` — why a full-bleed fill rides on a clip layer and never on `#root`.-4. Track 1 `#stage` — a two-column flex stage that stops above the caption band.-5. `.page` — `object-fit: none` + `object-position`, the 1:1 plate rule.-6. Track 2 — the sub-composition host, and the three ids that must match exactly.-7. The `<audio>` elements — one per track, `<video>`-free, framework-owned.-8. The timeline — load states first, then one tween per narration cue, with the two- deliberate holds left visibly empty.diff --git a/examples/docs-reference-project/SCRIPT.md b/examples/docs-reference-project/SCRIPT.mddeleted file mode 100644index 6c9a6100ce..0000000000--- a/examples/docs-reference-project/SCRIPT.md+++ /dev/null@@ -1,70 +0,0 @@-# SCRIPT — example.com intro--**Voice:** River — ElevenLabs, voice id `SAz9YHcvj6GT2YYXdXww`-**Model:** `eleven_multilingual_v2` · `mp3_44100_128` → 44.1 kHz mono WAV-**Voice direction:** Calm and unhurried. Low-key confidence, no sell. Read it the way-you would read a footnote you happen to find interesting.--The whole script is **one** synthesis call so the sentence-to-sentence prosody is real-rather than three clips butted together. The `**Time:**` values below are not-estimates — they are the measured word timings from-`npx hyperframes transcribe assets/narration.wav --model small.en`, offset by the-narration clip's `data-start` of `1.00s`.-------## Line 1 — Name it (Frame 1)--**Time:** 1.10 – 2.81s-**Delivery:** Flat, factual. The period is real; let it land.-- This is example dot com.--## Line 2 — What it is for (Frame 1)--**Time:** 2.81 – 5.38s-**Delivery:** Slightly warmer. "Reserved" carries the sentence.-- The domain reserved for documentation examples.--## Line 3 — The payoff (Frame 1)--**Time:** 5.48 – 7.68s-**Delivery:** The lift of the piece, but quiet. Space before "no permission needed."-- Use it in your docs — no permission needed.-------## Spoken vs. captioned--One deliberate divergence: the TTS text says **"example dot com"** because that is how-the string is pronounced; the caption reads **"example.com"** because that is how the-string is written. Whisper transcribed the spoken form back as `example.com,`, which is-why the caption group's word timing for it spans a full 1.27s.--## Regenerating--```bash-# 1 — synthesize (ElevenLabs, via the /media-use audio engine)-node -e '- import("'"$HOME"'/.claude/skills/media-use/audio/scripts/lib/tts.mjs").then(m =>- m.synthesizeOne({- provider: "elevenlabs",- voiceId: "SAz9YHcvj6GT2YYXdXww",- text: "This is example dot com. The domain reserved for documentation examples. Use it in your docs — no permission needed.",- wavAbs: process.cwd() + "/.work/narration.raw",- hyperframesDir: process.cwd(),- }).then(r => console.log(r)))'--# 2 — normalize to 44.1k mono PCM-ffmpeg -y -i .work/narration.raw -ac 1 -ar 44100 -c:a pcm_s16le assets/narration.wav--# 3 — word timings for the caption groups-npx hyperframes transcribe assets/narration.wav --model small.en-```--Step 3 rewrites `.work/transcript.json`. If the timings move, the caption group-boundaries in `compositions/captions.html` and the `WORDS` table in this file's-consumer must move with them — they are hand-committed on purpose so the composition-has no build step.diff --git a/examples/docs-reference-project/STORYBOARD.md b/examples/docs-reference-project/STORYBOARD.mddeleted file mode 100644index 96dd73115b..0000000000--- a/examples/docs-reference-project/STORYBOARD.md+++ /dev/null@@ -1,89 +0,0 @@-----format: 1920x1080-duration: 10s-message: "example.com is the domain you are allowed to use in documentation examples."-arc: Name → Purpose → Proof → Permission-audience: "A developer writing documentation who needs a safe example domain"-mode: autonomous-music: "gentle warm piano bed, quiet under the narration"-captions: "phrase-level, fixed lower band"------## Video direction--**Palette system** — from `frame.md`. Canvas `#E9E9E7`; the captured plate keeps the-page's own `#EEEEEE`; ink `#1B1B1B`; supporting copy `#5A5C63`; one accent `#334488`-used _only_ for the three rule instances (top rule · brand bar · page marker) and the-address. No fourth accent use.--**Motion grammar + reveal model** — every reveal is cued to a measured word timing from-`assets/narration.wav`. Long-tail eases only: `power4.out` for the two structural-reveals (title, plate), `power3.out` for copy, `expo.out` for rules drawing. Nothing-front-loads: at t=0 the frame holds one 6px rule and nothing else, and the last reveal-lands at 7.10s — inside the final 30%.--**Rhythm / held-frame allocation** — two deliberate holds. `5.15 → 6.42` is a mid-film-breather: everything visible has resolved and the narration carries alone. `8.03 → 10.0`-is the end card: the caption band clears and the frame goes completely still. Neither-hold drifts, breathes, or pans. A held read beats bad motion, and the still tail-doubles as the poster frame for docs embeds.--**Negative list** — no CTA button (the page's action is a text link, not a pill); no-sheen sweep; no ambient bloom; no grid or paper texture; no gradient mesh; no drifting-or breathing camera; no plate scale or 3D rotation of any kind (a 1x capture has no-headroom above 1:1); no per-word caption scale-pop, colour flashing, or scatter exit;-no label that repeats something already on screen. Both failure modes are banned by-name: **slideshow** (front-load then freeze) and **screensaver** (everything floating-independently).-------## Frame 1 — example.com, as it is--- scene: The name in heavy type beside the real captured page, at 1:1-- duration: 10s-- poster: 9s-- transition_in: cut-- status: animated-- voiceover: "This is example dot com. The domain reserved for documentation examples. Use it in your docs — no permission needed."-- src: index.html-- blueprint: device-surface-showcase (Adapt)-- focal: assets/example-com.png-- roles: example-com.png = supporting surface (the evidence) · type lockup = primary-- sfx: whoosh-short @2.62 (plate travels in) · click-soft @4.54 (marker draws)--**Adapt:** keep device-surface-showcase's signature move — _the captured surface itself-is the proof, delivered as a lifted plate_ — but drop the blueprint's push-in entirely.-The blueprint assumes a surface with zoom headroom; this one is a 1x screenshot, so the-push-in is replaced by a translate-only entrance and the plate is then read _in place_-by the accent marker. The film moves the eye, not the camera.--Scene 1 (0.00–1.00s): canvas and one soft upper-left light wash. A 6px accent rule-draws left→right across the top edge in 0.9s and that is the only thing on screen.-Full-bleed, one depth layer. Nothing else exists yet — the narration has not started.--Scene 2 (1.00–2.33s): as the VO says _"This is…"_, "Example Domain" rises out of a-mask (two lines, 132px/900) in the left column. The 200×8 brand bar draws under it at-1.55s, and the mono address rises at 1.78s exactly as the VO reaches _"…example.com."_-Asymmetric 60/40, content in the left 640px, three depth layers (wash · type · rule).--Scene 3 (2.33–3.51s): on _"The domain…"_ the captured page travels in from the right on-`x` only (140px → 0) and lands at exactly 1:1, 1000×400, right-aligned and-vertically centred against the lockup. `whoosh-short` sits under the travel. The plate-lifts off the canvas on a single soft shadow; it does not tilt and it does not scale.--Scene 4 (3.51–5.15s): held while the VO reads _"…reserved for documentation…"_, then on-_"…examples."_ a 5px accent marker draws top→bottom beside the page's own paragraph,-inside the plate. `click-soft` on the draw. This is the film's argument — the words-being quoted are the page's, not ours. Nothing else changes.--Scene 5 (5.15–6.42s): **held read.** Everything on screen has resolved. The VO carries-_"Use it in your docs…"_ alone. No motion at all.--Scene 6 (6.42–7.10s): on _"…no permission needed."_ the supporting line rises into the-left column under the address, in muted ink at 38px. Final reveal, final 30% of the-shot.--Scene 7 (7.10–10.00s): the last caption group plays out and clears at 8.03s. From 8.03-the frame is a completely still end card — lockup, plate, marker, no captions. This is-the frame every docs page will screenshot.diff --git a/examples/docs-reference-project/VERIFICATION.md b/examples/docs-reference-project/VERIFICATION.mddeleted file mode 100644index 2568a110b6..0000000000--- a/examples/docs-reference-project/VERIFICATION.md+++ /dev/null@@ -1,285 +0,0 @@-# Verification report — v1 → v2--Project: `examples/docs-reference-project` · **1920×1080 · 10.000s · 30 fps · 300 frames**-CLI: `[email protected]` (project pin bumped from `0.7.88` during this pass and-re-verified — see "Toolchain" below).-------## 1. Gate results--All commands were run in the project directory. These are the actual results.--| Gate | Result |-| ----------------------------------------------- | ----------------------------------------------------------- |-| `npx hyperframes lint --verbose` | **0 errors, 0 warnings** (2 files scanned) |-| `npx hyperframes check` | **passed** — `ok: true` |-| › lint | 0 errors · 0 warnings · 1 info |-| › runtime | 0 errors · 0 warnings · 0 info |-| › layout | 0 errors · 0 warnings · 1 info |-| › motion | 0 findings (no `*.motion.json` sidecars in this project) |-| › contrast | 0 errors · 0 warnings · 0 info |-| `check --caption-zone "…y0=.83…severity=error"` | **passed** — 0 caption-band collisions across 8 seek points |-| `npx hyperframes snapshot --at …` (19 frames) | captured + inspected; 3 contact sheets |-| `npx hyperframes render` | **passed** — H.264 1080p + AAC stereo, exactly 10.000s |--Final media inspection: 1920×1080 H.264, 30 fps, AAC stereo at 48 kHz,-10.000 seconds. Mean volume is −22.9 dB and the peak is −3.8 dB.--### The two info-level findings, and why they stay--Neither gates the exit code. Both are deliberate.--1. `pointer_events_none` on `compositions/captions.html` → `#root`.- The caption overlay spans the whole canvas above the artwork, so its root must be- click-through or nothing underneath is selectable in Studio. The pills themselves- carry `pointer-events: auto`, so the editable content _is_ selectable — which is- exactly what the finding's own fix hint asks for. Keeping `pointer-events: none` is- correct; the alternative is an invisible full-canvas div that eats every click.--2. `container_overflow` on `#title` at `t=0.556`, inside `span.title-mask`.- This is the mask doing its job: the title starts at `yPercent: 106` and rises into- view, so for the first ~0.7s its box is below the mask it is clipped by. Marking the- mask `data-layout-allow-overflow` would silence it, but that attribute is inherited- and would also disable `text-clipping`, `content-cramped-container` and- `foreground-over-panel` on the hero title for the whole composition. A transient info- finding is the cheaper price. The finding is reported once, at one sample.--### What "inspected snapshots" means here--19 frames on the **30 fps frame grid** (not arbitrary decimals), chosen to cover every-beat plus both caption cuts and the caption clear:--`0 · 0.533 · 1.3 · 1.967 · 2.6 · 2.8 · 2.867 · 3.133 · 4.5 · 5.0 · 5.433 · 5.5 · 5.733 · 6.4 · 7.1 · 7.933 · 8.067 · 9.5 · 9.967`--The root declares `data-fps="30"`, so those are real frame times. Requesting an-off-grid time (e.g. `2.833`) quantises to the nearest frame and renders `2.800` twice —-which briefly looked like a caption bleed until it was measured. It was not one.--Checked and confirmed:--- The plate lands at 1:1 and the page's real 16px body copy is legible — the headline,- the full sentence, and the `Learn more` link all read.-- The accent marker draws beside the page's own paragraph without touching the link- below it (6px clearance, measured).-- Both caption cuts hand off cleanly. At `2.800` only group 0 is drawn (fading out); at- `2.867` only group 1 (fading in). Same at `5.433` / `5.500`. This also holds by- construction: group _n_'s hard kill sits at exactly group _n+1_'s start, so before that- instant only _n_ can be non-zero and at/after it _n_ is set to `opacity: 0;-visibility: hidden`.-- Captions clear by `8.033s`: sampling the whole caption band at `8.067s` gives a- darkest pixel of `233` — pure canvas, nothing drawn. The frame then holds a still,- caption-free end card through the final frame at `9.967s`.-- No black frame, no blank panel, no clipped text, no element in the caption band.--`snapshot`'s optional Gemini frame-description pass failed (`API key not valid`) — the-ambient `GEMINI_API_KEY` is rejected. That is an optional annotation, not a gate; the-empty `descriptions.md` was deleted rather than shipped as a wall of identical errors.-Frames were inspected directly.-------## 2. v1 → v2--v1 is the verified original at `quickstart/example-intro`: same request, same source,-same 10.0s / 1920×1080 output. v2 keeps its concept — _show the site as it is, the real-page is the proof_ — and its split composition. What changed, and why.--### 2.1 The capture actually reads now — the one that mattered--v1's biggest defect was invisible in the source and obvious in the render. The capture-was 1440×810 displayed inside a 940×529 card: **0.65×**. The page's 16px body text-rendered at roughly 10px in a 1080p frame, so the "real captured page" — the entire-argument of the video — was an unreadable grey smudge with a tiny cluster in one corner.--v2 shows the capture at **exactly 1:1**. A fresh 1920×1080 1x capture is displayed-through a 1000×400 window with `object-fit: none; object-position: -300px -104px`, so the-page's own type renders at the size it renders at in a browser. Three hard rules fall out-of that, and they are written into `frame.md`:--- the plate **never scales** (a 1x capture has no headroom above 1:1),-- the plate **never rotates** (v1 tilted it `rotationY: -10° → -4° → -1.5°`, resampling- the page text for the entire shot),-- the entrance is **`x` translate + opacity only**.--`object-fit: none` also means the `<img>` box is exactly 1000×400 instead of a 1920×1080-element hanging out of an `overflow: hidden` parent, so it needs no-`data-layout-allow-overflow` and trips no layout finding.--### 2.2 Decorative noise removed--| Removed from v1 | Why |-| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |-| 160px background grid **and** 4px dot "paper" | Two textures stacked under a third layer (the light wash). Visible busywork on a flat page. |-| The sheen sweep across the card (`7.55 → 8.65s`) | A stock shine gimmick. It decorated the evidence instead of reading it. |-| The ambient accent bloom (`5.0s`, then `scale 1.05`) | Fired 2.5s after the plate landed, cued to nothing. |-| `https://example.com` caption under the card | A label repeating the `example.com` line already on screen, in near-invisible grey. |-| The `Learn more →` pill button | Invented UI. The page's action is a plain text link — and it is already visible _in the plate_, as itself. |-| The 1.9s `rotationY` "settle" + glow scale at the end | Lazy breathing. v2 holds completely still instead. |--What replaced them is **one** device with a job: a single 5px accent marker that draws-down the left edge of the page's own content block, on the narration cue-_"…documentation examples."_ It is the film's argument — _those are the page's words, not-ours_ — and it is the only new graphic element in v2.--### 2.3 Narration, captions and pacing (new in v2)--v1 was silent except for a music bed, so nothing cued anything; its beats were spaced by-feel (`0.1 · 0.45 · 1.55 · 2.5 · 3.9 · 5.0 · 6.5 · 7.55`).--v2 has narration, and **every visual cue is a measured word timing**, not an estimate:-`assets/narration.wav` → `npx hyperframes transcribe --model small.en` →-`transcript.json` → the tween positions in `index.html` and the group boundaries in-`compositions/captions.html`. Three phrase captions for three sentences, fixed position,-one visible at a time, per-word emphasis by luminance only.--Pacing consequence: v1 front-loaded the lockup then idled with decoration. v2's reveals-land at `1.00 · 1.55 · 1.78 · 2.66 · 4.55 · 6.42` — the last one inside the final 30% —-with two **deliberately empty** holds (`5.15 → 6.42` mid-film breather, `8.03 → 10.0`-still end card). The holds are left visibly empty in the timeline source, with comments-saying so, because a held read beats bad motion.--### 2.4 Determinism fix: non-embedded font weights--v1 asked for `font-weight: 500` on IBM Plex Mono and `600` on Inter. The renderer embeds-`inter` at **400/700/900** and `ibm-plex-mono` at **400/700** only, so both requests were-synthesised or substituted on a clean render machine — preview and output could disagree.-v2 uses only bundled weights: Inter 900 (title) / 400 (body), IBM Plex Mono 400-(address), Inter 700 (captions). `frame.md` states the rule so an editor cannot-reintroduce it.--### 2.5 Parameterisation (new in v2)--v1 had no variables — it was a one-off. v2 declares five with useful defaults and wires-them declaratively (`data-var-text`, `data-var-src`, `var(--accent)`), with no-`getVariables()` call anywhere, so the composition can front another site by flags alone.--### 2.6 Palette: one derived value, stated as derived--v1's brief claimed the palette was read from the capture, then set the canvas to-`#eeeeee` — the page's own background. The plate therefore had the same fill as the-ground and only its border separated them, which is why it read as a faint rectangle.--v2 keeps ink `#1b1b1b` and accent `#334488` from the captured page (its CSS literally-says `a { color:#348 }`) and steps the **canvas** down to `#e9e9e7`-so the plate has something to lift off. `frame.md` labels that as the one derived value-rather than pretending it was read.--### 2.7 One thing v2 gives up--v1's title was two hand-split `<span>`s waterfalling in 0.17s apart — a nicer reveal than-v2's single masked rise. That split is incompatible with `data-var-text`, which replaces-an element's own text and cannot drive per-line spans. v2 trades the waterfall for a-title that is actually a parameter. Called out here because it is a real regression, not-an oversight.-------## 3. Two framework bugs found, with reproductions--Both were hit while building this project and both are fixed _in_ this project. Neither-is a blocker for it.--### 3.1 `window.getComputedStyle()` throws inside a sub-composition--**Severity: high** — the failure is near-silent and ships broken video.--The captions doctrine (`media-use/audio/references/captions/authoring.md` → "Self-lint-after building timeline") prescribes this snippet verbatim:--```js-var computed = window.getComputedStyle(el);-```--Inside a sub-composition it raises `TypeError: Illegal invocation`. The script dies-mid-self-lint, so `window.__timelines["captions"] = tl` never runs, the runtime waits out-its registration timeout, and the render captures whatever DOM state the throw left-behind. Observed symptom: caption group 0 frozen at ~14% opacity for the whole video,-with `check` reporting it only indirectly as 30 `contrast_aa_failure` errors against a-background of `rgb(205,205,203)` — a colour that exists nowhere in the design.--Root cause, measured from inside a sub-composition script:--```-window === globalThis → false-window.getComputedStyle === globalThis.getComputedStyle → true-window.__hyperframes.fitTextFontSize → function-window.__timelines → object-```--The runtime evaluates a sub-composition's inline script with a **`window` wrapper-object**. Property reads and writes proxy through to the real window, which is why-`__timelines` and `__hyperframes` work. But retrieving the _same_ native function through-the wrapper and calling it as a method makes the wrapper the receiver, and native code-rejects it.--Fix in this project (`compositions/captions.html`), with the reason in a comment:--```js-var computed = getComputedStyle(el); // bare — not window.getComputedStyle-```--`globalThis.getComputedStyle(el)` also works. Suggested upstream actions: make the-wrapper bind native `Window` methods, and fix the snippet in the captions doctrine —-every agent that follows it inside a sub-composition inherits this bug.--### 3.2 `lint`'s `missing_local_asset` mis-parses `data-var-src`--**Severity: low** — loud, harmless, one-line workaround.--```html-<img src="assets/example-com.png" data-var-src="pageImage" />-```--fails lint with `missing_local_asset: <img> element references local file(s) not found in-the project: pageImage`. The rule's regex is-`/<(video|img|source)\b[^>]*\bsrc\s*=\s*["']([^"']+)["'][^>]*>/gi`; the greedy `[^>]*`-takes the **last** `src=` in the tag, and `data-var-src` ends in `src` with a `-` before-it, so `\b` matches and the variable id is read as a filename.--Workaround used here: author `data-var-src` **before** `src`. Suggested upstream fix:-require a whitespace or `"` boundary before `src` (`(?<=[\s"'])src\s*=`), or explicitly-skip `data-var-src`.-------## 4. One documented authoring constraint--Not a bug, but a real trap worth stating: **keep `data-composition-variables` pure-ASCII.** It lives on `<html>`, which is consumed before `<meta charset>` is in effect, so-a literal em dash in a `default` renders as `â€"`. Verified both ways by snapshot: the-literal character mojibakes, the JSON escape `\u2014` renders a correct em dash. Text in-the document body and inside a sub-composition `<template>` is unaffected (the runtime-`fetch`es sub-compositions and decodes them as UTF-8).--v2 ships ASCII-only variable defaults and states the rule in a comment in `index.html`.-------## 5. Toolchain--The project's `package.json` pinned `[email protected]`. Per the CLI's own upgrade-protocol the pin was probed before any render-affecting command:--```-npx hyperframes@latest upgrade --project . --check- → would bump project scripts 0.7.88 → 0.7.90-```--Applied, then verified: `npx hyperframes check` passes on **0.7.90**. A passing check-confirms the compositions still validate on the new version — not that output is-frame-identical to the old pin. The project now runs on `0.7.90`; `hyperframes info`-reports `updateAvailable: false`.-------## 6. Blockers--**None.** `lint` and `check` pass with zero errors and zero warnings, snapshots are-captured and inspected, and the final MP4 passed the media gate.--Two non-blocking environment notes: the ambient `GEMINI_API_KEY` is rejected by the API,-so `snapshot`'s optional vision descriptions are unavailable; and `hyperframes feedback`-was not sent, because the CLI's protocol sends it only after verifying a successful-render. Both framework findings in §3 are written up here in reproducible form so they-can be filed with that render.diff --git a/examples/docs-reference-project/assets/bgm.wav b/examples/docs-reference-project/assets/bgm.wavdeleted file mode 100644index 1e84467a0e..0000000000--- a/examples/docs-reference-project/assets/bgm.wav+++ /dev/null@@ -1,3 +0,0 @@-version https://git-lfs.github.com/spec/v1-oid sha256:8935eb87c960b062ad9c42bce3f4e12408f389dfb82acba986999e62db76fe5b-size 1920078diff --git a/examples/docs-reference-project/assets/example-com.png b/examples/docs-reference-project/assets/example-com.pngdeleted file mode 100644index 1d17d46b29..0000000000Binary files a/examples/docs-reference-project/assets/example-com.png and /dev/null differdiff --git a/examples/docs-reference-project/assets/narration.wav b/examples/docs-reference-project/assets/narration.wavdeleted file mode 100644index 3b3c135118..0000000000--- a/examples/docs-reference-project/assets/narration.wav+++ /dev/null@@ -1,3 +0,0 @@-version https://git-lfs.github.com/spec/v1-oid sha256:4fca03080a6626474df0deda3f6b1b679321a4b6c813ec2876ac8baae476fd49-size 614478diff --git a/examples/docs-reference-project/assets/sfx-tick.mp3 b/examples/docs-reference-project/assets/sfx-tick.mp3deleted file mode 100644index 2706b1d2ea..0000000000Binary files a/examples/docs-reference-project/assets/sfx-tick.mp3 and /dev/null differdiff --git a/examples/docs-reference-project/assets/sfx-whoosh.mp3 b/examples/docs-reference-project/assets/sfx-whoosh.mp3deleted file mode 100644index e23e513d27..0000000000Binary files a/examples/docs-reference-project/assets/sfx-whoosh.mp3 and /dev/null differdiff --git a/examples/docs-reference-project/compositions/captions.html b/examples/docs-reference-project/compositions/captions.htmldeleted file mode 100644index 8c1541cf1b..0000000000--- a/examples/docs-reference-project/compositions/captions.html+++ /dev/null@@ -1,241 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="UTF-8" />- <title>captions — example.com intro</title>- <!-- This head is metadata for the source file only. The runtime clones ONLY- the <template> contents, so every style, node and script that has to- exist at render time lives inside it. GSAP is deliberately not- re-imported here: the host page already provides the global, and a- second <script src> would be a render-time network fetch. -->- </head>- <body>- <template>- <style>- /* Root is styled by #root, never by a class: the compiler scopes each- sub-composition's CSS to its data-composition-id, which would turn a- root class selector into a descendant selector that cannot match. */- #root {- position: absolute;- inset: 0;- width: 1920px;- height: 1080px;- pointer-events: none;- }-- /* Fixed lower band. Full-width absolute + text-align, NOT- left:50% + translateX(-50%) — the latter clips at canvas edges.- bottom:64px puts the pill at y 934–1016, inside the 184px band the- main composition reserves, so a caption can never cover the artwork. */- .group {- position: absolute;- left: 0;- right: 0;- bottom: 64px;- text-align: center;- /* the root is click-through so the artwork underneath stays- selectable in Studio; the pills themselves are not */- pointer-events: auto;- opacity: 0;- visibility: hidden;- }- .pill {- display: inline-block;- max-width: 1304px;- padding: 16px 32px;- border-radius: 12px;- background: #1b1b1b;- font-family: "Inter", sans-serif;- font-weight: 700; /* bundled weight */- font-size: 42px;- line-height: 1.2;- letter-spacing: -0.005em;- text-align: center;- }- /* Emphasis by luminance only. A word starts read-pending and stays lit- once spoken — no scale pop, no colour flash, no scatter exit. Both- states clear WCAG AA against #1b1b1b (6.1:1 idle, 17.2:1 lit). */- .w {- color: #9a9a9a;- }- </style>-- <div- id="root"- data-composition-id="captions"- data-start="0"- data-duration="10"- data-width="1920"- data-height="1080"- data-layout-allow-caption-zone- ></div>-- <script>- (function () {- // Phrase groups. start/end/s/e are absolute composition seconds, taken- // from `npx hyperframes transcribe assets/narration.wav --model small.en`- // plus the narration clip's data-start of 1.00s. Three groups for three- // spoken sentences: stable, one visible at a time, never re-grouped.- var GROUPS = [- {- start: 1.1,- end: 2.81,- words: [- { t: "This", s: 1.1, e: 1.36 },- { t: "is", s: 1.36, e: 1.54 },- // spoken "example dot com"; written as the string it is- { t: "example.com.", s: 1.54, e: 2.81 },- ],- },- {- start: 2.81,- end: 5.48,- words: [- { t: "The", s: 2.81, e: 2.95 },- { t: "domain", s: 2.95, e: 3.24 },- { t: "reserved", s: 3.24, e: 3.56 },- { t: "for", s: 3.74, e: 3.81 },- { t: "documentation", s: 3.88, e: 4.62 },- { t: "examples.", s: 4.74, e: 5.38 },- ],- },- {- start: 5.48,- end: 8.03,- words: [- { t: "Use", s: 5.48, e: 5.55 },- { t: "it", s: 5.62, e: 5.68 },- { t: "in", s: 5.68, e: 5.8 },- { t: "your", s: 5.8, e: 6.03 },- { t: "docs —", s: 6.09, e: 6.36 },- { t: "no", s: 6.48, e: 6.54 },- { t: "permission", s: 6.54, e: 6.77 },- { t: "needed.", s: 7.17, e: 7.68 },- ],- },- ];-- var IDLE = "#9a9a9a";- var LIT = "#ffffff";- // Back-to-back phrases: the narration has no pause between sentences- // (group 0 ends the exact instant group 1 begins), so the handoff is a- // quick fade-down / fade-up rather than a crossfade. Keeping them- // short holds the dip at a sentence boundary under ~0.2s while still- // guaranteeing only one group is ever drawn on a given frame.- var ENTER = 0.18;- var EXIT = 0.1;-- var root = document.getElementById("root");- var api = window.__hyperframes;-- // Build the DOM synchronously — one group element, one span per word.- GROUPS.forEach(function (group, gi) {- var groupEl = document.createElement("div");- groupEl.id = "cg-" + gi;- groupEl.className = "group";-- var pill = document.createElement("div");- pill.className = "pill";-- var text = group.words- .map(function (w) {- return w.t;- })- .join(" ");-- // Overflow guard: shrink the phrase until it fits one line rather- // than letting it wrap up out of the caption band.- if (api && typeof api.fitTextFontSize === "function") {- var fit = api.fitTextFontSize(text, {- fontFamily: "Inter",- fontWeight: 700,- maxWidth: 1240,- baseFontSize: 42,- minFontSize: 30,- step: 2,- });- if (fit && fit.fontSize) pill.style.fontSize = fit.fontSize + "px";- }-- group.words.forEach(function (w, wi) {- if (wi > 0) pill.appendChild(document.createTextNode(" "));- var span = document.createElement("span");- span.id = "cw-" + gi + "-" + wi;- span.className = "w";- span.textContent = w.t;- pill.appendChild(span);- });-- groupEl.appendChild(pill);- root.appendChild(groupEl);- });-- window.__timelines = window.__timelines || {};- var tl = gsap.timeline({ paused: true });-- GROUPS.forEach(function (group, gi) {- var groupEl = document.getElementById("cg-" + gi);-- // enter — fromTo, not from: the host re-seeks this sub-composition- // every time its slot becomes visible, and from() can desync.- tl.fromTo(- groupEl,- { autoAlpha: 0, y: 14 },- { autoAlpha: 1, y: 0, duration: ENTER, ease: "power3.out" },- group.start,- );-- // progressive fill — each word lights on its own measured onset and- // stays lit, so the phrase completes with the voice.- group.words.forEach(function (w, wi) {- tl.fromTo(- "#cw-" + gi + "-" + wi,- { color: IDLE },- { color: LIT, duration: 0.14, ease: "none" },- w.s,- );- });-- // exit, then the mandatory hard kill exactly at group.end so no group- // can bleed into the next one or into the end card.- tl.to(- groupEl,- { autoAlpha: 0, y: -8, duration: EXIT, ease: "power2.in" },- group.end - EXIT,- );- tl.set(groupEl, { opacity: 0, visibility: "hidden" }, group.end);- });-- // Self-lint: prove every group is really gone after its own end.- //- // Call getComputedStyle BARE, not as window.getComputedStyle(el).- // Inside a sub-composition the runtime evaluates this script with a- // `window` wrapper object (window !== globalThis, though property- // reads/writes proxy through to the real window). Retrieving the- // native function through the wrapper and calling it as a method- // makes the wrapper the receiver, so it throws- // `TypeError: Illegal invocation`, the timeline is never registered,- // and the render ships whatever DOM state the throw left behind.- GROUPS.forEach(function (group, gi) {- var el = document.getElementById("cg-" + gi);- if (!el) return;- tl.seek(group.end + 0.01);- var computed = getComputedStyle(el);- if (computed.opacity !== "0" && computed.visibility !== "hidden") {- console.warn(- "[caption-lint] group " +- gi +- " still visible at t=" +- (group.end + 0.01).toFixed(2) +- "s",- );- }- });- tl.seek(0);-- window.__timelines["captions"] = tl;- })();- </script>- </template>- </body>-</html>diff --git a/examples/docs-reference-project/frame.md b/examples/docs-reference-project/frame.mddeleted file mode 100644index 99cfa04793..0000000000--- a/examples/docs-reference-project/frame.md+++ /dev/null@@ -1,101 +0,0 @@-----name: example-com-intro-source: https://example.com (live capture, 2026-08-03)-format: 1920x1080-colors:- canvas: "#E9E9E7" # the page's #EEEEEE stepped down ~3% so the plate lifts off it- surface: "#EEEEEE" # the captured page's own background — the plate- ink: "#1B1B1B" # the page's #000 at .8 opacity, resolved- ink_muted: "#5A5C63" # supporting copy- accent: "#334488" # the page's own link colour- hairline: "#D6D6D6" # plate edge- caption_bg: "#1B1B1B"- caption_idle: "#9A9A9A"- caption_active: "#FFFFFF"-fonts:- display: "Inter" # 900 only- body: "Inter" # 400 only- mono: "IBM Plex Mono" # 400 only-type_ramp:- title: "132px / 1.02 / -0.035em / 900"- address: "42px / 1 / 0 / 400 mono"- support: "38px / 1.45 / -0.005em / 400"- caption: "42px / 1.2 / -0.005em / 700"-radius: "10px"-motion:- ease: "power4.out for reveals, power3.out for copy, expo.out for rules"- reveal: "cued to the narration's measured word timings — never front-loaded"- idle: "none; the film holds still rather than drifting"------# frame.md — example.com intro--## Where the palette comes from--Nothing here is chosen by taste. `capture/extracted/tokens.json` reports three colours-on the live page — `#EEEEEE`, `#000000`, `#334488` — and its CSS resolves them:--```css-body {- background: #eee;- font-family: system-ui, sans-serif;-}-div {- opacity: 0.8;-} /* so #000 ink actually reads as ~#333 */-a {- color: #348;-} /* → #334488 */-```--One value is **derived, not read**: the composition canvas. If the frame were also-`#EEEEEE`, the captured plate would have the same fill as the ground and only its-border would separate them. Stepping the canvas down to `#E9E9E7` gives the plate-somewhere to lift from, which is why its shadow reads at all.--## Type--Only weights the renderer actually embeds:--| Role | Family | Weight | Why |-| ------- | ------------- | ------ | ---------------------------------------------------- |-| Title | Inter | 900 | bundled; the lockup's whole job is mass |-| Body | Inter | 400 | bundled |-| Address | IBM Plex Mono | 400 | bundled; mono says "this is a literal string" |-| Caption | Inter | 700 | bundled; the heaviest weight that is not the title's |--Weights 500 and 600 are **not** in the embedded bundle. Asking for them means the-render machine synthesises or substitutes, and preview stops matching output. Snap to-400 / 700 / 900.--## The one graphic device--A single accent family, three instances, each with a job:--1. **Top rule** — 6px, full bleed. The frame asserting itself at t=0.1.-2. **Brand bar** — 200×8px under the title. Separates the name from the address.-3. **Page marker** — 5px vertical, inside the plate, beside the page's own content block.- This is the film's argument: _those are the page's words, not ours._--Anything that is not one of those three is not in this composition. No sheen, no-ambient bloom, no grid or paper texture, no gradient mesh, no drifting camera.--## The plate rule--The capture is a 1x, 1920×1080 screenshot. It is displayed through a 1000×400 window-with `object-fit: none`, so the page renders at exactly 1:1 and its real 16px body-text is as crisp as it is in a browser.--Consequences, and they are hard rules:--- **Never scale the plate.** Any zoom past 1:1 resamples a 1x capture into mush.-- **Never rotate the plate.** A 3D tilt does the same thing more expensively.-- Entrance is `x` translate + opacity only.--## Caption skin--Fixed lower band, `184px` tall (17% of the canvas), reserved structurally — the stage-ends where the band begins, so nothing can ever collide with it. Dark pill, centred,-one phrase group visible at a time, per-word emphasis by luminance only-(`#9A9A9A → #FFFFFF`). No colour flashing, no scale popping, no scatter exits, no-random placement.diff --git a/examples/docs-reference-project/hyperframes.json b/examples/docs-reference-project/hyperframes.jsondeleted file mode 100644index ec2e3c2efd..0000000000--- a/examples/docs-reference-project/hyperframes.json+++ /dev/null@@ -1,13 +0,0 @@-{- "$schema": "https://hyperframes.heygen.com/schema/hyperframes.json",- "registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",- "paths": {- "blocks": "compositions",- "components": "compositions/components",- "assets": "assets"- },- "media": {- "autoProxy": true- },- "authoringSkill": "product-launch-video"-}diff --git a/examples/docs-reference-project/index.html b/examples/docs-reference-project/index.htmldeleted file mode 100644index 07e7e0e679..0000000000--- a/examples/docs-reference-project/index.html+++ /dev/null@@ -1,370 +0,0 @@-<!doctype html>-<html- lang="en"- data-composition-variables='[- { "id": "title", "type": "string", "label": "Title", "default": "Example Domain", "placeholder": "the page heading, verbatim", "maxLength": 26 },- { "id": "accent", "type": "color", "label": "Accent", "default": "#334488" },- { "id": "supportingLine", "type": "string", "label": "Supporting line", "default": "For use in documentation examples without needing permission.", "placeholder": "one sentence, verbatim from the page", "maxLength": 90 },- { "id": "siteUrl", "type": "string", "label": "Address", "default": "example.com", "placeholder": "bare domain, no scheme", "maxLength": 32 },- { "id": "pageImage", "type": "string", "label": "Captured page (1x)", "default": "assets/example-com.png", "placeholder": "a 1920x1080 1x capture" }- ]'->- <head>- <meta charset="UTF-8" />- <meta name="viewport" content="width=1920, height=1080" />- <title>example.com — 10s intro</title>- <!-- Keep `data-composition-variables` (on <html>, above) pure ASCII.- The <html> element's attributes are consumed before this <meta charset>- is in effect, so a literal em dash in a `default` renders as mojibake- (â€"). Use a JSON escape instead: \u2014 survives, verified by- snapshot. Text in the document body and inside a sub-composition's- <template> is unaffected; both decode as UTF-8 normally. -->- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>- <style>- * {- margin: 0;- padding: 0;- box-sizing: border-box;- }- html,- body {- width: 1920px;- height: 1080px;- overflow: hidden;- background: #e9e9e7;- }-- /* ------------------------------------------------------------------- Palette. Every value is read off the live capture except --canvas,- which is example.com's own #EEEEEE stepped down ~3% so the captured- plate has something to lift off. See frame.md.-- --accent is not declared here: the runtime publishes every scalar- variable as a --<id> custom property on the composition root, so- `var(--accent, #334488)` follows the declared default and any- --variables override, with the literal as a plain-HTML fallback.- ------------------------------------------------------------------ */- #root {- --canvas: #e9e9e7;- --surface: #eeeeee;- --ink: #1b1b1b;- --ink-muted: #5a5c63;- --hairline: #d6d6d6;- /* the caption band, reserved structurally rather than by eye */- --band: 184px;-- position: relative;- width: 1920px;- height: 1080px;- overflow: hidden;- font-family: "Inter", sans-serif;- color: var(--ink);- -webkit-font-smoothing: antialiased;- }-- /* ---------- track 0 · ground ---------- */- .ground {- position: absolute;- inset: 0;- background: var(--canvas);- }- .wash {- position: absolute;- left: -260px;- top: -320px;- width: 1500px;- height: 1200px;- border-radius: 50%;- background: radial-gradient(- closest-side,- rgba(255, 255, 255, 0.82),- rgba(255, 255, 255, 0)- );- }- .top-rule {- position: absolute;- left: 0;- top: 0;- width: 1920px;- height: 6px;- background: var(--accent, #334488);- transform-origin: 0% 50%;- }-- /* ---------- track 1 · stage ----------- The stage stops where the caption band starts, so no amount of copy- can ever collide with a caption. Nothing is positioned by eye. */- .stage-grid {- position: absolute;- left: 120px;- right: 120px;- top: 0;- bottom: var(--band);- display: flex;- align-items: center;- gap: 40px;- }-- /* left · the lockup (640px) */- .col-type {- flex: 0 0 640px;- }- .title-mask {- display: block;- overflow: hidden;- }- .title {- display: block;- font-size: 132px;- font-weight: 900; /* bundled weight — 500/600 are not embedded */- line-height: 1.02;- letter-spacing: -0.035em;- color: var(--ink);- }- .brand-bar {- display: block;- width: 200px;- height: 8px;- margin-top: 34px;- background: var(--accent, #334488);- transform-origin: 0% 50%;- }- .address {- display: block;- margin-top: 30px;- font-family: "IBM Plex Mono", monospace;- font-size: 42px;- font-weight: 400;- line-height: 1;- color: var(--accent, #334488);- }- .support {- display: block;- margin-top: 34px;- max-width: 640px;- font-size: 38px;- font-weight: 400;- line-height: 1.45;- letter-spacing: -0.005em;- color: var(--ink-muted);- }-- /* right · the real captured page (1000px) ----------- object-fit:none renders the 1920×1080 capture at its intrinsic size and- object-position crops to the window, so the page's own 16px body text is- pixel-exact 1:1. That is also why the plate never scales and never- rotates: a 1x capture has no headroom above 1:1. */- .col-plate {- flex: 1 1 auto;- display: flex;- justify-content: flex-end;- align-items: center;- }- .plate {- position: relative;- width: 1000px;- height: 400px;- overflow: hidden;- border: 1px solid var(--hairline);- border-radius: 10px;- background: var(--surface);- box-shadow:- 0 28px 64px -18px rgba(27, 27, 27, 0.3),- 0 2px 5px rgba(27, 27, 27, 0.06);- }- .page {- display: block;- width: 998px;- height: 398px;- object-fit: none;- object-position: -300px -104px;- }- /* the film's one argument: those are the page's words, not ours.- Measured against the capture — the content block sits at x 384–1131,- y 162–260 of the 1920×1080 screenshot, i.e. 84,58 → 831,156 in here. */- .page-marker {- position: absolute;- left: 56px;- top: 58px;- width: 5px;- height: 98px;- border-radius: 2px;- background: var(--accent, #334488);- transform-origin: 50% 0%;- }- </style>- </head>- <body>- <div- id="root"- data-composition-id="main"- data-start="0"- data-duration="10"- data-fps="30"- data-width="1920"- data-height="1080"- >- <!-- track 0 · ground. The fill lives on a clip layer, never on #root:- the producer can drop the root element's own background. -->- <div id="bg" class="clip" data-start="0" data-duration="10" data-track-index="0">- <div class="ground"></div>- <div class="wash" data-layout-allow-overflow></div>- <div id="top-rule" class="top-rule"></div>- </div>-- <!-- track 1 · stage -->- <div id="stage" class="clip" data-start="0" data-duration="10" data-track-index="1">- <div class="stage-grid">- <div class="col-type">- <div class="title-mask">- <h1 id="title" class="title" data-var-text="title">Example Domain</h1>- </div>- <span id="brand-bar" class="brand-bar"></span>- <span id="address" class="address" data-var-text="siteUrl">example.com</span>- <p id="support" class="support" data-var-text="supportingLine">- For use in documentation examples without needing permission.- </p>- </div>-- <div class="col-plate">- <div id="plate" class="plate">- <!-- data-var-src binds the source to the `pageImage` variable; the- authored src is the fallback. Keep data-var-src BEFORE src:- `lint`'s missing_local_asset scan matches the last `src=` in- the tag, and `data-var-src` ends in `src` too, so the reverse- order makes it read the variable id as a file path. -->- <img- id="page"- class="page"- data-var-src="pageImage"- src="assets/example-com.png"- alt="The example.com landing page: the heading Example Domain, one sentence of body copy, and a Learn more link."- />- <div id="page-marker" class="page-marker"></div>- </div>- </div>- </div>- </div>-- <!-- track 2 · captions overlay (sub-composition) -->- <div- id="captions-slot"- data-composition-id="captions"- data-composition-src="compositions/captions.html"- data-start="0"- data-duration="10"- data-track-index="2"- data-width="1920"- data-height="1080"- ></div>-- <!-- audio. The framework owns playback; never call play()/pause()/seek. -->- <audio- id="bgm"- src="assets/bgm.wav"- data-start="0"- data-duration="10"- data-track-index="8"- data-volume="0.34"- ></audio>- <audio- id="vo"- src="assets/narration.wav"- data-start="1"- data-duration="6.97"- data-track-index="9"- data-volume="1"- ></audio>- <audio- id="sfx-plate"- src="assets/sfx-whoosh.mp3"- data-start="2.62"- data-duration="0.6"- data-track-index="10"- data-volume="0.2"- ></audio>- <audio- id="sfx-marker"- src="assets/sfx-tick.mp3"- data-start="4.54"- data-duration="0.4"- data-track-index="11"- data-volume="0.16"- ></audio>- </div>-- <script>- // One paused timeline, built synchronously, keyed to data-composition-id.- window.__timelines = window.__timelines || {};- const tl = gsap.timeline({ paused: true });-- // Load states. Everything that animates in is hidden explicitly, so a- // paused seek to t=0 renders the true first frame. Initial transforms are- // set here rather than in CSS: a CSS transform plus a GSAP tween on the- // same property fight each other (lint: gsap_css_transform_conflict).- gsap.set("#top-rule", { scaleX: 0 });- gsap.set("#title", { yPercent: 106 });- gsap.set("#brand-bar", { scaleX: 0 });- gsap.set(["#address", "#support"], { autoAlpha: 0, y: 20 });- gsap.set("#plate", { autoAlpha: 0, x: 140 });- gsap.set("#page-marker", { scaleY: 0 });-- // Every cue below is a measured word timing from assets/narration.wav- // (see SCRIPT.md), not an estimate.-- // 0.10s — the frame asserts itself. Narration has not started.- tl.to("#top-rule", { scaleX: 1, duration: 0.9, ease: "power3.out" }, 0.1);-- // 1.00s — VO "This is…" · the name rises out of its mask.- tl.to("#title", { yPercent: 0, duration: 0.68, ease: "power4.out" }, 1.0);-- // 1.55s / 1.78s — the brand rule, then VO "…example.com." lands the address.- tl.to("#brand-bar", { scaleX: 1, duration: 0.44, ease: "expo.out" }, 1.55);- tl.to("#address", { autoAlpha: 1, y: 0, duration: 0.55, ease: "power3.out" }, 1.78);-- // 2.66s — VO "The domain…" · the real page travels in. x and opacity ONLY.- tl.to("#plate", { autoAlpha: 1, x: 0, duration: 0.85, ease: "power4.out" }, 2.66);-- // 4.55s — VO "…examples." · the marker draws beside the page's own content block.- tl.to("#page-marker", { scaleY: 1, duration: 0.6, ease: "power2.out" }, 4.55);-- // 5.15 → 6.42s — held read. Deliberately empty; a held frame beats bad motion.-- // 6.42s — VO "…no permission needed." · the last reveal, in the final 30%.- tl.to("#support", { autoAlpha: 1, y: 0, duration: 0.68, ease: "power3.out" }, 6.42);-- // 8.03 → 10.00s — still end card. No tween. This is the poster frame.-- // Audio: the bed ducks under the narration, recovers, then fades out.- // Volume keyframes are probed off the timeline and applied identically in- // preview and render; data-volume is only the static baseline.- tl.to("#bgm", { volume: 0.13, duration: 0.6, ease: "sine.inOut" }, 0.7);- tl.to("#bgm", { volume: 0.3, duration: 0.9, ease: "sine.inOut" }, 7.7);- tl.to("#bgm", { volume: 0, duration: 1.0, ease: "sine.in" }, 9.0);-- window.__timelines["main"] = tl;-- // The documentation embed can change three safe variables without- // rebuilding the project. Only the parent iframe is trusted, and each- // value is allowlisted and bounded before it touches the composition.- window.addEventListener("message", (event) => {- if (event.source !== window.parent) return;- const message = event.data;- if (!message || message.type !== "hyperframes-docs:variables") return;-- const variables = message.variables;- if (!variables || typeof variables !== "object") return;-- if (typeof variables.title === "string") {- document.getElementById("title").textContent = variables.title.slice(0, 42);- }- if (typeof variables.supportingLine === "string") {- document.getElementById("support").textContent = variables.supportingLine.slice(0, 90);- }- if (typeof variables.accent === "string" && /^#[0-9a-fA-F]{6}$/.test(variables.accent)) {- document.getElementById("root").style.setProperty("--accent", variables.accent);- }- });- </script>- </body>-</html>diff --git a/examples/docs-reference-project/meta.json b/examples/docs-reference-project/meta.jsondeleted file mode 100644index 0ae9af8d62..0000000000--- a/examples/docs-reference-project/meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "id": "docs-reference-project",- "name": "docs-reference-project",- "createdAt": "2026-08-03T09:05:27.101Z"-}diff --git a/examples/docs-reference-project/package.json b/examples/docs-reference-project/package.jsondeleted file mode 100644index 93fcf4e76d..0000000000--- a/examples/docs-reference-project/package.json+++ /dev/null@@ -1,11 +0,0 @@-{- "name": "docs-reference-project",- "private": true,- "type": "module",- "scripts": {- "dev": "npx --yes [email protected] preview",- "check": "npx --yes [email protected] check",- "render": "npx --yes [email protected] render",- "publish": "npx --yes [email protected] publish"- }-}diff --git a/examples/docs-reference-project/transcript.json b/examples/docs-reference-project/transcript.jsondeleted file mode 100644index c475233e93..0000000000--- a/examples/docs-reference-project/transcript.json+++ /dev/null@@ -1,87 +0,0 @@-[- {- "text": "This",- "start": 0.1,- "end": 0.36- },- {- "text": "is",- "start": 0.36,- "end": 0.54- },- {- "text": "example.com,",- "start": 0.54,- "end": 1.81- },- {- "text": "the",- "start": 1.81,- "end": 1.95- },- {- "text": "domain",- "start": 1.95,- "end": 2.24- },- {- "text": "reserved",- "start": 2.24,- "end": 2.56- },- {- "text": "for",- "start": 2.74,- "end": 2.81- },- {- "text": "documentation",- "start": 2.88,- "end": 3.62- },- {- "text": "examples.",- "start": 3.74,- "end": 4.38- },- {- "text": "Use",- "start": 4.48,- "end": 4.55- },- {- "text": "it",- "start": 4.62,- "end": 4.68- },- {- "text": "in",- "start": 4.68,- "end": 4.8- },- {- "text": "your",- "start": 4.8,- "end": 5.03- },- {- "text": "docs,",- "start": 5.09,- "end": 5.36- },- {- "text": "no",- "start": 5.48,- "end": 5.54- },- {- "text": "permission",- "start": 5.54,- "end": 5.77- },- {- "text": "needed.",- "start": 6.17,- "end": 6.68- }-]