Merge remote-tracking branch 'origin/main' into dp2s04/rmbg-json-progress

# Conflicts:
#	packages/cli/src/commands/remove-background.ts
This commit is contained in:
Miguel Angel Simon Sierra
2026-11-21 08:18:14 -05:00
2825 changed files with 229776 additions and 49032 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ metadata:
# Changelog → Branded Video
<!-- skill-scripts: relative-ok, runs from the HyperFrames repo root -->
Input: a changelog .md (themes + items, like the weekly HyperFrames digest).
Output: a lint-clean, seam-gate-green HyperFrames project in
`projects/active/weekly-changelog-<range>/`. Render only when asked.
@@ -155,7 +157,7 @@ scaffold.
truth for the composition contract this skill produces against.
2. `seam-gate.mjs verify` — 0 fail.
3. Restart the preview server (it caches the bundle), spot-check 3-4 beats
via `__player.seek` on the raw comp page.
via `await __player.seek(t)` on the raw comp page (it resolves async).
4. Do NOT render unless the user asks. After a requested render, verify
frames from the MP4 (`ffmpeg -ss <t> … -frames:v 1`): captions present,
background video not black, no tiny/frozen frames.
@@ -119,4 +119,4 @@ otherwise) and must stay flat 2D (no 3D ancestors).
(0.14 sits under the VO; use a user-supplied track only when given one).
- Preview server caches the bundle — RESTART after edits, then verify on the
raw comp page (`/api/projects/<id>/preview/comp/index.html`) via
`window.__player.seek(t)`.
`await window.__player.seek(t)` (it resolves async; read after it settles).
@@ -91,3 +91,7 @@ Lives at the project root. One row per seam; this is the vector ledger as data.
Velocities are measured on `getBoundingClientRect` (center for x/y, width-ratio for z),
so ancestor wrapper transforms are automatically included.
`__player.seek()` resolves asynchronously, so the gate awaits each seek before it reads. If every
seam fails the same way (`exit-visible op 0.00`, `exit-moving 0 px/s`) and `probe` finds no movers,
the reads landed before the seek did and the gate measured t=0, not the film.
@@ -294,7 +294,7 @@ async function openPage(compUrl) {
// ---------- in-page harness ----------
const HARNESS = `window.__seamGate = {
seek(t){ __player.pause(); __player.seek(t); void document.body.offsetHeight; },
async seek(t){ __player.pause(); await __player.seek(t); void document.body.offsetHeight; },
cumOp(el){
let op = 1, n = el;
while (n && n.nodeType === 1) {
@@ -314,7 +314,7 @@ const HARNESS = `window.__seamGate = {
return { cx: r.x + r.width/2, cy: r.y + r.height/2, w: r.width, h: r.height,
op: this.cumOp(el), es: r.width / lw, onscreen };
},
sample(t, sels){ this.seek(t); const o = {}; for (const s of sels) o[s] = this.read(s); return o; },
async sample(t, sels){ await this.seek(t); const o = {}; for (const s of sels) o[s] = this.read(s); return o; },
pathOf(el){
if (el.id) return "#" + CSS.escape(el.id);
const hf = el.getAttribute && el.getAttribute("data-hf-id");
@@ -330,8 +330,8 @@ const HARNESS = `window.__seamGate = {
}
return p.join(">");
},
scan(t, rootSel, cap){
this.seek(t);
async scan(t, rootSel, cap){
await this.seek(t);
const root = document.querySelector(rootSel || "#root");
if (!root) return [];
const els = [root, ...root.querySelectorAll("*")].slice(0, cap || 900);
@@ -389,7 +389,7 @@ async function verify() {
].filter(Boolean);
const S = {};
for (const t of [tA1, tA2, tB1, tB2])
S[t] = await evalJs(`__seamGate.sample(${t}, ${JSON.stringify([...new Set(sels)])})`);
S[t] = await evalJs(`__seamGate.sample(${t}, ${JSON.stringify([...new Set(sels)])})`, true);
if (type === "cut") {
const ex = seam.exit,
@@ -470,8 +470,8 @@ async function verify() {
// Z-sign scan: the incoming scene's OWN entrances must not fight the seam's Z sign
if (en.axis === "z") {
const scanRoot = en.scanRoot || en.selector;
const s1 = await evalJs(`__seamGate.scan(${tB1}, ${JSON.stringify(scanRoot)})`);
const s2 = await evalJs(`__seamGate.scan(${tB2}, ${JSON.stringify(scanRoot)})`);
const s1 = await evalJs(`__seamGate.scan(${tB1}, ${JSON.stringify(scanRoot)})`, true);
const s2 = await evalJs(`__seamGate.scan(${tB2}, ${JSON.stringify(scanRoot)})`, true);
const m1 = new Map(s1.map((e) => [e.sel, e]));
const offenders = [];
for (const e2 of s2) {
@@ -539,7 +539,7 @@ async function probe() {
const dt = DT;
const scans = {};
for (const tt of [t - win, t - dt, t + dt, t + win])
scans[tt] = await evalJs(`__seamGate.scan(${Math.max(0, tt)}, "#root")`);
scans[tt] = await evalJs(`__seamGate.scan(${Math.max(0, tt)}, "#root")`, true);
const join = (a, b) => {
const m = new Map(a.map((e) => [e.sel, e]));
return b.map((e2) => ({ e1: m.get(e2.sel), e2 })).filter((p) => p.e1);
+3 -1
View File
@@ -23,7 +23,9 @@
"./skills/hyperframes",
"./skills/hyperframes-cli",
"./skills/hyperframes-registry",
"./skills/media-use"
"./skills/media-use",
"./skills/reverse-any-video",
"./skills/style-sampling"
]
}
],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "hyperframes",
"description": "HyperFrames by HeyGen. Write HTML, render video. Compositions, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
"version": "0.9.9",
"version": "0.9.77",
"author": {
"name": "HeyGen",
"email": "hyperframes@heygen.com",
+3 -1
View File
@@ -7,6 +7,8 @@ metadata:
# Changelog → Branded Video
<!-- skill-scripts: relative-ok, runs from the HyperFrames repo root -->
Input: a changelog .md (themes + items, like the weekly HyperFrames digest).
Output: a lint-clean, seam-gate-green HyperFrames project in
`projects/active/weekly-changelog-<range>/`. Render only when asked.
@@ -155,7 +157,7 @@ scaffold.
truth for the composition contract this skill produces against.
2. `seam-gate.mjs verify` — 0 fail.
3. Restart the preview server (it caches the bundle), spot-check 3-4 beats
via `__player.seek` on the raw comp page.
via `await __player.seek(t)` on the raw comp page (it resolves async).
4. Do NOT render unless the user asks. After a requested render, verify
frames from the MP4 (`ffmpeg -ss <t> … -frames:v 1`): captions present,
background video not black, no tiny/frozen frames.
@@ -119,4 +119,4 @@ otherwise) and must stay flat 2D (no 3D ancestors).
(0.14 sits under the VO; use a user-supplied track only when given one).
- Preview server caches the bundle — RESTART after edits, then verify on the
raw comp page (`/api/projects/<id>/preview/comp/index.html`) via
`window.__player.seek(t)`.
`await window.__player.seek(t)` (it resolves async; read after it settles).
@@ -91,3 +91,7 @@ Lives at the project root. One row per seam; this is the vector ledger as data.
Velocities are measured on `getBoundingClientRect` (center for x/y, width-ratio for z),
so ancestor wrapper transforms are automatically included.
`__player.seek()` resolves asynchronously, so the gate awaits each seek before it reads. If every
seam fails the same way (`exit-visible op 0.00`, `exit-moving 0 px/s`) and `probe` finds no movers,
the reads landed before the seek did and the gate measured t=0, not the film.
@@ -294,7 +294,7 @@ async function openPage(compUrl) {
// ---------- in-page harness ----------
const HARNESS = `window.__seamGate = {
seek(t){ __player.pause(); __player.seek(t); void document.body.offsetHeight; },
async seek(t){ __player.pause(); await __player.seek(t); void document.body.offsetHeight; },
cumOp(el){
let op = 1, n = el;
while (n && n.nodeType === 1) {
@@ -314,7 +314,7 @@ const HARNESS = `window.__seamGate = {
return { cx: r.x + r.width/2, cy: r.y + r.height/2, w: r.width, h: r.height,
op: this.cumOp(el), es: r.width / lw, onscreen };
},
sample(t, sels){ this.seek(t); const o = {}; for (const s of sels) o[s] = this.read(s); return o; },
async sample(t, sels){ await this.seek(t); const o = {}; for (const s of sels) o[s] = this.read(s); return o; },
pathOf(el){
if (el.id) return "#" + CSS.escape(el.id);
const hf = el.getAttribute && el.getAttribute("data-hf-id");
@@ -330,8 +330,8 @@ const HARNESS = `window.__seamGate = {
}
return p.join(">");
},
scan(t, rootSel, cap){
this.seek(t);
async scan(t, rootSel, cap){
await this.seek(t);
const root = document.querySelector(rootSel || "#root");
if (!root) return [];
const els = [root, ...root.querySelectorAll("*")].slice(0, cap || 900);
@@ -389,7 +389,7 @@ async function verify() {
].filter(Boolean);
const S = {};
for (const t of [tA1, tA2, tB1, tB2])
S[t] = await evalJs(`__seamGate.sample(${t}, ${JSON.stringify([...new Set(sels)])})`);
S[t] = await evalJs(`__seamGate.sample(${t}, ${JSON.stringify([...new Set(sels)])})`, true);
if (type === "cut") {
const ex = seam.exit,
@@ -470,8 +470,8 @@ async function verify() {
// Z-sign scan: the incoming scene's OWN entrances must not fight the seam's Z sign
if (en.axis === "z") {
const scanRoot = en.scanRoot || en.selector;
const s1 = await evalJs(`__seamGate.scan(${tB1}, ${JSON.stringify(scanRoot)})`);
const s2 = await evalJs(`__seamGate.scan(${tB2}, ${JSON.stringify(scanRoot)})`);
const s1 = await evalJs(`__seamGate.scan(${tB1}, ${JSON.stringify(scanRoot)})`, true);
const s2 = await evalJs(`__seamGate.scan(${tB2}, ${JSON.stringify(scanRoot)})`, true);
const m1 = new Map(s1.map((e) => [e.sel, e]));
const offenders = [];
for (const e2 of s2) {
@@ -539,7 +539,7 @@ async function probe() {
const dt = DT;
const scans = {};
for (const tt of [t - win, t - dt, t + dt, t + win])
scans[tt] = await evalJs(`__seamGate.scan(${Math.max(0, tt)}, "#root")`);
scans[tt] = await evalJs(`__seamGate.scan(${Math.max(0, tt)}, "#root")`, true);
const join = (a, b) => {
const m = new Map(a.map((e) => [e.sel, e]));
return b.map((e2) => ({ e1: m.get(e2.sel), e2 })).filter((p) => p.e1);
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "hyperframes",
"description": "Write HTML, render video. Compositions, Tailwind v4 styles, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
"version": "0.9.9",
"version": "0.9.77",
"author": {
"name": "HeyGen",
"email": "hyperframes@heygen.com",
+1 -1
View File
@@ -3,7 +3,7 @@
"name": "hyperframes",
"displayName": "HyperFrames by HeyGen",
"description": "Write HTML, render video. Compositions, Tailwind v4 styles, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
"version": "0.9.9",
"version": "0.9.77",
"author": {
"name": "HeyGen",
"email": "hyperframes@heygen.com"
+13
View File
@@ -28,6 +28,8 @@
"packages/producer/we-render.mjs",
"packages/producer/scripts/validate-fast-video.ts",
"packages/cli/scripts/generate-font-data.ts",
// Run by CI before the CLI tests (.github/actions/opencv-test-cache).
"packages/cli/scripts/prepare-test-opencv.mjs",
"packages/engine/scripts/test-fitTextFontSize-browser.ts",
"packages/aws-lambda/scripts/*.ts",
// Run inside the arm64 video image by the lambda-arm64-image workflow.
@@ -55,8 +57,13 @@
"packages/producer/src/services/shaderTransitionWorker.ts",
// Off-main-thread /health endpoint, spawned by path from healthWorker.ts.
"packages/producer/src/services/healthWorkerThread.ts",
// Worker thread of runHyperframeLint, spawned by path from hyperframeLint.ts.
"packages/producer/src/services/hyperframeLintWorker.ts",
// Render-setup worker, spawned by path from cancellableProcess.ts.
"packages/cli/src/renderSetupWorker.ts",
// Sub-composition build worker, started by path from subCompositionBuild.ts (.dev.mjs from source under Node).
"packages/studio-server/src/helpers/subCompositionWorker.ts",
"packages/studio-server/src/helpers/subCompositionWorker.dev.mjs",
// Update/skills cache refresh, spawned detached by path from backgroundChecks.ts.
"packages/cli/src/backgroundChecksWorker.ts",
// Parakeet decode worker, spawned by path from whisper/sherpa.ts.
@@ -66,9 +73,12 @@
"packages/cli/src/browser/chromeOrphans.fixture.ts",
"packages/cli/src/capture/publicNetwork.fixture.ts",
"packages/cli/src/utils/commandResult.fixture.ts",
"packages/studio-server/src/routes/recoveryDrafts.fixture.ts",
// Test fixture worker, spawned by path via the pools' workerEntryPath
// option from the crash-recovery tests; has no import-graph referrer.
"packages/producer/src/services/__fixtures__/crashOnMessageWorker.mjs",
// Test fixture worker for runHyperframeLint, passed by path as its workerEntry option.
"packages/producer/src/services/__fixtures__/lintWorkerStuck.mjs",
"scripts/**/*.{ts,mjs,js}",
"scripts/*/run.mjs",
// Keyframe UI components — wired dynamically via EaseCurveSection/MotionPanel.
@@ -1057,6 +1067,9 @@
"packages/inspector/src/timelineReport.ts",
"packages/inspector/src/pageQueries.ts",
"packages/core/src/runtime/timelineValues.ts",
// useColorGradingController.ts: the hook's complexity is inherited; the sealed-preview
// status read adds no branch to it, but its import lines shift the hook's fingerprint.
"packages/studio/src/components/editor/useColorGradingController.ts",
],
},
}
+15
View File
@@ -1,3 +1,18 @@
# Release and publish path: workflows, the composite actions they run, and the
# scripts the publish and catalog workflows execute need a maintainer's review.
/.github/workflows/ @miguel-heygen @jrusso1020
/.github/actions/ @miguel-heygen @jrusso1020
/.github/CODEOWNERS @miguel-heygen @jrusso1020
/scripts/validate-release-channel.mjs @miguel-heygen @jrusso1020
/scripts/package-agent-plugin.mjs @miguel-heygen @jrusso1020
/scripts/publish-catalog.mjs @miguel-heygen @jrusso1020
/scripts/ci/release-only-diff.mjs @miguel-heygen @jrusso1020
/scripts/set-version.ts @miguel-heygen @jrusso1020
/scripts/release-prepare.ts @miguel-heygen @jrusso1020
/packages/aws-lambda/scripts/pin-handler-zip.ts @miguel-heygen @jrusso1020
/packages/aws-lambda/scripts/stage-arm64-image.ts @miguel-heygen @jrusso1020
# Later lines win: the PR-captures check stays Miguel's alone.
/scripts/check-pr-captures.mjs @miguel-heygen
/scripts/check-pr-captures.test.mjs @miguel-heygen
/.github/workflows/pr-captures.yml @miguel-heygen
@@ -15,21 +15,45 @@ inputs:
required: false
default: 26d2ecd0cefba99f9d1ea92252a3a4f743a58df4c1c3cf9f8bbaaa40b1fca5b0
token:
description: Token for the GitHub API asset route.
required: false
default: ${{ github.token }}
runs:
using: composite
steps:
- name: Restore the ffmpeg tarball
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ${{ runner.temp }}/ffmpeg-archive
key: ffmpeg-linux-${{ inputs.sha256 }}
- name: Install ffmpeg
shell: bash
env:
URL: ${{ inputs.release-url }}
SHA256: ${{ inputs.sha256 }}
GH_TOKEN: ${{ inputs.token }}
run: |
set -euo pipefail
archive="$RUNNER_TEMP/${URL##*/}"
# Two attempts of at most 20 s keep the install under a minute.
curl -fsSL --retry 1 --retry-all-errors --retry-max-time 25 --connect-timeout 10 --max-time 20 \
--speed-limit 5000000 --speed-time 10 -o "$archive" "$URL"
sha256sum -c --quiet <<<"$SHA256 $archive"
name="${URL##*/}"
repo="$(sed -E 's#^https://github.com/([^/]+/[^/]+)/releases/download/.*#\1#' <<<"$URL")"
tag="$(sed -E 's#^.*/releases/download/([^/]+)/.*#\1#' <<<"$URL")"
dir="$RUNNER_TEMP/ffmpeg-archive"
archive="$dir/$name"
mkdir -p "$dir"
verified() { [ -f "$archive" ] && sha256sum -c --quiet <<<"$SHA256 $archive"; }
# github.com/releases/download answers 504 under load; the API asset route does not.
fetch() {
local id
id="$(gh api "repos/$repo/releases/tags/$tag" --jq ".assets[] | select(.name == \"$name\") | .id")"
gh api -H "Accept: application/octet-stream" "repos/$repo/releases/assets/$id" > "$archive"
}
for attempt in 1 2 3 4; do
verified && break
[ "$attempt" = 4 ] && { echo "ffmpeg download failed three times" >&2; exit 1; }
fetch || sleep $((attempt * 5))
done
bin="$RUNNER_TEMP/ffmpeg-bin"
mkdir -p "$bin"
tar -xJf "$archive" -C "$bin" --strip-components=2 --wildcards '*/bin/ffmpeg' '*/bin/ffprobe'
@@ -0,0 +1,15 @@
name: Cache opencv.js for the CLI tests
description: >-
Restore opencv.js and the face models into ~/.cache/hyperframes/opencv, where the CLI tests copy them from.
On a cache miss, fetch them once with opencv.ts's own pins, before any test runs.
runs:
using: composite
steps:
- id: cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.cache/hyperframes/opencv
key: opencv-${{ runner.os }}-${{ hashFiles('packages/cli/src/measure/opencv.ts') }}
- if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: node --import tsx packages/cli/scripts/prepare-test-opencv.mjs
+5 -2
View File
@@ -4,7 +4,10 @@ description: >-
can skip it. Main and the merge queue never skip. Needs a checkout with full history.
outputs:
release_only:
description: "'true' when every changed file is a version bump, release note or changelog entry."
description: "'true' when a pull request changes only version bumps, release notes and the changelog entry. Always 'false' elsewhere."
value: ${{ github.event_name == 'pull_request' && steps.diff.outputs.release_only || 'false' }}
release_diff:
description: "'true' when the commit changes only a release's own files, in a pull request or the merge queue."
value: ${{ steps.diff.outputs.release_only }}
runs:
using: composite
@@ -12,7 +15,7 @@ runs:
- id: diff
shell: bash
run: |
if [ "${{ github.event_name }}" = pull_request ]; then
if [ "${{ github.event_name }}" = pull_request ] || [ "${{ github.event_name }}" = merge_group ]; then
node scripts/ci/release-only-diff.mjs
else
echo "release_only=false" >> "$GITHUB_OUTPUT"
@@ -38,7 +38,7 @@ runs:
shell: bash
run: |
dir="$RUNNER_TEMP/headless-shell"
bunx @puppeteer/browsers@3.2.2 install chrome-headless-shell@stable --path "$dir"
bunx @puppeteer/browsers@3.2.2 install chrome-headless-shell@158.0.8127.36 --path "$dir"
echo "path=$(find "$dir" -type f -name chrome-headless-shell | head -n 1)" >> "$GITHUB_OUTPUT"
- shell: bash
run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
+7
View File
@@ -6,6 +6,7 @@
"prConcurrentLimit": 5,
"prHourlyLimit": 2,
"rangeStrategy": "bump",
"labels": ["dependencies"],
"lockFileMaintenance": {
"enabled": true,
"schedule": ["before 6am on monday"]
@@ -38,6 +39,12 @@
"groupName": "github-actions",
"pinDigests": true
},
{
"description": "The Lambda runtime locks take puppeteer-core and @sparticuz/chromium from bun.lock (lock-runtime.ts), so Renovate only refreshes their transitive tree, on lockFileMaintenance's schedule",
"matchFileNames": ["packages/aws-lambda/scripts/runtime-lock/**"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"enabled": false
},
{
"enabled": false,
"matchPackageNames": ["/^@hyperframes//"]
+7
View File
@@ -0,0 +1,7 @@
# Generic (AI-detected) secret scanning reads the generated skills manifest's per-skill
# 16-hex content hashes as passwords, and every regeneration raises new alerts. The file
# is written by packages/cli/scripts/gen-skills-manifest.ts and holds only skill names,
# content hashes and file counts. Provider-pattern scanning and push protection still
# cover every other path.
paths-ignore:
- "skills-manifest.json"
+1
View File
@@ -19,6 +19,7 @@ env:
jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
+77 -10
View File
@@ -59,6 +59,7 @@ jobs:
git worktree remove "$RUNNER_TEMP/reachability-base"
- name: Report head reachability
run: node scripts/check-test-reachability.mjs --report
- run: node --test packages/share/tests/*.test.mjs
- run: node --test scripts/check-test-reachability.test.mjs
- run: node scripts/check-test-reachability.mjs
@@ -72,6 +73,7 @@ jobs:
pull-requests: read
outputs:
release_only: ${{ steps.release.outputs.release_only }}
release_diff: ${{ steps.release.outputs.release_diff }}
code: ${{ (github.event_name == 'workflow_dispatch' && inputs.catalog_publish) && 'true' || steps.release.outputs.release_only == 'true' && 'false' || steps.filter.outputs.code }}
docs_catalog: ${{ steps.filter.outputs.docs_catalog }}
cli: ${{ steps.release.outputs.release_only == 'true' && 'false' || steps.filter.outputs.cli }}
@@ -111,6 +113,10 @@ jobs:
env:
BASE_SHA: ${{ steps.base.outputs.sha }}
run: sh scripts/check-large-files.sh --range "$BASE_SHA" HEAD
- name: Reject symbolic links outside the allowlist
run: node scripts/check-symlinks.mjs
- name: Reject values shaped like a live HeyGen API key
run: node scripts/check-committed-keys.mjs
- name: Find a release-only diff
id: release
uses: ./.github/actions/release-only-diff
@@ -162,6 +168,7 @@ jobs:
- "packages/cli/src/media-use/**"
- "scripts/check-media-use-copy-parity.test.mjs"
- "scripts/check-skill-import-boundaries.test.mjs"
- "scripts/check-skill-python-encoding.test.mjs"
- "scripts/generate-skill-module-copies.mjs"
- "skills/**"
- ".claude/skills/**"
@@ -230,15 +237,20 @@ jobs:
- "packages/lint/src/**"
- "packages/cli/src/{cli,help,version}.ts"
- "packages/cli/src/renderSetupWorker*.ts"
- "packages/cli/src/commands/{preview*,add,browser}.ts"
- "packages/cli/src/commands/{preview*,add,browser,batchRender,render}.ts"
- "packages/cli/src/commands/render/**"
- "packages/cli/src/share/**"
- "packages/cli/src/cloud/parsing.ts"
- "packages/share/{src,scripts}/**"
- "packages/cli/src/server/**"
- "packages/cli/src/browser/**"
- "packages/cli/src/utils/**"
- "packages/cli/src/whisper/modelFile.ts"
- "packages/cli/src/ui/**"
- "packages/cli/src/{background-removal,registry,telemetry}/**"
- "packages/cli/src/capture/{captureCompositionFrame,captureTimeout,navigateForCapture,readBoundedResponse}.ts"
- "packages/cli/src/media-use/lib/config-lock.mjs"
- "packages/cli/src/auth/{config,errors,paths,telemetryIdentity}.ts"
- "packages/cli/src/auth/**"
- "packages/cli/scripts/**"
- "packages/core/stubs/**"
- "packages/engine/src/**"
@@ -247,7 +259,7 @@ jobs:
- "packages/producer/scripts/build-hf-early-stub.ts"
- "packages/producer/build*.mjs"
- "packages/player/scripts/verify-runtime-pin.mjs"
- "packages/{studio,studio-server,core,parsers,player,sdk,lint,cli,engine,producer}/{package.json,tsconfig.json,tsup.config.ts}"
- "packages/{studio,studio-server,core,parsers,player,sdk,lint,cli,engine,producer,share}/{package.json,tsconfig.json,tsup.config.ts}"
- "packages/*/package-subpaths.json"
- "scripts/package-subpaths.mjs"
- "scripts/rewrite-relative-import-extensions.mjs"
@@ -267,7 +279,8 @@ jobs:
release-checks:
name: Release checks
needs: changes
if: ${{ needs.changes.outputs.release_only == 'true' }}
# The queue also runs this on a release, so a commit merged after the notes were drafted fails here.
if: ${{ (github.event_name == 'merge_group' && needs.changes.outputs.release_diff == 'true') || needs.changes.outputs.release_only == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
@@ -344,6 +357,7 @@ jobs:
if-no-files-found: error
retention-days: 7
- run: bun run check:cli-lazy-deps
- run: bun run check:studio-server-sync-fs
# The shards need only the built CLI; building it apart keeps them from waiting on Build's packing checks.
edit-accuracy-cli:
@@ -407,6 +421,8 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- uses: ./.github/actions/install-ffmpeg-linux
- uses: ./.github/actions/prepare-ffmpeg-bin
- run: bash scripts/ci/install-workspace-dependencies.sh
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
@@ -572,12 +588,14 @@ jobs:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
timeout-minutes: 10
# core + engine take 8-10 min (2026-11-12); a 10 min limit cancelled runs as they finished.
timeout-minutes: 15
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
lfs: true
- uses: ./.github/actions/setup-test-workspace
- run: bash scripts/ci/install-pinned-headless-shell.sh
- run: bun run --filter '@hyperframes/{core,engine}' test
test-cli:
@@ -595,6 +613,7 @@ jobs:
with:
lfs: true
- uses: ./.github/actions/setup-test-workspace
- uses: ./.github/actions/opencv-test-cache
- run: bun run --filter '@hyperframes/cli' test --shard=${{ matrix.shard }}/2
test-support:
@@ -623,7 +642,9 @@ jobs:
name: Flake gate
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 30
# The gate budgets by file count, not elapsed time (flake-gate.mjs runsFor), so a PR that
# changes heavy browser or render tests needs the time: 5 engine blur files x 10 runs take ~26 min.
timeout-minutes: 60
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
@@ -714,6 +735,7 @@ jobs:
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: bun run --filter @hyperframes/engine build
- run: bash scripts/ci/install-pinned-headless-shell.sh
- run: bun run producer:test:${{ matrix.lane }}
# Tests under skills/**/*.test.mjs are bare `node --test` files with only
@@ -752,7 +774,7 @@ jobs:
echo "::error::No skills/**/*.test.mjs files found. Did the layout change?"
exit 1
fi
SKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/creator-editing-capabilities.test.mjs)
SKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/check-skill-python-encoding.test.mjs scripts/creator-editing-capabilities.test.mjs)
printf 'Running %d skills test file(s):\n' "${#SKILLS_TESTS[@]}"
printf ' * %s\n' "${SKILLS_TESTS[@]}"
node --import ./packages/cli/scripts/test-home.mjs --test "${SKILLS_TESTS[@]}"
@@ -867,7 +889,7 @@ jobs:
run: bun install --frozen-lockfile --ignore-scripts --linker=hoisted
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: bun run --cwd packages/cli test src/utils/npxCommand.test.ts src/commands/skills.test.ts
- run: bun run --cwd packages/cli test src/utils/npxCommand.test.ts src/commands/skills.test.ts src/utils/shellArg.test.ts
env:
HF_NPX_SHIM_E2E: "1"
@@ -880,6 +902,8 @@ jobs:
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- uses: ./.github/actions/install-ffmpeg-linux
- uses: ./.github/actions/prepare-ffmpeg-bin
- run: bash scripts/ci/install-workspace-dependencies.sh
# Build workspace deps so the sdk's @hyperframes/parsers + core subpath
# imports resolve via the "node" export condition (dist) under vitest.
@@ -972,12 +996,22 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- uses: ./.github/actions/install-ffmpeg-linux
- uses: ./.github/actions/prepare-ffmpeg-bin
- run: bash scripts/ci/install-workspace-dependencies.sh
# Same reason as studio-load-smoke: vite.config.ts is loaded by Node and
# resolves the workspace packages through their "node" export condition.
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: bun run --cwd packages/core build:hyperframes-runtime
- name: Set up the Chrome build the work-count ceilings were measured on
# The ceilings are counted on one Chrome build, so a Chrome release cannot move them.
# Bump this with the ceilings in packages/studio/tests/e2e/perf-ceilings.json, never alone.
id: chrome
uses: browser-actions/setup-chrome@c785b87e244131f27c9f19c1a33e2ead956ab7ce # v1
with:
chrome-version: 156.0.8078.47
- run: echo "CHROME_PATH=${{ steps.chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
- name: Install the fixture as a Studio project
# Studio resolves projects from packages/studio/data/projects, which is
# gitignored. The fixture composition is tracked under tests/e2e, so
@@ -998,6 +1032,8 @@ jobs:
packages/studio/data/projects/undo-socket-pool
cp -R packages/studio/tests/e2e/fixtures/aroll-backdrop \
packages/studio/data/projects/aroll-backdrop
cp -R packages/studio/tests/e2e/fixtures/preview-video-regression \
packages/studio/data/projects/preview-video-regression
- name: Build the base the viewport gate compares against
# The first parent of the checked-out commit, as in base-file.sh. Measured only when the head misses a budget.
run: |
@@ -1148,6 +1184,11 @@ jobs:
node packages/studio/tests/e2e/timeline-snap-release.mjs || rc=1
STUDIO_URL="http://localhost:5316/#project/aroll-backdrop" \
node packages/studio/tests/e2e/aroll-backdrop.mjs || rc=1
rm -rf packages/studio/data/projects/graded-video-transitions
cp -R packages/studio/tests/e2e/fixtures/graded-video-transitions \
packages/studio/data/projects/graded-video-transitions
STUDIO_URL="http://localhost:5316/#project/graded-video-transitions" \
node packages/studio/tests/e2e/graded-video-transitions.mjs || rc=1
exit "$rc"
- name: Measure the caret of a text edited in place
if: success() || failure()
@@ -1170,7 +1211,7 @@ jobs:
- name: Install ffmpeg for the paused-video fixture
if: success() || failure()
uses: ./.github/actions/install-ffmpeg-linux
- name: Undo while paused videos hold the preview's sockets
- name: Verify paused-video sockets, picture quality and native recovery
# Counts the undo's wait for a socket, not its total time: unpinned it is 0 ms.
if: success() || failure()
run: |
@@ -1189,6 +1230,31 @@ jobs:
STUDIO_URL="http://localhost:5318/#project/undo-socket-pool" \
STUDIO_PROJECT_DIR="$PWD/packages/studio/data/projects/undo-socket-pool" \
node packages/studio/tests/e2e/undo-socket-pool.mjs | tee /tmp/undo-socket-pool.json
node packages/studio/tests/e2e/fixtures/preview-video-regression/generate.mjs \
packages/studio/data/projects/preview-video-regression
STUDIO_URL="http://localhost:5318/#project/preview-video-regression" \
STUDIO_PROJECT_DIR="$PWD/packages/studio/data/projects/preview-video-regression" \
OUT_DIR=/tmp/preview-video-regression \
node packages/studio/tests/e2e/preview-video-regression.mjs
- name: Verify a sealed preview's proxy wait gets past its preflight
if: success() || failure()
run: |
set -euo pipefail
project=packages/studio/data/projects/sealed-proxy
mkdir -p "$project"
cp packages/cli/src/templates/blank/index.html "$project/index.html"
ffmpeg -hide_banner -loglevel error -y -f lavfi -i testsrc=size=320x180:rate=30 -t 1 \
-c:v libx264 -pix_fmt yuv420p "$project/clip.mov"
VITE_STUDIO_OPAQUE_PREVIEW_ENABLED=1 NODE_ENV=production \
bun run --cwd packages/studio dev -- --port 5319 --strictPort &
SERVER_PID=$!
trap 'kill "$SERVER_PID" 2>/dev/null || true' EXIT
for i in $(seq 1 60); do
if curl -sf "http://localhost:5319/" >/dev/null 2>&1; then break; fi
sleep 1
done
STUDIO_URL="http://localhost:5319/#project/sealed-proxy" \
node packages/studio/tests/e2e/sealed-preview-proxy.mjs
- name: Upload gate evidence
# The gate's whole output is machine-readable evidence, and a red run is
# exactly when someone needs to read it. Keep it on failure too.
@@ -1201,6 +1267,7 @@ jobs:
/tmp/studio-open-counts.json
/tmp/inline-text-caret/*.png
/tmp/undo-socket-pool.json
/tmp/preview-video-regression/
if-no-files-found: error
# Manual editing accuracy in the built Studio, gated against the base branch's baseline.json. A pull request
@@ -1503,7 +1570,7 @@ jobs:
bun run --filter @hyperframes/cli dev -- lint /tmp/hf-cli-inside
bun run --filter @hyperframes/cli dev -- validate /tmp/hf-cli-inside --timeout 3000
bun run --filter @hyperframes/cli dev -- render /tmp/hf-cli-inside \
HF_DEBUG_RENDER=1 bun run --filter @hyperframes/cli dev -- render /tmp/hf-cli-inside \
--quality standard \
--workers auto \
--strict \
@@ -0,0 +1,45 @@
name: Retire the io.github MCP listing
# One run, by hand, after com.heygen/hyperframes is listed: marks every version of the old
# io.github.heygen-com/hyperframes listing deprecated, so registry clients stop resolving it. The registry
# takes that only from its GitHub login. Delete this workflow once it has run.
permissions: {}
on:
workflow_dispatch:
jobs:
deprecate:
if: github.ref == 'refs/heads/main'
environment: mcp-registry
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
env:
MCP_PUBLISHER_VERSION: v1.8.9
steps:
- name: Install cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
- name: Download and verify mcp-publisher
run: |
set -euo pipefail
archive="mcp-publisher_linux_amd64.tar.gz"
base_url="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}"
curl --fail --location --silent --show-error --output "$archive" "$base_url/$archive"
curl --fail --location --silent --show-error --output "$archive.sigstore.json" "$base_url/$archive.sigstore.json"
cosign verify-blob \
--bundle "$archive.sigstore.json" \
--certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"$archive"
tar xzf "$archive" mcp-publisher
rm -f "$archive" "$archive.sigstore.json"
- name: Deprecate io.github.heygen-com/hyperframes
run: |
./mcp-publisher login github-oidc
./mcp-publisher status --status deprecated --all-versions --yes \
--message "Moved to com.heygen/hyperframes" io.github.heygen-com/hyperframes
+58 -2
View File
@@ -9,10 +9,13 @@ on:
pull_request:
paths:
- "packages/aws-lambda/image/**"
- "packages/aws-lambda/hf-media-linux-aarch64.sha256"
- "packages/aws-lambda/scripts/stage-arm64-image.ts"
# A @sparticuz/chromium bump or a ZIP layout change must re-stage the image.
# A dependency bump or a ZIP layout change must re-stage the image.
- "packages/aws-lambda/package.json"
- "packages/aws-lambda/scripts/build-zip.ts"
- "packages/aws-lambda/scripts/runtimeLock.ts"
- "packages/aws-lambda/scripts/runtime-lock/**"
- ".github/workflows/lambda-arm64-image.yml"
# On main it also seeds publish.yml's ffmpeg cache.
push:
@@ -57,6 +60,10 @@ jobs:
docker buildx build --progress=plain --platform linux/arm64 --target artifact
--output type=local,dest=out packages/aws-lambda/image
- run: cat out/hf-media-check.txt && sha256sum out/*.tar.gz
# The reviewed digest of the build; a tarball from the cache or this run that differs fails here.
- name: Check the tarball against its committed digest
working-directory: out
run: sha256sum hf-media-linux-aarch64.tar.gz && sha256sum --strict -c ../packages/aws-lambda/hf-media-linux-aarch64.sha256
# Same path and key as publish.yml's lambda-arm64-ffmpeg job reads.
- if: matrix.copy == 'a' && github.ref == 'refs/heads/main'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
@@ -122,8 +129,14 @@ jobs:
reply=$(curl -sS --retry 30 --retry-all-errors --retry-delay 1 \
-d '{}' http://localhost:9001/2015-03-31/functions/function/invocations)
docker logs hf-smoke
echo "$reply"
jq 'del(.textPng)' <<<"$reply"
jq -e '.arch == "arm64" and .screenshotBytes > 0 and (.ffmpeg | startswith("ffmpeg version 7.0.2"))' <<<"$reply"
mkdir text && jq -S .fonts <<<"$reply" >text/fonts.json && jq -r .textPng <<<"$reply" | base64 -d >text/text.png
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: text-arm64
path: text/
retention-days: 7
- name: The Lambda runtime loads the handler
run: |
docker run -d --name hf-video -p 9000:8080 hf-video:ci
@@ -132,3 +145,46 @@ jobs:
docker logs hf-video
echo "$reply"
grep -q 'no recognised Action' <<<"$reply"
# The x86 function: the handler ZIP on the same base, running its @sparticuz/chromium.
x86-text:
name: x86 text render
needs: handler-zip
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: handler-zip
path: artifacts
- name: The handler ZIP renders the text page under the Lambda runtime
run: |
unzip -q artifacts/handler.zip -d task
cp packages/aws-lambda/image/smoke-video.mjs task/
base=$(sed -n 's/^ARG BASE=//p' packages/aws-lambda/image/Dockerfile)
docker run -d --name hf-x86 --platform linux/amd64 -p 9002:8080 -v "$PWD/task:/var/task:ro" \
"$base" smoke-video.handler
reply=$(curl -sS --retry 30 --retry-all-errors --retry-delay 1 \
-d '{}' http://localhost:9002/2015-03-31/functions/function/invocations)
docker logs hf-x86
jq 'del(.textPng)' <<<"$reply"
jq -e '.arch == "x64" and .screenshotBytes > 0' <<<"$reply"
mkdir text && jq -S .fonts <<<"$reply" >text/fonts.json && jq -r .textPng <<<"$reply" | base64 -d >text/text.png
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: text-x86
path: text/
retention-days: 7
# --video-arch picks which of the two renders a stack's frames, so each line must resolve to the same fonts on both.
text-compare:
name: Text fonts match across arches
needs: [image, x86-text]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
pattern: text-*
- run: cat text-arm64/fonts.json && diff text-x86/fonts.json text-arm64/fonts.json
+50
View File
@@ -0,0 +1,50 @@
name: Lambda handler ZIP
permissions:
contents: read
# The x86 handler ZIP sits close to its unzipped-size gate, and the handler bundles the producer, engine and core,
# so a change there can push it over. Build it on those PRs, so that fails before merge, not in the release job.
on:
pull_request:
paths:
- "packages/aws-lambda/**"
- "packages/producer/src/**"
- "packages/engine/src/**"
- "packages/core/src/**"
- "packages/parsers/src/**"
- "bun.lock"
- ".github/workflows/lambda-handler-zip.yml"
concurrency:
group: lambda-handler-zip-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
timeout-minutes: 4
outputs:
release_only: ${{ steps.release.outputs.release_only }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- name: Find a release-only diff
id: release
uses: ./.github/actions/release-only-diff
handler-zip:
name: Handler ZIP size
needs: changes
# A release PR changes versions and notes only; a failed change detection must not skip the build.
if: ${{ !cancelled() && needs.changes.outputs.release_only != 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run --cwd packages/aws-lambda build:zip
+47
View File
@@ -0,0 +1,47 @@
name: MCP registry watch
# Hourly: a red run means the MCP registry lists a HeyGen-named server or version server.json never held. The
# registry's GitHub login lets a job in any heygen-com repo publish io.github.heygen-com/*.
permissions:
contents: read
on:
schedule:
- cron: "41 * * * *"
workflow_dispatch:
jobs:
watch:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
persist-credentials: false
- name: Compare the registry with server.json's history
run: node scripts/mcp-registry-watch.mjs
# One open issue per incident, so the alert reaches the repo's watchers, not only the cron's last editor. It links
# the run and never quotes registry names, which their publishers choose.
alert:
needs: watch
if: failure()
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
issues: write
steps:
- name: Open or update the alert issue
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
title="MCP registry lists a HeyGen server this repo never published"
open="$(gh issue list --state open --search "in:title \"$title\"" --json number,title |
jq -r --arg t "$title" '.[] | select(.title == $t) | .number' | head -n1)"
body="The hourly MCP registry watch failed: $RUN_URL. Its log names the listings server.json never held."
if [ -n "$open" ]; then gh issue comment "$open" --body "$body"; else gh issue create --title "$title" --body "$body"; fi
+118
View File
@@ -0,0 +1,118 @@
name: motion-blur-nightly
permissions:
contents: read
env:
HYPERFRAMES_NO_TELEMETRY: "1"
concurrency:
group: motion-blur-nightly
cancel-in-progress: false
on:
workflow_dispatch:
inputs:
seeds:
description: "Seeds to run, a comma list or a-b range (default: today's 200)."
type: string
default: ""
schedule:
# Daily at 08:41 UTC, off the :00 pile and away from regression.yml's 06:17.
- cron: "41 8 * * *"
jobs:
plan:
name: Plan seeds
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
chunks: ${{ steps.plan.outputs.chunks }}
steps:
# Today's 200 seeds are days-since-2026-01-01 * 200 onward, in 4 chunks of 50.
- id: plan
env:
SEEDS: ${{ inputs.seeds }}
run: |
if [ -n "$SEEDS" ]; then
chunks="$(jq -cn --arg seeds "$SEEDS" '[{id: "custom", seeds: $seeds}]')"
else
days=$(( ($(date -u +%s) - $(date -u -d 2026-01-01 +%s)) / 86400 ))
start=$(( days * 200 ))
chunks="$(jq -cn --argjson start "$start" '[range(0; 4) | ($start + . * 50) as $from | {id: ($from | tostring), seeds: "\($from)-\($from + 49)"}]')"
fi
echo "chunks=$chunks" >> "$GITHUB_OUTPUT"
echo "$chunks"
generated:
name: Generated compositions (${{ matrix.flavour }}, ${{ matrix.chunk.seeds }})
needs: plan
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
flavour: [pin, stable]
chunk: ${{ fromJSON(needs.plan.outputs.chunks) }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- id: workspace
uses: ./.github/actions/setup-test-workspace
with:
engine: "true"
headless-shell: "true"
# The workspace action installs the pinned shell; the stable leg fetches the current stable one.
- id: stable
if: matrix.flavour == 'stable'
shell: bash
run: |
dir="$RUNNER_TEMP/headless-shell-stable"
bunx @puppeteer/browsers@3.2.2 install chrome-headless-shell@stable --path "$dir"
echo "path=$(find "$dir" -type f -name chrome-headless-shell | head -n 1)" >> "$GITHUB_OUTPUT"
- name: Run the generated compositions
working-directory: packages/engine
env:
HYPERFRAMES_BROWSER_PATH: ${{ matrix.flavour == 'stable' && steps.stable.outputs.path || steps.workspace.outputs.headless-shell-path }}
HF_BLUR_SEEDS: ${{ matrix.chunk.seeds }}
HF_BLUR_FAILURES_FILE: ${{ github.workspace }}/blur-nightly-failures.json
HF_BLUR_REQUIRED: "1"
run: bunx vitest run --project browser src/services/captureMotionBlur.generated.browser.test.ts
- name: Keep the failing seeds
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: blur-nightly-failures-${{ matrix.flavour }}-${{ matrix.chunk.id }}
path: blur-nightly-failures.json
if-no-files-found: ignore
report:
name: Report failures
needs: [plan, generated]
if: always() && needs.plan.result == 'success'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
continue-on-error: true
with:
pattern: blur-nightly-failures-*
path: failures
- name: Open issues, warn and summarize
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
GENERATED_RESULT: ${{ needs.generated.result }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: >-
node scripts/ci/motion-blur-nightly-report.mjs
--failures failures
--generated-result "$GENERATED_RESULT"
--date "$(date -u +%F)"
--run-url "$RUN_URL"
--summary "$GITHUB_STEP_SUMMARY"
+19 -2
View File
@@ -14,10 +14,22 @@ on:
- ".github/workflows/player-safari.yml"
schedule:
- cron: "23 7 * * *"
# One film many times: a fault that shows once in fifty runs needs hundreds of runs to prove gone.
workflow_dispatch:
inputs:
fixtures:
description: "Films to run, comma-separated (empty runs every heavy film)"
default: ""
runs:
description: "Runs of each film"
default: "2"
browsers:
description: "Browsers, comma-separated"
default: "safari,chrome"
concurrency:
group: player-safari-${{ github.ref }}
# Each dispatch is its own group: the runs of one proof go side by side instead of cancelling each other.
group: player-safari-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || 'auto' }}
cancel-in-progress: true
jobs:
@@ -66,9 +78,14 @@ jobs:
- name: Run heavy films in Safari and Chrome
working-directory: packages/player
env:
FIXTURES: ${{ inputs.fixtures }}
RUNS: ${{ inputs.runs || '2' }}
BROWSERS: ${{ inputs.browsers || 'safari,chrome' }}
run: |
sw_vers
CHROMEDRIVER="$CHROMEWEBDRIVER/chromedriver" bun run tests/perf/browsers/run.ts --browsers safari,chrome --runs 2
CHROMEDRIVER="$CHROMEWEBDRIVER/chromedriver" bun run tests/perf/browsers/run.ts \
--browsers "$BROWSERS" --runs "$RUNS" ${FIXTURES:+--fixtures "$FIXTURES"}
- name: Upload results
if: always()
@@ -0,0 +1,58 @@
name: Publish to MCP Registry
# Lists the hosted HyperFrames MCP (server.json) in the official MCP registry as com.heygen/*: the registry checks a
# signature against heygen.com's MCPv1 TXT record, and only the mcp-registry environment holds the key. Its GitHub
# login is not used: that grants io.github.heygen-com/* to an OIDC token from any job in any heygen-com repo.
# The registry rejects a version it already has: to change the listing, edit server.json and raise "version".
# Steps follow https://modelcontextprotocol.io/registry/authentication (DNS).
permissions: {}
on:
push:
branches: [main]
paths: [server.json]
workflow_dispatch:
jobs:
publish:
# The environment admits only main.
if: github.ref == 'refs/heads/main'
environment: mcp-registry
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
env:
MCP_PUBLISHER_VERSION: v1.8.9
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Install cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
- name: Download and verify mcp-publisher
run: |
set -euo pipefail
archive="mcp-publisher_linux_amd64.tar.gz"
base_url="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}"
curl --fail --location --silent --show-error --output "$archive" "$base_url/$archive"
curl --fail --location --silent --show-error --output "$archive.sigstore.json" "$base_url/$archive.sigstore.json"
cosign verify-blob \
--bundle "$archive.sigstore.json" \
--certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"$archive"
tar xzf "$archive" mcp-publisher
rm -f "$archive" "$archive.sigstore.json"
- name: Log in to the MCP registry
env:
MCP_PRIVATE_KEY: ${{ secrets.MCP_PRIVATE_KEY }}
run: ./mcp-publisher login dns --domain heygen.com --private-key "$MCP_PRIVATE_KEY"
- name: Publish server.json
run: ./mcp-publisher publish
File diff suppressed because it is too large Load Diff
+45
View File
@@ -0,0 +1,45 @@
name: Stale
# Nudges, then closes, PRs and needs-info issues nobody has touched in two weeks.
# Any push, comment or label change resets the clock. Rules: TRIAGE.md, "Stale PRs and issues".
on:
schedule:
- cron: "17 9 * * *"
workflow_dispatch:
permissions:
actions: write
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
days-before-pr-stale: 14
days-before-pr-close: 7
stale-pr-label: stale
stale-pr-message: >-
This PR has had no activity for 14 days, so it is marked stale and will close in 7 days.
Push a commit or leave a comment to keep it open. A maintainer can add `keep-open` to exempt it.
close-pr-message: >-
Closed after 21 days without activity. Reopen it, or open a new PR, whenever you pick it back up.
exempt-draft-pr: true
# Renovate labels its PRs; closing one would make it skip that update.
exempt-pr-labels: keep-open,dependencies,security
# Issues: only the ones waiting on the reporter for information.
only-issue-labels: triage/needs-info
days-before-issue-stale: 14
days-before-issue-close: 7
stale-issue-label: stale
stale-issue-message: >-
This issue is waiting on the information requested above and has had no activity for 14 days.
It will close in 7 days unless someone adds a comment.
close-issue-message: >-
Closed because the requested information didn't arrive. Comment with the details and we'll reopen it.
close-issue-reason: not_planned
exempt-issue-labels: keep-open
operations-per-run: 100
+1 -5
View File
@@ -9,11 +9,9 @@ env:
# Measures drag smoothness on a runner with nothing else on it. The bench measures a blank page per case
# in the same run, and the box only counts as quiet if that control dropped no frame anywhere.
on:
# Dispatch on the ref to measure: the run then checks out that ref and writes only that ref's cache.
workflow_dispatch:
inputs:
ref:
description: Commit, branch or tag to measure
default: main
filter:
description: Case ids to run (a regular expression)
default: "^(move|resize|rotate|crop)-(none|tween)-px-r0-root-z100$"
@@ -34,13 +32,11 @@ jobs:
matrix:
run: [1, 2, 3, 4, 5]
env:
BENCH_REF: ${{ inputs.ref || 'main' }}
BENCH_FILTER: ${{ inputs.filter || '^(move|resize|rotate|crop)-(none|tween)-px-r0-root-z100$' }}
BENCH_GRID: ${{ inputs.grid || 'pr' }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ env.BENCH_REF }}
lfs: true
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -0,0 +1,29 @@
name: Studio server files on Windows
# A file another program holds open, or a read-only one, must not read as missing or as a server error.
on:
pull_request:
paths:
- packages/studio-server/src/routes/files.ts
- packages/studio-server/src/routes/files.heldFile.test.ts
- packages/core/src/renameWithRetry.ts
- .github/workflows/studio-server-windows-files.yml
permissions:
contents: read
jobs:
held-file:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- run: bun install --frozen-lockfile --ignore-scripts --linker=hoisted
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: npx vitest run src/routes/files.heldFile.test.ts
working-directory: packages/studio-server
@@ -32,12 +32,19 @@ permissions:
jobs:
sync:
name: Publish changed skills
# A dispatch runs this file from the chosen branch, so only main may reach the token.
if: github.ref == 'refs/heads/main'
# The token is an environment secret; the environment admits only main.
environment: clawhub
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CLAWHUB_DISABLE_TELEMETRY: "1"
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
+7 -8
View File
@@ -27,12 +27,8 @@ on:
branches: [main]
push:
branches: [main]
# Dispatch on the ref to render: the run then checks out that ref and writes only that ref's cache.
workflow_dispatch:
inputs:
ref:
description: "Git ref to render (branch / tag / SHA)."
required: false
default: ""
concurrency:
group: windows-render-${{ github.ref }}
@@ -98,7 +94,7 @@ jobs:
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ inputs.ref || github.sha }}
ref: ${{ github.sha }}
- uses: ./.github/actions/preflight
render-windows:
@@ -125,7 +121,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ inputs.ref || github.sha }}
ref: ${{ github.sha }}
lfs: true
- name: Show platform info
@@ -459,7 +455,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ inputs.ref || github.sha }}
ref: ${{ github.sha }}
# Only the engine-cli lanes read an LFS file (engine's ffprobe test parses a producer HDR PNG).
lfs: ${{ matrix.process_tests == true }}
@@ -508,6 +504,9 @@ jobs:
bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
bun run --cwd packages/core build
- if: contains(matrix.packages, '@hyperframes/cli')
uses: ./.github/actions/opencv-test-cache
- name: Prepare browser for process tests
if: matrix.process_tests
shell: pwsh
+4 -1
View File
@@ -15,8 +15,11 @@
"registry/blocks/**/lib/*.iife.js",
"registry/blocks/{glass-shard-title,code-slice-hero,cuboid-carousel,frost-sequence-camera-orbit,orbit-card}/**/*.{js,mjs}",
"registry/blocks/frost-sequence-camera-orbit/source/**",
"registry/examples/path-traced-3d/assets/vendor/*.min.js",
"chrome/",
"packages/cli/src/media-use/lib/svg-sanitize.mjs"
"packages/cli/src/media-use/lib/svg-sanitize.mjs",
"skills/media-use/audio/scripts/lib/audio-carve.mjs",
"packages/cli/src/audio/scripts/lib/audio-carve.mjs"
],
"overrides": [
{
+4
View File
@@ -35,6 +35,7 @@ registry/blocks/cuboid-carousel/assets/addons/**/*.js
registry/blocks/orbit-card/assets/three.core.min.js
registry/blocks/orbit-card/assets/three.module.min.js
registry/blocks/orbit-card/assets/gsap-3.14.2.min.js
registry/examples/path-traced-3d/assets/vendor/three-path-tracer.min.js
# generated Lottie data: pretty-printing multiplies its size
registry/blocks/lottie-character-walk/assets/mascot.json
# repo-native skill examples with intentional pseudo-markup placeholders
@@ -58,3 +59,6 @@ skills/slideshow/SKILL.md
skills/remotion-to-hyperframes/SKILL.md
skills/reverse-any-video/SKILL.md
skills/style-sampling/SKILL.md
# scripts/generate-media-use-audio-carve.mjs — never hand-edit or reformat.
skills/media-use/audio/scripts/lib/audio-carve.mjs
packages/cli/src/audio/scripts/lib/audio-carve.mjs
+4 -1
View File
@@ -12,7 +12,7 @@ Open a pull request that adds a row to the table below. Keep entries short:
- **Contact** — a GitHub handle or contact person who can answer questions about your usage.
- **How HyperFrames is used** — one sentence on the use case (e.g., "Personalized video at scale," "Agent-authored marketing assets," "Slides-to-video pipeline").
If you'd rather not be listed publicly, that's fine — drop a note in [our Discord](https://discord.com/invite/xK4S8a6N5G) instead. We always like hearing about how the project is being used.
If you'd rather not be listed publicly, that's fine — drop a note in [our Discord](https://discord.gg/fzbdWyjphr) instead. We always like hearing about how the project is being used.
## Production
@@ -30,3 +30,6 @@ If you'd rather not be listed publicly, that's fine — drop a note in [our Disc
| [Skyflo](https://skyflo.ai) | [@KaranJagtiani](https://github.com/KaranJagtiani) | Renders Skyflo's product launch films, authored end to end by AI agents from script to soundtrack selection. |
| [OpenAI](https://openai.com) | [Brent Schooley](https://x.com/chefbrent) | Edits OpenAI developer videos in the cloud with HyperFrames, driven by an agent review-and-revise loop. |
| [Nate Herk](https://www.youtube.com/@nateherk) | [@nateherkai](https://github.com/nateherkai) | Edits YouTube videos, reels, and Shorts with Claude Code or Codex through the HyperFrames-based Herk Edit Kit. |
| [DoneCut](https://donecut.com) | [hello@donecut.com](mailto:hello@donecut.com) | Renders captions, title cards and motion-graphic overlays in DoneCut's done-for-you YouTube and Shorts edits. |
| [varg](https://varg.ai) | [@SecurityQQ](https://github.com/SecurityQQ) | Ships open agent skills that add captions, titles and motion graphics to AI-generated video as HyperFrames compositions. |
| [ViralMint](https://viralmint.net) | [@openclaw-easy](https://github.com/openclaw-easy) | Renders AI-authored motion graphics and website-to-video pieces locally in its desktop video app. |
+3 -3
View File
@@ -4,7 +4,7 @@ Open-source video rendering framework: write HTML, render video.
## Skills
This repo ships AI agent skills via [vercel-labs/skills](https://github.com/vercel-labs/skills). Install them before writing compositions — they encode framework-specific patterns that generic docs don't cover. **Default to the core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`); install everything only when the user explicitly asks for the full set.
This repo ships AI agent skills via [vercel-labs/skills](https://github.com/vercel-labs/skills). Install them before writing compositions — they encode framework-specific patterns that generic docs don't cover. **Default to the core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`, `/reverse-any-video`, `/style-sampling`); install everything only when the user explicitly asks for the full set.
```bash
npx hyperframes skills update # default: installs/refreshes the core set plus anything already installed
@@ -18,11 +18,11 @@ Make any video by asking for it; the `/hyperframes` skill carries the contract a
- `/hyperframes-cli` — the HyperFrames CLI by job: scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history; plus reading its JSON and recovering from build or render failures.
- `/hyperframes-registry` — about 450 ready-made blocks and components installed as editable source. Use before hand-building any named visual; also for `hyperframes add` and `catalog`.
- `/media-use` — get or make any media for a video (music, sound effects, images, voiceover, avatar and generated video, transcripts, cutouts, colour grades) with HeyGen or free local tools, and mix placed audio.
- `/reverse-any-video` — rebuild any video file as an editable HyperFrames project (motion graphics, talking heads, live action or AI-generated footage) and check the render against the original frame by frame. A HyperFrames Pro feature.
- `/style-sampling` — make a new episode on your topic in one of five proven styles (Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime). A HyperFrames Pro feature.
- `/figma` — bring Figma into a video: rendered assets, brand tokens, components, storyboard frames as reconstructed motion.
- `/slideshow` — a presentation, pitch deck or interactive deck. Output is a navigable deck, not a rendered MP4.
- `/remotion-to-hyperframes` — bring existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, or renders from other tools) and verify it frame by frame against the original.
- `/reverse-any-video` — rebuild any video file as an editable HyperFrames project (motion graphics, talking heads, live action or AI-generated footage) and check the render against the original frame by frame. A HyperFrames Pro feature.
- `/style-sampling` — make a new episode on your topic in one of five proven styles (Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime). A HyperFrames Pro feature.
## Issue and PR triage
+4 -4
View File
@@ -4,7 +4,7 @@ Open-source video rendering framework: write HTML, render video.
## Skills
This repo ships 9 AI agent skills via [vercel-labs/skills](https://github.com/vercel-labs/skills). Install them before writing compositions — they encode framework-specific patterns that generic docs don't cover. **Default to the core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`); `/slideshow`, `/remotion-to-hyperframes`, `/reverse-any-video`, `/style-sampling` and `/figma` install on demand. Install all 9 only when the user explicitly asks for the full set.
This repo ships 9 AI agent skills via [vercel-labs/skills](https://github.com/vercel-labs/skills). Install them before writing compositions — they encode framework-specific patterns that generic docs don't cover. **Default to the core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`, `/reverse-any-video`, `/style-sampling`); `/slideshow`, `/remotion-to-hyperframes` and `/figma` install on demand. Install all 9 only when the user explicitly asks for the full set.
```bash
npx hyperframes skills update # default: installs/refreshes the core set plus anything already installed
@@ -24,11 +24,11 @@ Make any video by asking for it; the `/hyperframes` skill carries the render con
- `/hyperframes-cli` — the HyperFrames CLI by job: scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history; plus reading its JSON and recovering from build or render failures.
- `/hyperframes-registry` — about 450 ready-made blocks and components installed as editable source: transitions, overlays, titles, kinetic type, captions, charts, maps, 3D, camera moves. Use before hand-building any named visual; also for `hyperframes add` and `catalog`.
- `/media-use` — get or make any media for a video (music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks) with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
- `/reverse-any-video` — rebuild any video file as an editable HyperFrames project (motion graphics, talking heads, live action or AI-generated footage) and check the render against the original frame by frame. A HyperFrames Pro feature.
- `/style-sampling` — make a new episode on your topic in one of five proven styles (Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime). A HyperFrames Pro feature.
- `/figma` — bring Figma into a video: rendered assets, brand tokens, components, storyboard frames as reconstructed motion, shaders and connector-assisted motion. Use when the person pastes a figma.com link or asks to use a Figma design, frame, logo or brand.
- `/slideshow` — a presentation, pitch deck or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation and presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4.
- `/remotion-to-hyperframes` — bring existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, or renders from other tools) and verify it frame by frame against the original.
- `/reverse-any-video` — rebuild any video file as an editable HyperFrames project (motion graphics, talking heads, live action or AI-generated footage) and check the render against the original frame by frame. A HyperFrames Pro feature.
- `/style-sampling` — make a new episode on your topic in one of five proven styles (Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime). A HyperFrames Pro feature.
## Skill catalog maintenance
@@ -37,7 +37,7 @@ When adding a new skill, or substantially renaming / repurposing an existing one
1. The skill list above (CLAUDE.md) AND the skill list in the root `AGENTS.md` AND the `## Skills` section in `README.md` AND `docs/guides/skills.mdx` (rendered at [hyperframes.heygen.com/guides/skills](https://hyperframes.heygen.com/guides/skills)) AND the two setup pages that compress the same descriptions — `docs/prompting/overview.mdx` ("One-time setup") and `docs/quickstart.mdx`. Out-of-date entries silently kill discovery. This list is also the sync set for a **changed contract**, not just an added or renamed skill: a reworded `description:` has to be pushed to every surface or the compressed copies start asserting the opposite of the skill.
2. The scaffolded project template `packages/cli/src/templates/_shared/CLAUDE.md` + `AGENTS.md` — written into every `hyperframes init` project, so a stale entry there ships to users. The two template files must stay byte-identical.
3. The routing surface for "make a video" requests is the References table and closing line of `skills/hyperframes/SKILL.md`. A new reference or skill that a request should reach gets a row or a mention there.
4. Keep the same grouping on every surface: the core set (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`) first, then the on-demand skills (`/figma`, `/slideshow`, `/remotion-to-hyperframes`, `/reverse-any-video`).
4. Keep the same grouping on every surface: the core set (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`, `/reverse-any-video`, `/style-sampling`) first, then the on-demand skills (`/figma`, `/slideshow`, `/remotion-to-hyperframes`). Core membership is `isCoreSkill` in `packages/cli/src/utils/skillsManifest.ts` and the `core-skills` entry of `.claude-plugin/marketplace.json`.
5. Skill count appears in the README and CLAUDE.md intro lines ("8 AI agent skills…") — update on add/remove. The `docs/guides/skills.mdx` page and the CLI templates deliberately omit a count to avoid drift; keep them count-free.
The skill's own `SKILL.md` frontmatter `description:` is the source of truth for the one-line "use when" blurb; copy from there into the catalog rather than paraphrasing.
+1 -1
View File
@@ -142,7 +142,7 @@ before merge, listed at the end.
1. Create `registry/<blocks|components>/<name>/registry-item.json` following the [schema](packages/core/schemas/registry-item.json)
2. For components: include a `demo.html`
3. Run `npx hyperframes lint` and `npx hyperframes validate` on your HTML
4. Test the install flow: `hyperframes add <name> --dir /tmp/test-project`
4. Test the install flow: `hyperframes init /tmp/test-project`, then `hyperframes add <name> --dir /tmp/test-project`
5. Generate and validate the catalog: `bun run check:catalog-drift`
### Generated catalog files
+5 -3
View File
@@ -10,7 +10,7 @@
# docker run --rm -v ./packages/producer/tests:/app/packages/producer/tests hyperframes-producer:test
# docker run --rm -v ./packages/producer/tests:/app/packages/producer/tests hyperframes-producer:test --update
FROM node:22.23.4-bookworm-slim
FROM node:22.23.5-bookworm-slim
# ── System dependencies (identical to production) ────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -80,7 +80,7 @@ ENV CONTAINER=true
# baselines in packages/producer/tests/*/output/output.mp4 stay reproducible.
# Each Chrome stable bump shifts pixel output enough to fail PSNR. Bump this
# version together with regenerating baselines via `docker:test:update`.
RUN npx --yes @puppeteer/browsers install chrome-headless-shell@152.0.7977.30 \
RUN npx --yes @puppeteer/browsers install chrome-headless-shell@158.0.8127.36 \
--path /root/.cache/puppeteer \
&& find /root/.cache/puppeteer/chrome-headless-shell -name "chrome-headless-shell" -type f \
&& echo "chrome-headless-shell installed"
@@ -104,6 +104,8 @@ COPY packages/engine/package.json packages/engine/package.json
COPY packages/player/package.json packages/player/package.json
COPY packages/producer/package.json packages/producer/package.json
COPY packages/cli/package.json packages/cli/package.json
# Sharing runs its prepare script at install time, so include its build inputs.
COPY packages/share/ packages/share/
COPY packages/studio/package.json packages/studio/package.json
COPY packages/shader-transitions/package.json packages/shader-transitions/package.json
COPY packages/aws-lambda/package.json packages/aws-lambda/package.json
@@ -137,7 +139,7 @@ COPY packages/studio-server/ packages/studio-server/
COPY packages/core/ packages/core/
# Build workspace packages so "node" export conditions resolve to built dist
RUN bun run --filter '@hyperframes/{parsers,lint,studio-server}' build \
RUN bun run --filter '@hyperframes/{parsers,lint,studio-server,share}' build \
&& bun run --cwd packages/core build
# Build core runtime artifacts (needed by renderer)
+73 -61
View File
@@ -7,27 +7,29 @@
</p>
<p align="center">
<a href="https://skills.sh/heygen-com/hyperframes"><img src="https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fskills.sh%2Fapi%2Fbadge%2Fheygen-com%2Fhyperframes" alt="Skills downloads"></a>
<a href="https://www.star-history.com/heygen-com/hyperframes"><picture><source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=heygen-com/hyperframes&type=rank&theme=dark"><img alt="GitHub top repository global rank" src="https://api.star-history.com/badge?repo=heygen-com/hyperframes&type=rank" height="36"></picture></a>
<a href="https://www.npmjs.com/package/hyperframes"><img src="https://img.shields.io/npm/v/hyperframes.svg?style=flat" alt="npm version"></a>
<a href="https://www.npmjs.com/package/hyperframes"><img src="https://img.shields.io/npm/dm/hyperframes.svg?style=flat" alt="npm downloads"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D22-brightgreen" alt="Node.js"></a>
<a href="https://discord.com/invite/xK4S8a6N5G"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
<a href="https://discord.gg/fzbdWyjphr"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
</p>
<p align="center"><b>Write HTML. Render video. Built for agents.</b></p>
<p align="center">
<a href="https://hyperframes.studio/studio">Studio</a> |
<a href="https://hyperframes.heygen.com/quickstart">Quickstart</a> |
<a href="https://hyperframes.heygen.com/showcase">Showcase</a> |
<a href="https://hyperframes.studio/">Playground</a> |
<a href="https://hyperframes.heygen.com/catalog/blocks/data-chart">Catalog</a> |
<a href="https://hyperframes.heygen.com/introduction">Docs</a> |
<a href="https://discord.com/invite/xK4S8a6N5G">Discord</a>
<a href="https://hyperframes.studio/studio?utm_source=github&utm_medium=readme">Studio</a> |
<a href="https://hyperframes.heygen.com/quickstart?utm_source=github&utm_medium=readme">Quickstart</a> |
<a href="https://hyperframes.heygen.com/examples?utm_source=github&utm_medium=readme">Showcase</a> |
<a href="https://hyperframes.studio/?utm_source=github&utm_medium=readme">Playground</a> |
<a href="https://hyperframes.heygen.com/catalog/blocks/data-chart?utm_source=github&utm_medium=readme">Catalog</a> |
<a href="https://hyperframes.heygen.com/introduction?utm_source=github&utm_medium=readme">Docs</a> |
<a href="https://discord.gg/fzbdWyjphr">Discord</a>
</p>
<p align="center">
<img src="https://github.com/user-attachments/assets/f6ff9fae-f33d-4f68-bd54-f3ed4ba6473b" alt="HyperFrames app opening from the Dock: native Mac and Linux app now available" width="800">
<img src="https://github.com/user-attachments/assets/f6ff9fae-f33d-4f68-bd54-f3ed4ba6473b" alt="The HyperFrames Studio app opening from the Dock: free for Mac, Windows and Linux" width="800">
</p>
<p align="center">
@@ -37,7 +39,9 @@
<a href="https://hyperframes.studio/studio/download?os=deb&src=github-readme&utm_source=github&utm_medium=readme">Linux (.deb)</a>
</p>
HyperFrames is an open-source framework for turning HTML, CSS, media, and seekable animations into deterministic MP4 videos. Use it locally with the CLI, from AI coding agents with skills, or as the rendering core behind hosted authoring workflows.
HyperFrames is a free, open-source framework for turning HTML, CSS, media, and seekable animations into deterministic MP4 videos. Use it locally with the CLI, from AI coding agents with skills, or as the rendering core behind hosted authoring workflows.
The [HyperFrames Studio app](https://hyperframes.heygen.com/studio-app) is free to use as well; its [Pro plan](https://hyperframes.studio/pricing) adds HeyGen's top video, image, voice and music models.
Using Claude Code, Codex, Cursor, or another coding agent? Run `npx hyperframes skills update` once, then ask your agent to make a video.
@@ -64,7 +68,7 @@ For standalone skills (including OpenCode), use:
npx skills add heygen-com/hyperframes
```
> The picker opens with nothing pre-selected — the **Core Skills** group is all you need; `/slideshow`, `/remotion-to-hyperframes`, `/reverse-any-video`, `/style-sampling` and `/figma` install on demand. Agents and non-interactive runs should use `npx hyperframes skills update` instead — it installs exactly the core set, whereas `skills add --all` installs all 9 published skills. The six repo-internal skills under `.claude/skills` / `.agents/skills` are excluded by default. For the full published set use `npx hyperframes skills`.
> The picker opens with nothing pre-selected — the **Core Skills** group is all you need; `/slideshow`, `/remotion-to-hyperframes` and `/figma` install on demand. Without the picker (a script or a CI job), `npx hyperframes skills update` installs exactly the core set, whereas `skills add --all` installs all 9 published skills. The six repo-internal skills under `.claude/skills` / `.agents/skills` are excluded by default. For the full published set use `npx hyperframes skills`.
>
> `skills add` resolves the skills.sh registry blob, which can lag `main` by hours. `npx hyperframes skills update` installs the skills from the release tag that matches your CLI version, so they match the CLI that runs them.
@@ -83,9 +87,9 @@ The skills teach agents the HyperFrames production loop: plan the video, write v
HyperFrames ships 9 skills. Make any video by asking for it; the `/hyperframes` skill carries the contract and the references (film, captions, overlays, motion, look). Read it first.
For standalone installation, default to the **core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`). `npx hyperframes skills update` installs exactly that from anywhere; the interactive picker (`npx skills add heygen-com/hyperframes`) lists it as the "Core Skills" group, nothing pre-selected. The picker is interactive-only — a non-interactive or agent run without `--skill` installs all 9. Use `npx skills add heygen-com/hyperframes --all` to install the complete published set deliberately (skips the picker), or `npx skills add heygen-com/hyperframes --skill <name>` for just one (bare name, no leading `/`).
For standalone installation, default to the **core set** (`/hyperframes`, `/hyperframes-cli`, `/hyperframes-registry`, `/media-use`, `/reverse-any-video`, `/style-sampling`). `npx hyperframes skills update` installs exactly that from anywhere; the interactive picker (`npx skills add heygen-com/hyperframes`) lists it as the "Core Skills" group, nothing pre-selected. The picker is interactive-only — a non-interactive or agent run without `--skill` installs all 9. Use `npx skills add heygen-com/hyperframes --all` to install the complete published set deliberately (skips the picker), or `npx skills add heygen-com/hyperframes --skill <name>` for just one (bare name, no leading `/`).
Standalone installs stay lean after that: `npx hyperframes init` installs the **core set** only when it is missing and never touches a skill you already have (`npx hyperframes skills update` refreshes them, and never removes one); `/figma`, `/slideshow`, `/remotion-to-hyperframes` and `/reverse-any-video` install **on demand** with `npx hyperframes skills update <name>`. Nothing re-pulls the full set behind your back.
Standalone installs stay lean after that: `npx hyperframes init` installs the **core set** only when it is missing and never touches a skill you already have (`npx hyperframes skills update` refreshes them, and never removes one); `/figma`, `/slideshow` and `/remotion-to-hyperframes` install **on demand** with `npx hyperframes skills update <name>`. Nothing re-pulls the full set behind your back.
### Plugin packages
@@ -108,9 +112,11 @@ This writes `dist/hyperframes-plugin.zip` with a `hyperframes/` root folder and
| Skill | Use when |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/hyperframes` | **Read first** for any request to make, edit, animate or render a video, motion graphic, captions or overlays with HyperFrames (HTML rendered to video). Holds the render contract and the work loop, and points to the references for format, motion, look, captions, whole films and storyboards. |
| `/hyperframes-cli` | The HyperFrames CLI by job — scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history — plus reading its JSON and recovering from build or render failures. |
| `/hyperframes-cli` | The HyperFrames CLI by job — scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, share, project history — plus reading its JSON and recovering from build or render failures. |
| `/hyperframes-registry` | About 450 ready-made blocks and components installed as editable source — transitions, overlays, titles, kinetic type, captions, charts, maps, 3D, camera moves. Use before hand-building any named visual; also for `hyperframes add` and `catalog`. |
| `/media-use` | Get or make any media for a video — music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks — with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull. |
| `/reverse-any-video` | Rebuilding any video file as an editable HyperFrames project (motion graphics, talking heads, live action, AI-generated footage), checked frame by frame against the original. HyperFrames Pro. |
| `/style-sampling` | Making a new episode on your topic in one of five proven styles: Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime. HyperFrames Pro. |
### On demand
@@ -119,10 +125,8 @@ This writes `dist/hyperframes-plugin.zip` with a `hyperframes/` root folder and
| `/figma` | Bring Figma into a video — rendered assets, brand tokens, components, storyboard frames as reconstructed motion, shaders and connector-assisted motion. Use when you paste a figma.com link. |
| `/slideshow` | A presentation, pitch deck or interactive deck — discrete slides, fragment reveals, branching, hotspot navigation, presenter mode with speaker notes. Output is a navigable deck, not a rendered MP4. |
| `/remotion-to-hyperframes` | Bringing existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, other tools' renders), verified frame by frame. |
| `/reverse-any-video` | Rebuilding any video file as an editable HyperFrames project (motion graphics, talking heads, live action, AI-generated footage), checked frame by frame against the original. HyperFrames Pro. |
| `/style-sampling` | Making a new episode on your topic in one of five proven styles: Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime. HyperFrames Pro. |
For visual design handoff workflows, see the [Claude Design guide](https://hyperframes.heygen.com/guides/claude-design) and [Open Design guide](https://hyperframes.heygen.com/guides/open-design).
For visual design handoff workflows, see the [Claude Design guide](https://hyperframes.heygen.com/guides/design-tools?utm_source=github&utm_medium=readme#start-from-claude-design-or-open-design) and [Open Design guide](https://hyperframes.heygen.com/guides/design-tools?utm_source=github&utm_medium=readme#start-from-claude-design-or-open-design).
### Manually with the CLI
@@ -137,7 +141,7 @@ npx hyperframes render # render to MP4
## What You Can Build
Need ideas? Browse the [Showcase](https://hyperframes.heygen.com/showcase) for finished videos you can watch, read, run, and remix.
Need ideas? Browse the [Showcase](https://hyperframes.heygen.com/examples?utm_source=github&utm_medium=readme) for finished videos you can watch, read, run, and remix.
- Product launch videos and feature announcements
- PR walkthroughs with animated code diffs, narration, and captions
@@ -157,57 +161,57 @@ The output is a `DESIGN.md` superset your whole toolchain can read. Atoms stay s
<table>
<tr>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/biennale-yellow"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/biennale-yellow.png" alt="Biennale Yellow" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/biennale-yellow">Biennale Yellow</a></b>
<a href="https://hyperframes.studio/design/biennale-yellow?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/biennale-yellow.png" alt="Biennale Yellow" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/biennale-yellow?utm_source=github&utm_medium=readme">Biennale Yellow</a></b>
</td>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/blockframe"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/blockframe.png" alt="BlockFrame" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/blockframe">BlockFrame</a></b>
<a href="https://hyperframes.studio/design/blockframe?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/blockframe.png" alt="BlockFrame" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/blockframe?utm_source=github&utm_medium=readme">BlockFrame</a></b>
</td>
</tr>
<tr>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/blue-professional"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/blue-professional.png" alt="Blue Professional" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/blue-professional">Blue Professional</a></b>
<a href="https://hyperframes.studio/design/blue-professional?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/blue-professional.png" alt="Blue Professional" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/blue-professional?utm_source=github&utm_medium=readme">Blue Professional</a></b>
</td>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/bold-poster"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/bold-poster.png" alt="Bold Poster" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/bold-poster">Bold Poster</a></b>
<a href="https://hyperframes.studio/design/bold-poster?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/bold-poster.png" alt="Bold Poster" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/bold-poster?utm_source=github&utm_medium=readme">Bold Poster</a></b>
</td>
</tr>
<tr>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/broadside"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/broadside.png" alt="Broadside" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/broadside">Broadside</a></b>
<a href="https://hyperframes.studio/design/broadside?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/broadside.png" alt="Broadside" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/broadside?utm_source=github&utm_medium=readme">Broadside</a></b>
</td>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/capsule"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/capsule.png" alt="Capsule" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/capsule">Capsule</a></b>
<a href="https://hyperframes.studio/design/capsule?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/capsule.png" alt="Capsule" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/capsule?utm_source=github&utm_medium=readme">Capsule</a></b>
</td>
</tr>
<tr>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/cartesian"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/cartesian.png" alt="Cartesian" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/cartesian">Cartesian</a></b>
<a href="https://hyperframes.studio/design/cartesian?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/cartesian.png" alt="Cartesian" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/cartesian?utm_source=github&utm_medium=readme">Cartesian</a></b>
</td>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/cobalt-grid"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/cobalt-grid.png" alt="Cobalt Grid" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/cobalt-grid">Cobalt Grid</a></b>
<a href="https://hyperframes.studio/design/cobalt-grid?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/cobalt-grid.png" alt="Cobalt Grid" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/cobalt-grid?utm_source=github&utm_medium=readme">Cobalt Grid</a></b>
</td>
</tr>
<tr>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/coral"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/coral.png" alt="Coral" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/coral">Coral</a></b>
<a href="https://hyperframes.studio/design/coral?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/coral.png" alt="Coral" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/coral?utm_source=github&utm_medium=readme">Coral</a></b>
</td>
<td width="50%" align="center">
<a href="https://hyperframes.studio/design/creative-mode"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/creative-mode.png" alt="Creative Mode" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/creative-mode">Creative Mode</a></b>
<a href="https://hyperframes.studio/design/creative-mode?utm_source=github&utm_medium=readme"><img src="https://static.heygen.ai/hyperframes-oss/docs/images/design-templates/creative-mode.png" alt="Creative Mode" width="100%"></a>
<br><b><a href="https://hyperframes.studio/design/creative-mode?utm_source=github&utm_medium=readme">Creative Mode</a></b>
</td>
</tr>
</table>
Browse and remix them all at [hyperframes.studio/design](https://hyperframes.studio/design).
Browse and remix them all at [hyperframes.studio/design](https://hyperframes.studio/design?utm_source=github&utm_medium=readme).
## How It Works
@@ -251,16 +255,16 @@ Preview instantly in the browser. Render locally or in Docker. The renderer seek
HyperFrames is the open-source rendering engine, plus a growing set of tools around HTML-native video creation.
| Piece | Status | What it does |
| ------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------- |
| CLI | Available | Scaffold, preview, lint, inspect, and render local video projects |
| Core / Engine / Producer | Available | Parse compositions, drive headless Chrome, encode video, and mix audio |
| Catalog | Available | Reusable blocks and components for transitions, overlays, captions, charts, maps, and effects |
| Agent skills | Available | Teach coding agents the video-production patterns that generic web docs miss |
| Studio | Available, evolving | Browser surface for previewing and editing compositions |
| AWS Lambda rendering | Available | Deploy a distributed render stack and drive renders from your laptop or CI |
| [hyperframes.studio](https://hyperframes.studio/) | Available | Community playground for previewing, iterating, sharing, and rendering HTML-native video projects |
| [frame.md](https://hyperframes.studio/design) | Available | Invert your design system for the camera — a DESIGN.md superset an agent can compose video from |
| Piece | Status | What it does |
| ------------------------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------- |
| CLI | Available | Scaffold, preview, lint, inspect, and render local video projects |
| Core / Engine / Producer | Available | Parse compositions, drive headless Chrome, encode video, and mix audio |
| Catalog | Available | Reusable blocks and components for transitions, overlays, captions, charts, maps, and effects |
| Agent skills | Available | Teach coding agents the video-production patterns that generic web docs miss |
| Studio | Available, evolving | Browser surface for previewing and editing compositions |
| AWS Lambda rendering | Available | Deploy a distributed render stack and drive renders from your laptop or CI |
| [hyperframes.studio](https://hyperframes.studio/?utm_source=github&utm_medium=readme) | Available | Community playground for previewing, iterating, sharing, and rendering HTML-native video projects |
| [frame.md](https://hyperframes.studio/design?utm_source=github&utm_medium=readme) | Available | Invert your design system for the camera — a DESIGN.md superset an agent can compose video from |
## Catalog
@@ -272,7 +276,7 @@ npx hyperframes add instagram-follow # social overlay
npx hyperframes add data-chart # animated chart
```
Browse the catalog at [hyperframes.heygen.com/catalog](https://hyperframes.heygen.com/catalog/blocks/data-chart).
Browse the catalog at [hyperframes.heygen.com/catalog](https://hyperframes.heygen.com/catalog/blocks/data-chart?utm_source=github&utm_medium=readme).
## Why HyperFrames?
@@ -296,19 +300,19 @@ HyperFrames is inspired by [Remotion](https://www.remotion.dev). Both tools rend
| Distributed rendering | Local and AWS Lambda render paths | Remotion Lambda, mature cloud renderer |
| License | Apache 2.0 | Source-available Remotion License |
Read the full comparison in the [HyperFrames vs Remotion guide](https://hyperframes.heygen.com/guides/hyperframes-vs-remotion).
Read the full comparison in the [HyperFrames vs Remotion guide](https://hyperframes.heygen.com/guides/hyperframes-vs-remotion?utm_source=github&utm_medium=readme).
## Documentation
Full documentation: [hyperframes.heygen.com/introduction](https://hyperframes.heygen.com/introduction)
Full documentation: [hyperframes.heygen.com/introduction](https://hyperframes.heygen.com/introduction?utm_source=github&utm_medium=readme)
- [Quickstart](https://hyperframes.heygen.com/quickstart)
- [Showcase](https://hyperframes.heygen.com/showcase)
- [Guides](https://hyperframes.heygen.com/guides/gsap-animation)
- [API Reference](https://hyperframes.heygen.com/packages/core)
- [Catalog](https://hyperframes.heygen.com/catalog/blocks/data-chart)
- [Examples](https://hyperframes.heygen.com/examples)
- [AWS Lambda rendering](https://hyperframes.heygen.com/deploy/aws-lambda)
- [Quickstart](https://hyperframes.heygen.com/quickstart?utm_source=github&utm_medium=readme)
- [Showcase](https://hyperframes.heygen.com/examples?utm_source=github&utm_medium=readme)
- [Guides](https://hyperframes.heygen.com/guides/gsap-animation?utm_source=github&utm_medium=readme)
- [API Reference](https://hyperframes.heygen.com/packages/core?utm_source=github&utm_medium=readme)
- [Catalog](https://hyperframes.heygen.com/catalog/blocks/data-chart?utm_source=github&utm_medium=readme)
- [Examples](https://hyperframes.heygen.com/examples?utm_source=github&utm_medium=readme)
- [AWS Lambda rendering](https://hyperframes.heygen.com/deploy/aws-lambda?utm_source=github&utm_medium=readme)
## Packages
@@ -325,9 +329,9 @@ Full documentation: [hyperframes.heygen.com/introduction](https://hyperframes.he
## Community
HyperFrames is used in production at [HeyGen](https://www.heygen.com), with community examples from teams like [tldraw](https://tldraw.com), [TanStack](https://tanstack.com), and others in [ADOPTERS.md](ADOPTERS.md). Open a PR if your team is using HyperFrames.
HyperFrames is used in production at [HeyGen](https://www.heygen.com?utm_source=github&utm_medium=readme), with community examples from teams like [tldraw](https://tldraw.com), [TanStack](https://tanstack.com), and others in [ADOPTERS.md](ADOPTERS.md). Open a PR if your team is using HyperFrames.
- Questions and ideas: [Discord](https://discord.com/invite/xK4S8a6N5G)
- Questions and ideas: [Discord](https://discord.gg/fzbdWyjphr)
- Bugs and feature requests: [GitHub Issues](https://github.com/heygen-com/hyperframes/issues)
- User research: [Book a casual 30-minute conversation with the HyperFrames team](https://calendar.google.com/calendar/u/0/appointments/schedules/AcZssZ2cSpKoDgmcmRrgekrnrgqmvPT8W6F2Zg6e7MY7IJqaZKwpn_I0NdTHkN390iguMepE_NVg8ezb?gv=true) — no preparation or sales pitch
- Security reports: [SECURITY.md](SECURITY.md)
@@ -360,3 +364,11 @@ GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/heygen-com/hyperframes.git
## License
[Apache 2.0](LICENSE)
### Share a video for review
Sign in with `npx hyperframes auth login`, then run `npx hyperframes share` to
choose who can open the rendered review. Use `share --update` when edits should
become a new version and `share --manage` for web settings. CLI and Desktop use
the same sharing system and five free projects per workspace. Existing legacy
published links remain reachable.
+6
View File
@@ -96,6 +96,12 @@ When a PR merges, verify whether it resolves the full issue and whether the fix
Keep the advertised queue within actual mentoring and review capacity. Track time to first useful response, duplicate implementations, blocked contributors, and review follow-through. Improve task preparation before adding more labels or automation.
### Stale PRs and issues
`.github/workflows/stale.yml` runs daily. A PR with no activity for 14 days gets the `stale` label and a comment, and closes 7 days later. Any push, comment or label change resets the clock. Issues follow the same timing, but only those labeled `triage/needs-info`. Drafts and PRs labeled `keep-open`, `dependencies` (Renovate) or `security` are exempt.
When a stale close frees an issue, recheck it and restore `help wanted` (and `good first issue` if it still qualifies) so someone else can take it.
### Useful GitHub searches
Run these in this repository's issue search:
+305 -278
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -10,6 +10,7 @@
"A composition is an HTML file whose root element has data-composition-id, data-width, data-height and data-duration. Timed elements use class=\"clip\" with data-start and data-duration.",
"Register one paused GSAP root timeline per composition on window.__timelines[\"<composition-id>\"]. The runtime seeks it frame by frame, so never play it yourself.",
"Rendering is deterministic: no Date.now(), no unseeded Math.random(), no network fetches at render time.",
"Check before rendering: `npx hyperframes lint`, `npx hyperframes check`, and `npx hyperframes snapshot --at 1,3,5` for frames. Make the MP4 with `npx hyperframes render --output video.mp4`."
"Run the CLI through the installed skills' launcher, `node <skills folder>/hyperframes/scripts/plugin-cli.mjs <command>`, in the project. `npx hyperframes` inside a project can start a program the project supplies, so never run it in a project someone else made.",
"Check before rendering with the CLI's `lint`, `check`, and `snapshot --at 1,3,5` for frames. Make the MP4 with `render --output video.mp4`."
]
}
+35 -1
View File
@@ -17,7 +17,6 @@
.hfc-gallery .hfc-media :is(img,video) { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; margin:0; border:0; border-radius:0; }
.hfc-gallery .hfc-preview-host { position:absolute; inset:0; pointer-events:none; opacity:0; }
.hfc-gallery .hfc-preview-host[data-ready="true"] { opacity:1; }
.hfc-gallery .hfc-preview-host hyperframes-player { display:block; width:100%; height:100%; pointer-events:none; }
.hfc-gallery .hfc-fallback { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:24px; height:100%; text-align:center; color:#ccc; background:#141414; }
.hfc-gallery .hfc-fallback span { color:#999; font-size:10px; }
.hfc-gallery .hfc-fallback strong { font-size:18px; line-height:1.2; }
@@ -79,3 +78,38 @@
.hfc-gallery .mw .sq path{stroke-dasharray:220;stroke-dashoffset:220;}
@media(prefers-reduced-motion:reduce){.hfc-gallery .mw .sq path{stroke-dashoffset:0;}}
@media(max-width:600px){.hfc-gallery{padding:0 18px;}.hfc-gallery .hfc-hero{padding:28px 0;}}
/* The catalog's own search: filters the cards below as you type. */
.hfc-search {
display: block;
width: min(560px, 100%);
margin-top: 18px;
padding: 12px 16px;
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
border-radius: 999px;
background: color-mix(in srgb, currentColor 4%, transparent);
color: inherit;
font: inherit;
font-size: 15px;
}
.hfc-search:focus-visible {
outline: 2px solid color-mix(in srgb, currentColor 40%, transparent);
outline-offset: 2px;
}
/* Pause previews: the visitor's stop for the looping cards. */
.hfc-gallery .hfc-pause {
margin-top: 14px;
padding: 7px 14px;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
border-radius: 999px;
background: transparent;
color: inherit;
font: inherit;
font-size: 13px;
cursor: pointer;
}
.hfc-gallery .hfc-pause:focus-visible {
outline: 2px solid color-mix(in srgb, currentColor 45%, transparent);
outline-offset: 2px;
}
+2072
View File
File diff suppressed because it is too large Load Diff
+22 -1
View File
@@ -14,7 +14,7 @@ Open a pull request that adds your team to [`ADOPTERS.md`](https://github.com/he
- **How HyperFrames is used** — one sentence on the use case.
- **Logo** _(optional)_ — a square logo or icon to show on this page. If you skip this, your entry still appears in the table below.
If you'd rather not be listed publicly, we'd still love to hear about your usage — drop a note in [our Discord](https://discord.com/invite/xK4S8a6N5G).
If you'd rather not be listed publicly, we'd still love to hear about your usage — drop a note in [our Discord](https://discord.gg/7uMDe3PwQn).
## Teams using or evaluating HyperFrames
@@ -95,6 +95,27 @@ If you'd rather not be listed publicly, we'd still love to hear about your usage
[@KaranJagtiani](https://github.com/KaranJagtiani)
</Card>
<Card title="DoneCut" href="https://donecut.com">
<img alt="DoneCut logo" src="https://www.google.com/s2/favicons?domain=donecut.com&sz=128" width="48" height="48" style={{borderRadius: "10px", marginBottom: "12px"}} />
Renders captions, title cards and motion-graphic overlays in DoneCut's done-for-you YouTube and Shorts edits.
[hello@donecut.com](mailto:hello@donecut.com)
</Card>
<Card title="varg" href="https://varg.ai">
<img alt="varg logo" src="https://www.google.com/s2/favicons?domain=varg.ai&sz=128" width="48" height="48" style={{borderRadius: "10px", marginBottom: "12px"}} />
Ships open agent skills that add captions, titles and motion graphics to AI-generated video as HyperFrames compositions.
[@SecurityQQ](https://github.com/SecurityQQ)
</Card>
<Card title="ViralMint" href="https://viralmint.net">
<img alt="ViralMint logo" src="https://www.google.com/s2/favicons?domain=viralmint.net&sz=128" width="48" height="48" style={{borderRadius: "10px", marginBottom: "12px"}} />
Renders AI-authored motion graphics and website-to-video pieces locally in its desktop video app.
[@openclaw-easy](https://github.com/openclaw-easy)
</Card>
</CardGroup>
The HeyGen team's actual launch-video sources (the ones featured in product announcements) live at [hyperframes-launches](https://github.com/heygen-com/hyperframes-launches) — see [Examples](/examples) for the writeup.
+5
View File
@@ -61,6 +61,11 @@ write your own, it must follow the
order, nothing resolves after the frame is committed, and the lifecycle stays
`init` → `seekFrame` (many times) → `destroy`.
With screenshot capture, Chrome redraws each changed raster tile whole, so a frame's
pixels don't depend on what the page drew before it. The worker count, chunk boundaries
and seek order don't change them. [Motion blur](/guides/motion-blur#cost-and-limits) is
the exception.
## Rule out your machine as a variable
Fonts and Chrome versions differ between computers, so a local render can shift
+1 -1
View File
@@ -10,7 +10,7 @@ description: "Connect a seekable animation timeline to a custom HyperFrames host
A frame adapter answers one question: what state should an animation have at frame N?
Most composition authors do not implement this interface. HyperFrames already seeks registered GSAP, CSS, Anime.js, Lottie, Three.js, Web Animations, and TypeGPU animation through its browser runtime. Use the [GSAP guide](/guides/gsap-animation) for the normal authoring path.
Most composition authors do not implement this interface. HyperFrames already seeks registered GSAP, CSS, Anime.js, Lottie, Three.js, Web Animations, and TypeGPU animation through its browser runtime. Use the [GSAP guide](/guides/gsap-animation) for the normal authoring path. For a Three.js scene with a raster preview and a path-traced export, start from the [path-traced 3D example](/guides/path-tracing).
Use `FrameAdapter` when you are building a custom host around a seekable animation object.
+67 -12
View File
@@ -60,20 +60,23 @@ Variables live on the composition declaration:
></html>
```
Supported declared types are:
### What can be a variable
| Type | Good for |
| --------- | -------------------------------------- |
| `string` | Text or a media path |
| `number` | Counts, positions, sizes, or strengths |
| `color` | Approved color choices |
| `boolean` | On or off |
| `enum` | One value from an approved list |
| `font` | A font-family choice |
| `image` | An image path or image value |
A variable has one of seven kinds. The kind sets the control the browser editor
shows and what a render accepts for it.
The type lets the browser editor show the right control and lets rendering catch invalid
values.
| Kind | What it holds | Example |
| --------- | ---------------------------------------------- | -------------------------------- |
| `string` | Text, or a link to a file | A customer name, a video link |
| `number` | A count, position, size, or strength | Seats on a plan, a speed |
| `color` | One approved color | A brand accent |
| `boolean` | On or off | Show the badge |
| `enum` | One value from a list you approved | `light` or `dark` |
| `font` | A font family | The headline typeface |
| `image` | A link to a picture | A customer logo |
Video and sound have no kind of their own. Declare the link as a `string`, then
bind it to a `<video>` or `<audio>` element, as in [Swap in a video or a sound](#swap-in-a-video-or-a-sound).
### Say what a slot means, not where it sits
@@ -137,6 +140,50 @@ const { featured = false } = window.__hyperframes.getVariables();
document.querySelector(".badge").hidden = !featured;
```
## Swap in a video or a sound
Bind a link to a media element with `data-var-src`. Keep a `src` on the element
as the placeholder:
```html index.html
<html
data-composition-variables='[
{"id":"welcomeClip","type":"string","label":"Welcome clip","default":"assets/placeholder.mp4"}
]'
>
<video
data-var-src="welcomeClip"
src="assets/placeholder.mp4"
data-start="0"
data-track-index="0"
playsinline
></video>
</html>
```
Render the same saved project once per account by passing each account's clip:
```bash
npx hyperframes render \
--variables '{"welcomeClip":"https://example.com/clips/northstar.mp4"}' \
--output northstar.mp4
```
The film takes the length and the sound of the clip you pass, not the
placeholder's. A 3 second placeholder swapped for a 5 second clip renders 5
seconds, and that clip's sound is mixed once.
Limits:
- `data-var-src` works on `<video>`, `<audio>`, `<img>`, and `<source>`. On any
other element it is ignored.
- The link must be a path or an `http`, `https`, or `blob` URL. Any
other value, including a `data:` video, is dropped and the placeholder
renders instead, with a warning.
- A clip inside a nested composition that receives its own `data-variable-values`
is resolved by the browser during the render, not before it.
- The root composition's length follows the clips it plays. It is not a variable.
## Give each nested composition different values
A parent can reuse the same composition several times:
@@ -198,6 +245,14 @@ npx hyperframes render \
--output "renders/{name}.mp4"
```
Every output stays inside the folder written before the first placeholder
(`renders/` here). A row value may name a subfolder of it, but a value that
leads outside it, such as `../other`, stops the batch before anything renders.
A template that starts with a placeholder, such as `{name}.mp4`, keeps every
output inside the folder you run the command from. Only `--output "{path}"`,
the placeholder alone, uses each row's value as the whole output path,
absolute paths included.
Start with the default single-row concurrency. Increase `--batch-concurrency`
only after one real render is stable and the machine has enough memory for
several renders at once.
+3 -1
View File
@@ -207,4 +207,6 @@ Include:
External contributors should attach the preview MP4. A maintainer will publish
the final Catalog media. HeyGen contributors can use
`scripts/upload-docs-images.sh` after preview review.
`scripts/upload-docs-images.sh` after preview review, from a checkout that holds
only the regenerated media, not from a contributor's branch. The script publishes
regular files only and stops if anything under `docs/images/` is a symbolic link.
+5 -1
View File
@@ -59,7 +59,11 @@ The docs changelog lives in `docs/changelog.mdx` and uses Mintlify `<Update>` en
<Step title="Publish">
Push the `release/v0.6.53` branch without its local tag, open a PR to `main`, and merge it after approval and CI. The publish workflow pins its checkout to the exact merge SHA, verifies that SHA, creates `v0.6.53`, and uses `releases/v0.6.53.md` as the GitHub Release body. If no reviewed release file is present, it falls back to GitHub-generated notes.
To recover a failed publish, rerun the original merged-PR workflow. Do not push the stable tag or use a manual dispatch; those paths are intentionally disabled so recovery cannot publish a different commit.
To recover a failed publish, rerun the failed jobs of the publish run on the release PR's merge into `main`. Do not push the stable tag or use a manual dispatch; those paths are intentionally disabled so recovery cannot publish a different commit.
Retries reuse the original run's immutable `release-bundle` artifact, including the npm tarballs and Lambda assets. The publish job stores the release ID, source commit, run ID, and Lambda digests in a separate `lambda-release-receipt` artifact before uploading assets. It accepts an existing release only when that receipt matches, and skips an existing asset only when its digest matches the original bundle. Partially uploaded asset pairs can resume from those original bytes. An existing npm version with different contents fails even on a retry.
Both artifacts are retained for seven days. An expired or deleted receipt, a recreated release, mismatched bytes, or a failure between release creation and receipt persistence stops automatic recovery. Inspect the original run and any already published packages before choosing a new release version; do not recreate a receipt from release metadata or delete published assets just to make a retry pass. This workflow does not enable repository-wide immutable releases or add deploy-time attestation verification.
The generated compare link points to the future `v0.6.53` tag. It may not resolve until the release PR merges and the publish workflow creates the tag.
</Step>
+14 -6
View File
@@ -6,7 +6,7 @@ description: How HyperFrames keeps alpha-only work out of stable releases.
HyperFrames publishes two release channels:
- Stable releases use versions like `0.4.24` and publish to the npm `latest` dist-tag.
- Prereleases use versions like `0.4.24-alpha.1` and publish to the npm dist-tag named by the prerelease suffix, such as `alpha`.
- Prereleases use versions like `0.4.24-alpha.1` and publish to the npm dist-tag named by the prerelease suffix, such as `alpha`. The suffix must be one of `alpha`, `beta`, `rc`, `next`, `canary`, `hdr`, `native` or `desktop`, in lower case. The publish workflow refuses any other suffix before it publishes.
## Branch policy
@@ -15,7 +15,7 @@ Dist-tags only control npm install defaults; they do not remove code from a pack
- `main` is stable/releasable. Anything merged to `main` is eligible for `latest`.
- `release/v*` branches are for stable patch releases and hotfixes.
- `next`, `alpha`, `beta`, `rc`, `canary`, and `prerelease/*` branches are for prerelease integration.
- `next` and `alpha` are the prerelease branches. A prerelease tag publishes only a commit already on `main`, `next` or `alpha`.
If a feature should ship in alpha only, merge or retarget that PR to a prerelease branch instead of `main`.
@@ -32,7 +32,7 @@ On the first run, `release:prepare` drafts missing changelog artifacts and exits
See [Changelog process](/contributing/changelog-process) for the full workflow. For stable releases, `bun run set-version <version>` still enforces this checkpoint when maintainers run the lower-level release command directly.
Push the release branch without its local tag, open a PR to `main`, and merge it after approval and CI. The publish workflow checks out the exact PR merge SHA, verifies it before publishing, creates the stable tag at that commit, publishes npm packages, and creates the GitHub release.
Push the release branch without its local tag, open a PR to `main`, and merge it after approval and CI. The publish workflow checks out the exact PR merge SHA, verifies it before publishing, creates the stable tag at that commit, publishes npm packages, and creates the GitHub release. Nothing waits for an approval after the merge: the reviewed release PR is the review.
If that workflow needs recovery, rerun its original merged-PR event. Stable tag pushes and manual dispatches do not publish, so recovery cannot select a different commit.
@@ -40,7 +40,7 @@ For hotfixes, branch from the last stable tag, cherry-pick only the fix, publish
## Alpha release
Alpha releases must be reachable from a prerelease branch such as `origin/next` or `origin/alpha`.
Alpha releases must be reachable from `origin/main`, `origin/next` or `origin/alpha`. The publish workflow refuses a tag on any other commit before it builds anything.
Use the same changelog draft workflow when the prerelease contains changes that users should know about.
```bash
@@ -50,6 +50,8 @@ git push origin next
git push origin v0.4.25-alpha.1
```
The tag push starts the publish workflow, which builds, packs and publishes the release with no approval step. Only repository admins may push `v*-*` tags.
Consumers can install alpha builds explicitly:
```bash
@@ -63,9 +65,15 @@ The publish workflow validates release channel boundaries before publishing:
- Stable versions must publish with `latest`.
- Prerelease versions must publish with the prerelease dist-tag, such as `alpha`.
- Stable releases must come from a merged, reviewed `release/vX.Y.Z` PR.
- Prerelease tags must be reachable from a prerelease branch.
- Stable releases must come from a merged `release/vX.Y.Z` PR whose final commit a maintainer with write access approved, after the PR's last base change. That maintainer must not have opened the PR, pushed to its branch (any push the branch's activity log records), or appear as an author or committer of its commits. A second person with write access must have opened the PR or pushed to its branch. Reviews from accounts without write access count neither as approvals nor as change requests.
- Prerelease tags must point at a commit already on `main`, `next` or `alpha`.
- Only repository admins may push prerelease (`v*-*`) tags. That is a prerelease's only review: a prerelease branch takes pushes without a PR, and no approval follows the tag.
- Every publish runs in the `npm-publish` environment, which npm trusted publishing names; it waits for no approval.
- Merged `release/vX.Y.Z` PRs publish stable releases only.
- Every publish job verifies that its checkout matches the immutable event SHA.
- Builds, lifecycle scripts and `npm pack` run in a job with a read-only token and no secrets.
- The job that publishes to npm runs no code from the release commit, and it holds no stored npm token: npm trusted publishing authenticates it with the job's OIDC token. It checks that every packed tarball is a package this workflow publishes, at exactly the release version, then uploads it with lifecycle scripts off.
- A version already on npm is skipped only when its contents match the original run’s tarball, including on a retry. Different contents fail the publish.
- The Lambda handler zip and arm64 video image are built by the run, and `@hyperframes/aws-lambda` pins those builds. Retries reuse the original immutable run bundle. If the version is already on npm, its verified package must pin those same bytes before any release mutation. A separate immutable run receipt binds the release ID and asset digests; foreign releases and mismatched assets fail instead of being adopted or overwritten. See [publish recovery](/contributing/changelog-process) for retention and recovery limits.
This prevents an alpha-only feature from being included in a stable hotfix by accident.
@@ -71,6 +71,14 @@ npx ./hyperframes-<version>.tgz --help
Run the archive against an isolated project as well as the command you changed.
A `hyperframes preview` started through `npx` keeps its server running when the
`npx` process is stopped. Stop the server by the process listening on its port,
or the next run talks to the old one:
```bash
kill "$(lsof -ti tcp:<port> -sTCP:LISTEN)"
```
## What to verify
Test the user-visible outcome, not only the exit code:
@@ -0,0 +1,7 @@
# Validate local sharing
Run the share package, CLI, and Studio tests before publishing a change to the sharing flow. For manual verification, create a review link in the CLI, then open the same folder in local Studio and add a version. Verify that both surfaces reuse the existing link and that an interrupted upload can resume without creating another version.
Check that copying an existing link leaves local edits untouched, that changing or disabling access preserves the expected link state, and that existing published links and updates continue to work. For accounts that support editable project files, verify that the source matches the rendered version and can be opened by an authorized recipient.
Sharing telemetry uses the existing CLI preference. Verify that opting out suppresses events and that payloads contain no project paths, titles, review links, credentials, or raw errors. Upload admission, playback readiness, and copying a link are separate events.
+9 -10
View File
@@ -347,6 +347,11 @@ samp {
border-radius: 0;
border-color: var(--hf-ui-border) !important;
color: var(--hf-heading) !important;
/* The whole command stays on screen. A page's link can add values to it, and
a reader should see everything they are about to paste, not the start of a
line that scrolls. */
white-space: pre-wrap;
overflow-wrap: anywhere;
}
/*
@@ -503,11 +508,11 @@ samp {
color: var(--hf-heading);
}
#navbar .nav-tabs-item[aria-current] {
background: var(--hf-brand-soft);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hf-brand) 55%, transparent);
/* Mintlify marks the current tab with aria-current, except the Docs dropdown, which gets .text-primary instead */
#navbar .nav-tabs-item[aria-current],
#navbar .nav-tabs-item.text-primary {
background: color-mix(in srgb, var(--hf-heading) 9%, transparent);
color: var(--hf-heading) !important;
font-weight: 600;
}
#navbar .nav-tabs-item:focus:not(:focus-visible) {
@@ -1421,12 +1426,6 @@ h2 { clear: both; }
-webkit-backdrop-filter: blur(20px);
}
@media (min-width: 1024px) {
#navbar .nav-tabs-item.text-primary {
background: var(--hf-chip);
}
}
/* Headlines: hyperframes.dev's heavy, tight TT Norms. */
#page-title {
font-size: clamp(2.25rem, 4vw, 3.5rem);
+2 -2
View File
@@ -74,7 +74,7 @@ CLI versions reserved 8 by default, so they stay at 8 until you pass
`--concurrency=N`. Pass `--concurrency=none` to remove the reservation so each
render sizes itself to the account.
`deploy` records the stack's bucket and state machine in `.hyperframes/lambda-stack-<stack-name>.json` under the current directory. Every other `lambda` command reads that file, so run them from the same directory with the same `--stack-name`, or they stop with "no stack state". Redeploying to upgrade rewrites the same file.
`deploy` records the stack's bucket and state machine in `.hyperframes/lambda-stack-<stack-name>.json` under the current directory. Every other `lambda` command reads that file, so run them from the same directory with the same `--stack-name`, or they stop with "no stack state". Redeploying to upgrade rewrites the same file. The commands check the file's fields, and they refuse a file that is a symlink. Uploads go only to a bucket owned by the AWS account of the file's state machine, so a state file in a project someone sent you cannot send the project to their bucket.
After `deploy`, render anything with:
@@ -104,7 +104,7 @@ The stack's bucket expires objects under `cas/sha256/` 30 days after they were l
#### Upgrading from a version that deployed x86 only
`lambda deploy` now runs the plan and the render chunks on an arm64 container-image function by default; audio and assemble stay on the x86 function. Redeploying an existing stack without `--video-arch` moves it to arm64 and adds the `<stack>-video` ECR repository. To keep a stack on x86, pass `--video-arch x86_64` on every deploy. `--chrome-source chrome-headless-shell` also needs `--video-arch x86_64`, because the arm64 image bundles sparticuz Chrome only.
`lambda deploy` now runs the plan and the render chunks on an arm64 container-image function by default; audio and assemble stay on the x86 function. Redeploying an existing stack without `--video-arch` moves it to arm64 and adds the `<stack>-video` ECR repository. To keep a stack on x86, pass `--video-arch x86_64` on every deploy. `--chrome-source chrome-headless-shell` also needs `--video-arch x86_64`, because the arm64 image is built from the sparticuz handler ZIP. The arm64 image itself runs Chrome for Testing's linux-arm64 `chrome-headless-shell`, whatever `--chrome-source` says.
#### Upgrading from a version before shared content storage
+1 -1
View File
@@ -59,7 +59,7 @@ hyperframes cloud render --resolution 4k
## Check what will upload
Media files of 5 MB or more that the project names by path upload as HeyGen assets and are referenced by public, unsigned URL, so large footage and audio do not count against the 200 MB project archive limit. Uploads are cached, so re-rendering uploads only new or changed media. Media is streamed from disk as it uploads, so a large file never has to fit in memory; editing one while the command is preparing it stops the run. Inspect what will upload before starting a render:
When the project fits under the 200 MB project archive limit, it is sent as one zip. When it does not, media no page, script or variable names is left out first, then the largest media files the project names by path upload as HeyGen assets, eight at a time, just enough for the rest to fit, and are referenced by public, unsigned URL. Uploads are cached, so re-rendering uploads only new or changed media. Media is streamed from disk as it uploads, so a large file never has to fit in memory; editing one while the command is preparing it stops the run. Inspect what will upload before starting a render:
```bash
hyperframes cloud render --dry-run
+1 -1
View File
@@ -31,7 +31,7 @@ The CLI can build the renderer automatically when it runs from a HyperFrames
repository checkout. Outside the repository, pass an image built from
`packages/gcp-cloud-run/Dockerfile` with `--image`.
The renderer image uses Chrome 152, matching the CLI's managed browser, so
The renderer image uses Chrome 158, matching the CLI's managed browser, so
gradient text inside transformed child elements also renders in Cloud Run.
Existing deployments need a rebuilt image and a new deployment to receive
the browser update.
@@ -98,7 +98,7 @@ rendering with the actual composition before choosing a path.
### State files are local by default
`hyperframes lambda deploy` writes `<cwd>/.hyperframes/lambda-stack-<name>.json` so subsequent verbs don't re-derive the bucket / state-machine ARN. Two worktrees produce two distinct state files. If you need a shared default location across CI workers, symlink the directory or pass `--stack-name` explicitly on every call.
`hyperframes lambda deploy` writes `<cwd>/.hyperframes/lambda-stack-<name>.json` so subsequent verbs don't re-derive the bucket / state-machine ARN. Two worktrees produce two distinct state files. CI workers that share a stack run `deploy` once and copy the file into each checkout, or pass `--stack-name` explicitly on every call. The CLI refuses a state file, or a `.hyperframes` folder, that is a symlink.
### IAM policy is print-then-narrow
+143
View File
@@ -0,0 +1,143 @@
---
title: "Editable source in a share"
description: "Choose whether a CLI review includes the project files used by its rendered video."
---
`hyperframes share` can attach editable project files to the same review page
used by Desktop. Source upload requires `--include-source` for each upload, including updates.
Without it, terminal, JSON and unattended commands share video only.
Local Studio offers an unchecked **Include editable project files** option with
a disclosure of the upload scope before creating or updating a share.
Source is available when the workspace's sharing and
Composition Sync permissions allow it. The recipient's access still depends on
the share's settings and their plan.
```bash
hyperframes share --public # Video only (default)
hyperframes share --public --include-source # Also upload editable project files
hyperframes share --update # Update the existing review
hyperframes share --update --video-only # Explicitly omit editable source
```
The five-free-project sharing limit is unchanged. A workspace that cannot use
Composition Sync can still share its rendered video. The command reports
`source.at: "video_only"` and a reason in JSON; this is a successful video share.
A source upload does not grant anyone editing access by itself. Manage access
through `hyperframes share --manage`.
## What travels
Source uses the same portable project policy as Desktop: authored HTML, scripts,
styles, assets, and supported Studio edit metadata. Known credential filenames
(such as `.env`, `.npmrc`, and `*.pem`), dependency directories, chat
history, local sharing state, and recorded render outputs stay out.
These are filename rules, not a secret scanner. `.gitignore` does not control
source capture. Other regular files can be included even if Git ignores them.
Keep private material outside the project, or use `--video-only` when you do not
want to upload project files. Unsupported symlinks and invalid file names stop
source preparation rather than silently producing an incomplete editable project.
To exclude scratch files, add `.hyperframesignore` at the project root:
```text
# Literal paths, relative to the project root
out.json
scratch/
```
Each line excludes that file or folder and its contents from source capture and
sharing change detection. Blank lines and lines starting with `#` are ignored.
Use paths with `/` separators or a single `*` wildcard (for example, `*.log`
or `scratch/*.json`). Basename patterns apply in every folder. Negation, absolute paths, and
excluding `index.html` are rejected. Do not exclude assets your composition uses.
These rules can only exclude files, never re-include credentials or other files
blocked by the portable project policy.
Cloud render reads the same file as gitignore syntax, so it may hold rules this
reader rejects, such as `/exports/` or `**/*.mov`. Source capture, and anything
else that picks project files to upload, then stops with an error. Change
detection keeps working and ignores the file's rules, so those files still count
as changes.
The upload uses the workspace's file-count, per-file, project-size and manifest
limits. Large media uploads in parts. Only a verified published snapshot that
still matches the rendered project can be attached to the video version. The CLI
checks the contents of rendered assets, including changes that preserve file
sizes and timestamps. Deployments must include the exact source storage origins
in `HYPERFRAMES_REVIEW_UPLOAD_ORIGINS` alongside the video storage origins.
## Interrupted uploads and unavailable source
Retry the same command after a network interruption. Its local record preserves
the composition identity, upload idempotency key and completed file parts.
A storage upload that makes no progress for 60 seconds is stopped and retried
within the retry limit. The source record lives at `.hyperframes/share-sync.<backend-hash>.json` and
contains no sign-in token. Do not copy that record into another project or edit
its account, workspace or path: mismatches stop sharing to avoid overwriting
another project's source.
If source changed, conflicts with another snapshot, or remains under verification,
the command explains why it stopped. Retry after resolving the problem, or pass
`--video-only` to share just the rendered video. An unexpected source upload
failure never silently turns an eligible source share into video-only. If the
server confirms an upload expired or failed, a retry starts a new upload. If
the files changed while an earlier upload was still pending, the CLI cancels
that upload before starting a new one. It waits for uploads already under
verification and preserves conflicts for explicit resolution.
A video-only retry does not resume an interrupted video upload that already
includes source. Check its status before retrying. To publish the same render as
a new video-only version after the earlier upload finishes, use
`hyperframes share --update --video-only`. Previous versions retain their files.
`--status` reads the review without uploading anything. Its source state is
`not_checked`; it does not promise that local files match the shared version.
The upload result uses `ready` only after source verification and attachment
preparation; video readiness remains the separate top-level `ready` field.
## Refused uploads
A refused upload is saved locally so `--status` reports a failure, including
across CLI restarts. Retry an unfinished first share with the same command;
use `--update` to replace a previously shared video. An upload whose result is
still unknown keeps its recovery record to avoid creating duplicate versions.
`export_blocked` means recent content moderation strikes prevent new video
versions in this workspace. Contact HeyGen support to appeal. Rendering again,
changing audience, or having a paid plan does not lift the block.
`can_register_project` describes project quota eligibility, not moderation
permission to upload a video.
`--manage` requires an existing share. Audience flags are for first-share
creation and cannot be combined with `--status`, `--manage`, or `--update`.
Progress is written to stderr once per step; `--json` suppresses progress and
unrelated skill-update notices. Set `HF_DEBUG_RENDER=1` only when diagnosing
render initialization.
## Integrating another local host
`@hyperframes/share` exports `shareSources` and
`createProjectShareSourceStore`. Call `prepare(projectPath, renderedFingerprint)`
before `addVersion`, then pass `filesForExport` and `requireSource: true` for a
ready source result. `requireSource` prevents a later mismatch from degrading to
a video-only version. Pass `omitSource: true` for a video-only operation that
must not reuse a source-bearing version or pending upload.
A host may inject its existing binding store, or supply a read-only
`existingBinding` resolver for Desktop bindings. Exact snapshots can be reused
only in the same account and owner workspace, without a pending sync operation.
Unsynced changes in a Desktop-owned binding require a Desktop sync first. The
standalone CLI keeps its own project-local sync record; it does not discover or
modify Desktop's application data directory.
## Related topics
- [CLI reference](/packages/cli#share) — audiences, updates, and processing status.
- [CLI guide](/developers/cli) — choose the command for your task.
Sharing excludes scratch `*.log` and `*.swp` files by default, both from render
change detection and uploaded project files. Other files remain inputs because
compositions can load them dynamically. Invalid rules report
`invalid_source_ignore`; sharing stops rather than silently uploading excluded files.
+61
View File
@@ -0,0 +1,61 @@
// The top bar's "Docs" menu holds three sections with their own sidebars (docs.json, navigation.tabs[0].menu). Once a
// visitor is inside one, the bar still says "Docs" and two of the sidebars both start with "Start here", so nothing on
// the page says which section this is. This names the open section in the menu's own button ("Studio app ▾"), the way
// a picker shows what is picked. Mintlify runs every .js file in docs/ on every page
// (mintlify.com/docs/customize/custom-scripts). A section is known by its first page, which only its sidebar links to;
// keep these in step with docs.json. Anywhere else (Catalog, a page in no section) the button keeps "Docs".
(function () {
var MENU = "Docs";
var SECTIONS = [
{ name: "Studio app", firstPage: "/studio-app" },
{ name: "Developers", firstPage: "/developers/overview" },
{ name: "Make a video", firstPage: "/introduction" },
];
var NAMES = [MENU].concat(
SECTIONS.map(function (section) {
return section.name;
}),
);
// The button's own text node, renamed in place: React keeps its node, so its next update of the bar still works.
function menuLabel() {
var buttons = document.querySelectorAll("#navbar button.nav-tabs-item[aria-haspopup=menu]");
for (var i = 0; i < buttons.length; i++) {
var walker = document.createTreeWalker(buttons[i], NodeFilter.SHOW_TEXT);
for (var node = walker.nextNode(); node; node = walker.nextNode()) {
if (NAMES.indexOf(node.nodeValue.trim()) !== -1) return node;
}
}
return null;
}
function openSection() {
var sidebar = document.getElementById("sidebar-content");
if (!sidebar) return null;
for (var i = 0; i < SECTIONS.length; i++) {
if (sidebar.querySelector('a[href="' + SECTIONS[i].firstPage + '"]')) return SECTIONS[i].name;
}
return null;
}
function update() {
var label = menuLabel();
if (!label) return;
var text = openSection() || MENU;
if (label.nodeValue !== text) label.nodeValue = text;
}
// Mintlify swaps pages without a reload and redraws the bar, so the label is set again after the page changes, at
// most once a frame.
var queued = false;
new MutationObserver(function () {
if (queued) return;
queued = true;
requestAnimationFrame(function () {
queued = false;
update();
});
}).observe(document.documentElement, { childList: true, subtree: true });
update();
})();
+19 -5
View File
@@ -196,6 +196,7 @@
"pages": [
"developers/cli",
"packages/cli",
"developers/share-source",
"developers/catalog-search",
"developers/harness-tool-context",
"packages/lint"
@@ -326,13 +327,13 @@
"item": "Community",
"icon": "users",
"description": "Videos people made",
"href": "https://hyperframes.studio/?view=community"
"href": "https://hyperframes.studio/?view=community&src=docs-navbar"
},
{
"item": "App changelog",
"icon": "sparkles",
"description": "What's new in the app",
"href": "https://hyperframes.studio/changelog"
"href": "https://hyperframes.studio/changelog?src=docs-navbar"
}
]
},
@@ -1011,8 +1012,8 @@
"footer": {
"socials": {
"github": "https://github.com/heygen-com/hyperframes",
"x": "https://x.com/HeyGen",
"instagram": "https://www.instagram.com/heygen_official/"
"discord": "https://discord.gg/7uMDe3PwQn",
"x": "https://x.com/HyperFrames_"
},
"links": [
{
@@ -1057,7 +1058,7 @@
"href": "/product-updates"
},
{
"label": "Download the Studio app",
"label": "Download the app",
"href": "https://hyperframes.studio/studio/download?src=docs-footer"
},
{
@@ -1065,6 +1066,15 @@
"href": "https://github.com/heygen-com/hyperframes"
}
]
},
{
"header": "Made by HeyGen",
"items": [
{
"label": "heygen.com",
"href": "https://www.heygen.com"
}
]
}
]
},
@@ -1073,6 +1083,10 @@
{
"type": "github",
"href": "https://github.com/heygen-com/hyperframes"
},
{
"type": "discord",
"href": "https://discord.gg/7uMDe3PwQn"
}
],
"primary": {
+122 -21
View File
@@ -3,22 +3,46 @@
// so the download site cannot read this one. Mintlify runs every .js file in docs/ on every page
// (mintlify.com/docs/customize/custom-scripts). The id is added at click time only, so a copied link never carries it,
// and only when PostHog is running here and the visitor has not opted out of it.
// Every link to hyperframes.studio (download, pricing, changelog, community) also names where this visit began, as
// the homepage's links do: its utm tags, the kind of ad click id it came with (never the id) and `ref`, the site that
// sent it. hyperframes.studio keeps that as the visit's landing source for a later download or sign-in: the click's
// own Referer is these docs, or nothing at all, since Mintlify's navbar button is rel="noreferrer".
(function () {
var TOKEN = "phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx";
var STATE = "ph_" + TOKEN + "_posthog";
// posthog-js keeps a visitor's opt-out under this key: "0" opted out, "1" opted in. It lives in localStorage by
// default, in a cookie when a site configures that, so both are read.
var OPT_OUT = "__ph_opt_in_out_" + TOKEN;
// The one download address the docs link to (docs.json navbar and footer, quickstart.mdx).
var DOWNLOAD = { protocol: "https:", hostname: "hyperframes.studio", pathname: "/studio/download" };
var STUDIO = "hyperframes.studio";
// The one address that reads `ph_id` (docs.json navbar and footer, quickstart.mdx link to it).
var DOWNLOAD = "/studio/download";
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
// The campaign tags and ad click ids the download site reads, in its order.
var CAMPAIGN = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content"];
var AD_CLICKS = ["gclid", "gbraid", "wbraid", "dclid", "fbclid", "msclkid", "ttclid", "twclid", "li_fat_id", "rdt_cid", "sccid", "epik"];
// Our own sites and HeyGen's sign-in: a visit that moved between them says nothing about where it began.
var NOT_A_SOURCE = /(^|\.)hyperframes\.(heygen\.com|studio|dev)$|^(app|accounts|api2)\.heygen\.com$/;
// Where this visit began, shared with the homepage (web-marketing downloadUtms.ts, the same name, rules and
// .heygen.com scope), so a visit that moves between the docs and the homepage keeps its first source either way, for
// 30 days. A page that names no source keeps nothing; the first source is never replaced.
var LANDING = "hf_hub_landing";
var LANDING_DAYS = 30;
// Longer tags than hyperframes.studio keeps (its TAG_MAX): it drops them, and the shared cookie must stay small.
var TAG_MAX = 64;
// The address a link had before a right-click menu put the source on it.
var UNTAGGED = "data-hf-untagged-href";
function cookie(name) {
function rawCookie(name) {
var prefix = name + "=";
var raw = document.cookie.split("; ").find(function (c) {
return c.indexOf(prefix) === 0;
});
return raw ? decodeURIComponent(raw.slice(prefix.length)) : null;
return raw ? raw.slice(prefix.length) : null;
}
function cookie(name) {
var raw = rawCookie(name);
return raw === null ? null : decodeURIComponent(raw);
}
function stored(name) {
@@ -55,28 +79,93 @@
}
}
function tag(event) {
var link = event.target instanceof Element && event.target.closest("a[href]");
if (!link) return;
var url;
// This visit's source as download-link params: the page's own campaign tags, the kind of ad click id and the site
// that sent it, host alone (a path or query can name a person). Empty when the visit names none.
function visitSource() {
var page = new URLSearchParams(window.location.search);
var out = new URLSearchParams();
CAMPAIGN.forEach(function (name) {
var value = page.get(name);
if (value && value.length <= TAG_MAX) out.set(name, value);
});
var adClick = AD_CLICKS.find(function (name) {
return (page.get(name) || "").trim();
});
if (adClick) out.set("ad_click", adClick);
try {
url = new URL(link.href);
var ref = new URL(document.referrer);
var host = ref.hostname.replace(/\.$/, "");
if ((ref.protocol === "https:" || ref.protocol === "http:") && host && !NOT_A_SOURCE.test(host)) out.set("ref", host);
} catch {
return;
// No Referer: a typed address, a bookmark or a link from an app.
}
if (
url.protocol !== DOWNLOAD.protocol ||
url.hostname !== DOWNLOAD.hostname ||
url.port !== "" ||
url.pathname !== DOWNLOAD.pathname
) {
return;
return out.toString();
}
// The kept source, else this page's own (cookies blocked: this page's). URLSearchParams' encoding is already
// cookie-safe (no space, comma or semicolon).
var landing = visitSource();
try {
// Read as written: its value is already URL-encoded, and decoding would split a tag holding "&" or "=".
var kept = rawCookie(LANDING);
if (kept) landing = kept;
else if (landing) {
var heygen = /(^|\.)heygen\.com$/.test(window.location.hostname) ? "; domain=.heygen.com" : "";
document.cookie = LANDING + "=" + landing + "; path=/" + heygen + "; max-age=" + LANDING_DAYS * 86400 + "; SameSite=Lax; Secure";
}
if (!posthogLoaded() || optedOut()) return;
var id = posthogId();
if (!id) return;
} catch {
// keep this page's
}
// The link to hyperframes.studio an event is on, as a URL, or null for any other link.
function studioLink(event) {
var link = event.target instanceof Element && event.target.closest("a[href]");
if (!link) return null;
try {
var url = new URL(link.href);
return url.protocol === "https:" && url.hostname === STUDIO && url.port === "" ? { link: link, url: url } : null;
} catch {
return null;
}
}
// A tag the link already names keeps its own value. Only the source's own names come back from the cookie, under the
// same length cap as a fresh one, so a value kept there can never add any other parameter or grow a link.
function addSource(url) {
new URLSearchParams(landing).forEach(function (value, name) {
var known =
(CAMPAIGN.indexOf(name) !== -1 && value.length <= TAG_MAX) ||
name === "ref" ||
(name === "ad_click" && AD_CLICKS.indexOf(value) !== -1);
if (known && !url.searchParams.has(name)) url.searchParams.set(name, value);
});
}
function tag(event) {
var found = studioLink(event);
if (!found) return;
var link = found.link;
var url = found.url;
var original = link.getAttribute("href");
url.searchParams.set("ph_id", id);
addSource(url);
var id = url.pathname === DOWNLOAD && posthogLoaded() && !optedOut() && posthogId();
if (id) url.searchParams.set("ph_id", id);
// Nothing to add: the link as written (before a right-click menu tagged it) is what it already says. A Card compares
// against that, not its current href: it follows its own href prop, which a menu-tagged href doesn't change.
if (url.toString() === new URL(link.getAttribute(UNTAGGED) || link.href, location.href).toString()) return;
// Mintlify's <Card> (its anchor carries data-client-link) opens its own href prop from React, never the link's current
// href, so its click is followed here: a new tab for a middle click, Cmd/Ctrl-click or a target="_blank" link, else
// this tab. Every other link keeps the browser's own follow of the href set below, so Mintlify's click handlers
// (the navbar CTA's docs.navitem.cta_click) still run. Shift (new window) and Alt (save link) stay the browser's.
var card = link.hasAttribute("data-client-link");
var newTab = event.button === 1 || event.metaKey || event.ctrlKey || link.target === "_blank";
if (card && (event.button === 0 || event.button === 1) && !event.shiftKey && !event.altKey) {
event.preventDefault();
event.stopPropagation();
if (newTab) window.open(url.toString(), "_blank", /noreferrer/.test(link.rel) ? "noopener,noreferrer" : "noopener");
else window.location.assign(url.toString());
return;
}
link.href = url.toString();
// Put the link back once the browser has followed it, so copying it later still leaves the id out.
setTimeout(function () {
@@ -84,7 +173,19 @@
}, 0);
}
// A right-click menu's Open in new tab or Copy link takes the href as it stands when the menu opens: the source goes on
// and stays (it names no person); the id never does, as it is only added for a click and taken off after.
function tagForMenu(event) {
var found = studioLink(event);
if (!found) return;
addSource(found.url);
if (found.url.toString() === found.link.href) return;
if (!found.link.hasAttribute(UNTAGGED)) found.link.setAttribute(UNTAGGED, found.link.href);
found.link.href = found.url.toString();
}
// Capture phase, before the browser follows the link; auxclick covers a middle-click into a new tab.
document.addEventListener("click", tag, true);
document.addEventListener("auxclick", tag, true);
document.addEventListener("contextmenu", tagForMenu, true);
})();
+7
View File
@@ -17,6 +17,13 @@ cloud rendering, bill through their own accounts. See
[what's free and what HeyGen adds](/guides/voice-and-audio#free-or-heygen-quality), and
[Make videos with a free agent](/guides/free-agents) for an agent that costs nothing.
The [Studio app](/studio-app) is free to use too. Its Free plan includes AI voiceovers, captions, music and
sound effects, 3 AI video clips and 5 cloud exports a month. The Pro plan, $25 a month, adds HeyGen's top
video, image, voice and music models, making a video in the style of one you upload, and unlimited cloud exports.
[See plans](https://hyperframes.studio/pricing).
Exports from HyperFrames Desktop render on your computer and are unlimited on every plan. Free includes 5 cloud exports a month.
## Can I use HyperFrames commercially?
Yes. The [Apache 2.0 license](https://github.com/heygen-com/hyperframes/blob/main/LICENSE)
+8 -6
View File
@@ -37,7 +37,7 @@ Signing in is the same OAuth step as creating an account — new users land on t
</Step>
</Steps>
HyperFrames uses its own public OAuth client and stores credentials in `~/.hyperframes/credentials` (mode `0600`). Sign in again after upgrading from the shared HeyGen login. The separate [`heygen` CLI](https://github.com/heygen-com/heygen-cli) keeps its own login in `~/.heygen`; HyperFrames does not move or delete it. A signed-in HyperFrames session wins over `HEYGEN_API_KEY` in the environment. The environment key is used only when no session is signed in, when HeyGen refuses to refresh the session, or when a host app routes calls through its own gateway. An expired session never selects a saved API key instead. An API key, from the environment or `auth login --api-key`, selects API-key billing.
HyperFrames uses its own public OAuth client and stores credentials in `~/.hyperframes/credentials` (mode `0600`). Sign in again after upgrading from the shared HeyGen login. The separate [`heygen` CLI](https://github.com/heygen-com/heygen-cli) keeps its own login in `~/.heygen`; HyperFrames does not move or delete it. A signed-in HyperFrames session wins over `HEYGEN_API_KEY` in the environment. The environment key is used only when no session is signed in, when HeyGen refuses to refresh the session, or when a host app routes calls through its own gateway. An expired session never selects a saved API key instead. A key from the project `.env` is used only when no session or API key is saved and the environment sets none, and the CLI names that `.env` file on stderr when it uses one. An API key, from the environment or `auth login --api-key`, selects API-key billing.
`auth status` verifies identity. For a dedicated HyperFrames OAuth login it reports the billing product, but the HyperFrames balance is unavailable here: `/v3/users/me` returns generic HeyGen account billing fields. Those raw fields remain in JSON and are not presented as the HyperFrames balance. Host-injected or custom-client OAuth is reported as an unverified billing product.
@@ -58,8 +58,10 @@ sound retrieval. It resolves first-match-wins:
4. `HEYGEN_API_KEY` — environment variable
5. `HYPERFRAMES_API_KEY` — alias, for parity with other tools
6. An API key saved in `~/.hyperframes/credentials` by `hyperframes auth login --api-key`
7. A key from a nearby project `.env`, only when nothing is saved
A nearby project `.env` can supply the keys, but never `HEYGEN_API_BASE`. Point at a different config directory
A nearby project `.env` can supply the keys, but never `HEYGEN_API_BASE`. Its key never replaces a saved
session or API key, including an expired session, and the scripts name the `.env` file on stderr when they use it. Point at a different config directory
with `HYPERFRAMES_CONFIG_DIR`. The scripts can't refresh a session; the `hyperframes` CLI's own commands use the same
order and refresh an expired session first. See the [CLI reference](/packages/cli). When `media-use` invokes the separate `heygen` executable, it supplies an isolated temporary credential containing the selected access token. That helper cannot refresh a HyperFrames grant or pick up another HeyGen login.
@@ -147,14 +149,14 @@ to a shared space with `--space`.
| `HEYGEN_ACCESS_TOKEN` | OAuth token a host app injects; never refreshed or saved. |
| `HEYGEN_API_BASE` | A host app's gateway for media workflows; never read from a project `.env`. |
| `HEYGEN_API_URL` | API base URL for `hyperframes` CLI commands (default `https://api.heygen.com`). |
| `HYPERFRAMES_CONFIG_DIR` | HyperFrames credentials root (default `~/.hyperframes`). |
| `HYPERFRAMES_CONFIG_DIR` | HyperFrames settings root: credentials, telemetry and update settings, project links (default `~/.hyperframes`). |
| `HYPERFRAMES_ENV` | `prod` (default) or `dev`; `dev` keeps credentials in a separate `dev/` directory under the root. Hosts and the OAuth client id come from `HEYGEN_API_URL`, `HYPERFRAMES_OAUTH_*` and `HYPERFRAMES_PUBLISHED_PROJECTS_API_URL`. |
| `HYPERFRAMES_OAUTH_CLIENT_ID` | Override the public client ID for a controlled OAuth environment. |
| `ELEVENLABS_API_KEY` | ElevenLabs TTS, used when no HeyGen credential is present. |
| `GEMINI_API_KEY` / `GOOGLE_API_KEY` | Explicit Gemini TTS selection and Lyria music generation; capture descriptions use `GEMINI_API_KEY`. |
| `ELEVENLABS_API_KEY` | ElevenLabs TTS, used when no HeyGen credential is present. A key from a received project's `.env` is never used next to your own HeyGen credential. A note names the file whenever a project `.env` key is used. |
| `GEMINI_API_KEY` / `GOOGLE_API_KEY` | Explicit Gemini TTS selection and Lyria music generation; capture descriptions use `GEMINI_API_KEY`. One from a received project's `.env` is ignored when you set a competing credential yourself: in the CLI, the other Gemini key, a Google service account, OpenRouter or Vertex; in the media-use audio scripts, the other Gemini key or a Google service account. A note names the file whenever a project `.env` key is used. |
| `GOOGLE_APPLICATION_CREDENTIALS` / `GCS_CREDS` | Gemini TTS service-account JSON file path / injected JSON. Used when neither API key is set. |
| `GOOGLE_CLOUD_PROJECT` / `GCLOUD_PROJECT_ID` | Gemini OAuth quota project; first set value wins, then the service account project. |
| `OPENROUTER_API_KEY` | Capture descriptions; takes priority over Gemini for that step. |
| `OPENROUTER_API_KEY` | Capture descriptions; takes priority over Gemini for that step. One from a received project's `.env` gives way to your own Gemini or Vertex credential. A note names the file whenever a project `.env` key is used. |
## Related topics
+58 -3
View File
@@ -129,15 +129,30 @@ publish creates a claimable link. Sign in when the CLI should own the project
immediately, update an existing link, or publish into a shared space.
A local video poster referenced with a relative path, such as
`../shared/poster.png`, is copied into the published project even when it lives
outside the project directory. Percent-encoded paths work too, such as
`../shared/poster.png`, can be copied into the published project even when it
lives outside the project directory, once you approve it (see below).
Percent-encoded paths work too, such as
`../shared/poster%20art.svg` for `poster art.svg` or
`../shared/%E5%B0%81%E9%9D%A2.svg` for `封面.svg`.
Local images outside the project referenced by an `<img>` or `<source>` element's
`srcset` are included too. Their size or pixel-density descriptors are preserved,
`srcset` can be included the same way. Their size or pixel-density descriptors are preserved,
and your source files stay unchanged.
Only images, video, audio, fonts and CSS files are copied from outside the
project. Any other outside file, such as a script, a Lottie `.json` or a `.pdf`,
is left out with a warning naming it; move it into the project folder to include
it.
Nothing from outside the project folder is uploaded without your say. Before
uploading, `publish` lists each such file, including files the project only
links to, and asks whether to upload them. The answer defaults to no, which
leaves them out. A yes is remembered for that project in your user config
folder (`~/.hyperframes/outside-files.json`), never in the project, so the next
publish asks only about new files. With `--yes`, or when nobody can answer the
prompt, outside files are left out with a warning naming each one. Pass
`--include-outside-files` to upload them without asking.
Before sharing source, remove secrets and confirm that every included media file
can be shared. Tell a reviewer whether you need feedback on story, visuals,
timing, facts, or final approval.
@@ -161,3 +176,43 @@ editor or its render queue.
- [Export and manage renders in the browser editor](/studio/export)
- [Use advanced rendering options](/guides/rendering)
- [Diagnose a project or render failure](/help)
## Share from the local Studio preview
Open a project with `hyperframes preview`, then choose **Share** beside **Export**.
Choose **Sign in** if prompted. You can also run
`hyperframes auth login` in your terminal, then return to Studio. Sharing reconnects
automatically after browser sign-in or when you return to the panel. Credentials stay
in the local CLI process. If you switch accounts in the terminal, reload Studio
or sign in from the panel before retrying.
Choose the workspace and who can access the project, then choose **Create share
link**. Studio finishes saving pending edits before it renders and uploads the
project. The five free shared-project allowance is the same allowance used by
Desktop and the CLI. The workspace meter comes from the server; retries of an
existing registration do not need an extra slot.
Before Studio creates a link, uploads a version, or changes who can open a review or
whether its link is on, it asks you to confirm and names the review and who can open
it. A project folder remembers its review in `.hyperframes/review.json`,
so a folder someone sent you can arrive already linked to their review. If the
confirmation names a review you didn't share, cancel.
Project files are included only when you choose **Include editable project files**. The panel reports
whether the last Studio upload included files or was video only. If attaching
files fails, retry the upload or explicitly choose **Retry with video only**.
When the video is ready, choose **Copy link**. Local edits do not automatically
replace the shared video: **Update shared version** uploads the saved project to
the same review page. Changes to access use a separate **Save access** action.
**Turn link off** keeps the project and comments; updating the video keeps an
off link off. Turning the link off does not free a shared-project slot.
You can close the Share panel while sharing continues, but keep the local Studio
server running. Reopen the panel to recover progress, or use **Refresh** after a
connection problem. **Manage sharing** opens the web page for invites and owner
settings. Existing published project URLs continue to open separately.
The local sharing bridge is available only from the same-origin loopback Studio
page. It does not expose CLI credentials or accept a different project path.
As with local preview, open projects whose scripts you trust.
+1
View File
@@ -64,6 +64,7 @@ This is why a lower third or animated interface can remain visually consistent o
- HDR output is MP4 only. MOV, WebM, GIF, PNG sequence, and alpha output fall back to SDR.
- HDR and `--resolution` supersampling cannot be combined in one render. Author at the target dimensions or resize in a separate step.
- Native HDR still images can be up to 8192×8192 pixels. An HDR image whose box is larger than the video frame is drawn shrunk to fit inside it, keeping its aspect ratio.
- Distributed AWS Lambda and Cloud Run renders are currently SDR.
- Hardware H.265 encoding carries the color tags but does not include the same static mastering metadata as the software `libx265` path. Use software encoding for HDR10 delivery.
- Browser playback depends on the host browser, display, and operating system; `<hyperframes-player>` does not add its own HDR playback pipeline.
+24 -15
View File
@@ -20,9 +20,8 @@ account without installing the local CLI.
poster="https://static.heygen.ai/hyperframes-oss/docs/images/showcase/mcp-flow-demo-v2.jpg"
/>
An illustration of the flow, labelled as such on screen — describe the video,
revise it in plain language, ask for the format you need, and the render comes
back. Nothing is installed locally.
An illustration of the flow, labelled as such on screen: describe the video,
revise it in plain language, and the MP4 comes back. Nothing is installed locally.
## Choose hosted or local
@@ -56,20 +55,29 @@ host documentation when its interface differs.
<Tabs>
<Tab title="Claude">
1. Open **Customize → Connectors**.
2. Choose **Add custom connector** and enter the MCP address above.
HyperFrames by HeyGen is listed in Claude's [connector directory](https://claude.com/connectors/hyperframes-heygen).
1. Open **Customize → Connectors** and choose **Discover**.
2. Search **HyperFrames** and choose **Connect** on HyperFrames by HeyGen.
3. Complete the HeyGen sign-in.
4. In a new chat, open the **+** menu, choose **Connectors**, and enable HyperFrames.
If a chat doesn't use it, check that HyperFrames is switched on under **+ → Connectors** in that chat.
To add it by address instead, choose **+ Add → Add custom connector** in **Customize → Connectors** and enter the MCP address above.
See [Anthropic’s current connector instructions](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) for plan and workspace requirements.
</Tab>
<Tab title="ChatGPT">
If HyperFrames appears in **Settings → Apps**, choose **Connect** and complete HeyGen authorization.
Custom MCP servers work on ChatGPT Business, Enterprise and Edu, on ChatGPT web. On Business, only workspace admins and owners can add one.
To add the MCP address as a custom app, an authorized user enables the host's developer mode, creates an app from the endpoint, scans the tools, and completes OAuth. Workspace admins may control publishing and action access.
1. Open **Plugins**.
2. Select the **+** button, then **Add custom MCP server**.
3. Enter a name, and the MCP address above as the server URL.
4. Set up authentication, accept the risk warning, and select **Create as a plugin**.
5. Complete HeyGen authorization.
See [OpenAI’s current MCP app instructions](https://help.openai.com/en/articles/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta).
See [OpenAI’s current instructions](https://help.openai.com/en/articles/12584461).
</Tab>
<Tab title="Grok">
@@ -87,10 +95,11 @@ Host products change their connector interfaces independently. If a menu or butt
## Create a first composition
Describe the video as you would to an editor:
Describe the video as you would to an editor, and name HyperFrames so the chat app uses the connector instead of
writing its own video code:
```text
Make a 15-second vertical product intro for a meditation app.
Use HyperFrames to make a 15-second vertical product intro for a meditation app.
Audience: people who have trouble falling asleep.
Style: quiet, spacious, and warm.
Show the breathing timer and end with “Rest starts here.”
@@ -112,15 +121,15 @@ Make the captions smaller and slow down the final transition.
Name the visible problem and desired outcome. Avoid restarting the full brief for every revision.
## Render
## Get the MP4
Ask for the destination you need:
Each run renders an MP4 on its own when it finishes, so there is no separate export step. Ask for the download link:
```text
Render this as an MP4 at 30 fps.
Send me the MP4 download link.
```
MP4 is the normal sharing format. WebM can be useful for web delivery and transparent overlays. MOV can be useful for another editing workflow.
The hosted connector renders MP4 at its default settings. To choose the frame rate, 4K, or a WebM or MOV file (for transparent overlays or another editor), make the video with the [local skills](/quickstart) and render it on your computer.
The connector renders on hosted infrastructure. Keep any composition or render
identifier the tool returns so you can refer to the same work in a follow-up.
+24 -11
View File
@@ -28,9 +28,10 @@ That is all. The same attribute drives the browser editor preview and `hyperfram
| --- | --- | --- |
| `data-motion-blur` | none | `on` enables blur. `off` opts out, on the root or on any subtree. |
| `data-motion-blur-shutter` | `240` | Shutter angle in degrees, 0–720. Larger is a longer smear. |
| `data-motion-blur-phase` | centred | When the shutter opens, in degrees of a frame, -360 to 360. The window starts at `t + phase / 360 / fps` and lasts `shutter / 360 / fps`. `0` opens on the frame, so the smear trails ahead of it; unset centres it, the same as minus half the shutter. Matches After Effects' Shutter Phase. |
| `data-motion-blur-samples` | at least 32 | A fixed number of samples per frame, 2–64. Left unset, each mover gets at least 32, and about one per 2 px of smear when that is more, so a fast move never shows steps. |
| `data-motion-blur-events` | off | `on` runs timeline callbacks (`onUpdate` and similar) while blur looks for movers, and at each sample when a callback changes an element's inline style or its box. Needed when the motion is set from a callback, such as a `render(t)` function, which blur cannot otherwise see. |
| `data-motion-blur-tier` | `auto` | `capture` or `filter` forces one of the two ways blur is drawn (below). |
| `data-motion-blur-tier` | `auto` | `auto` and `filter` draw with the filter tier; `capture` asks for the capture tier (below). |
## In the browser editor
@@ -42,15 +43,19 @@ Elements that move quickly in 2D: position, scale and rotation changes from GSAP
## Two ways it is drawn
**Capture** copies each mover out of the page with Chrome's [HTML in Canvas](/guides/html-in-canvas) API and redraws it along its path. It draws turns and zooms truthfully: a spinning tile smears along its arc and its centre stays sharp, and a zoom streaks outward.
**Filter** puts an SVG filter on each mover: copies of the element along its path, averaged, and softened along the motion. It is what `data-motion-blur-tier="auto"` (the default) draws with. It works in any Chrome and over a WebGL canvas. On a four-whip test it cost about what a render without blur costs; on two real films it cost more than capture (see Cost and limits). Turns and zooms are only softened, not streaked.
**Filter** puts an SVG filter on each mover: copies of the element along its path, averaged, and softened along the motion. It works in any Chrome, over a WebGL canvas, and costs about what a render without blur costs. Turns and zooms are only softened, not streaked.
**Capture** is opt-in with `data-motion-blur-tier="capture"`. It copies each mover out of the page with Chrome's [HTML in Canvas](/guides/html-in-canvas) API and redraws it along its path. It draws turns and zooms truthfully: a spinning tile smears along its arc and its centre stays sharp, and a zoom streaks outward. It has limits of its own, listed here (the filter tier's are listed under Cost and limits, and a few, such as `backdrop-filter`, apply to both), so ask for it only for a film whose spins and zooms need the streak:
With `data-motion-blur-tier="auto"` (the default), blur uses the filter tier when every mover only translates and capture when anything turns or scales, because for translation the two look the same and the filter tier is much cheaper.
- Anything in front of a mover is lost: a static panel, an overlay or a title card over a moving element is drawn behind its smear.
- `mix-blend-mode` and `backdrop-filter` on a mover or its ancestor are not applied.
- A CSS selector that reaches the root through its parent, such as `body > #root > .m`, stops matching once capture wraps the root.
- A mover sliding into an `overflow: hidden` or clipped card drags the clip edge along, two overlapping movers carry each other's pixels, and content past the frame edge leaves a thin band.
- In preview, the first frame after every play shows black for a moment.
Capture needs a browser with HTML in Canvas. Chrome 157 and 158 builds exposed it without a flag in headless and Chrome-for-Testing builds; whether stable Chrome does is unverified. Chrome 155 and earlier need `chrome://flags/#html-in-canvas`.
Blur uses the filter tier instead of capture when capture cannot run:
A page that asks for capture gets the filter tier instead when capture cannot run:
| Found in the composition | Why capture cannot draw it |
| --- | --- |
@@ -64,7 +69,7 @@ Blur uses the filter tier instead of capture when capture cannot run:
This is decided once for the whole composition, from the first frame. A defect the scan misses (a WebGL canvas added late, say) is caught per frame instead: that one frame is rendered sharp and counted in `failedFrames`.
Blur is off, and stays off, for HDR renders, distributed renders, and renders that use the engine's own sub-frame blur.
Blur is off, and stays off, for HDR renders and renders that use the engine's own sub-frame blur. Distributed renders (`plan`, `renderChunk`, `assemble`, as the AWS Lambda and Google Cloud Run adapters run them) and `--start`/`--end` range renders blur like a whole local render. Pass `--page-motion-blur off` (or `pageMotionBlur: "off"` in a distributed config) to render them sharp.
### Find out which one is drawing
@@ -74,17 +79,25 @@ npx hyperframes check
| Finding | Severity | Meaning |
| --- | --- | --- |
| `motion_blur_filter_fallback` | info | Capture could not run, so the filter tier draws. The message names the cause and how to get capture back. |
| `motion_blur_filter_fallback` | info | The page asked for capture, which could not run, so the filter tier draws. The message names the cause. |
| `motion_blur_no_movers` | info | Blur is on but nothing moves fast enough to blur. If the motion is set from a callback, add `data-motion-blur-events="on"`. |
| `motion_blur_unverified` | info | The check browser cannot run capture, so it drew with the filter tier. Render once to see capture. |
| `motion_blur_unverified` | info | The page asks for capture and the check browser cannot run it, so it drew with the filter tier. Render once to see capture. |
In the page, `window.__hfMotionBlur.report()` returns `state`, `tier`, `reason`, `reasonCode` and `movers`. A render logs one line per session with the tier, and a session-end line when any frames fell back to sharp (`failedFrames > 0`).
## Cost and limits
- **Render time.** On an 8 s test composition with four whips, a render took 9.8 s with capture, 5.2–5.4 s with the filter tier and 5.3–5.9 s with no blur (two runs each, including startup). Capture adds a second paint per blurred frame; the filter tier adds almost nothing.
- **Editing.** With capture the root is wrapped only while playing or rendering; paused, it is plain DOM, so click-to-select works. The filter tier never wraps anything.
- **Render time.** It varies by film. On an 8 s test composition with four whips, a render took 9.8 s with capture, 5.2–5.4 s with the filter tier and 5.3–5.9 s with no blur (two runs each, including startup). On two real 1080p films the filter tier cost more than capture, measured as CPU seconds of the whole render (wall time was too noisy on a loaded machine): `spacex-launch` (77 movers, 39.5 s) took 547–552 CPU s with the filter tier, 302–320 with capture and 184–193 with no blur (three runs each, 2.9 times no blur); `k3-promo` (106 movers, 16.5 s) took 236, 205 and 117 (one run per arm, 2.0 times no blur). The two films do not order by mover count, and the cause of the difference was not isolated. The filter tier draws each mover as at least 32 offset copies per frame; capture adds a second paint per blurred frame.
- **Distributed renders.** Blur applies in every chunk, drawn with the filter tier on `auto`. Measured on two real 1080p films with plan, `renderChunk` and assemble at 240 frames per chunk, in a software-GPU Chrome 153 on a machine other work was loading (load average 12 to 25), one run per arm: summed chunk CPU seconds went from 155 to 246 (1.6 times) on `k3-promo` and from 338 to 545 (1.6 times) on `spacex-launch`; summed chunk wall time rose 1.2 and 1.4 times. A film with `data-motion-blur="on"` also plans screenshot capture instead of BeginFrame capture, and the measured cost includes that switch.
- **Editing.** The filter tier never wraps anything. With capture the root is wrapped only while playing or rendering; paused, it is plain DOM, so click-to-select works.
- **Capture only.** Blurred preview can run at half the frame rate on heavy compositions, and a `<video>` drawn through the capture looks about 2–3% darker in the browser editor preview than in normal playback. Renders are not affected.
- **Preview and render.** A browser without HTML in Canvas previews with the filter tier. A render then uses capture where the composition needs it, so a spin or zoom looks softer in that preview than in the render. Force one tier with `data-motion-blur-tier` for an exact match.
- **Preview and render.** `auto` draws the same way in both at full preview quality. When a host lowers preview quality (Studio's `set-preview-quality` message), the filter tier's preview draws 16 copies at 1/2 and 8 at 1/4 and below; renders always draw 32. Scored against a sub-frame reference, 16 copies differed from 32 by less than the smallest visible defect the blur tests have measured. 8 copies differ visibly on turning content. A page that asks for capture previews with the filter tier in a browser without HTML in Canvas, so a spin or zoom looks softer there than in the render.
- **Worker count.** Output is not bit-identical between worker counts (around 60 dB PSNR), about the size of the difference chunking already causes.
- **Not handled.** Pose errors under CSS `zoom`, `position: fixed` and `foreignObject`; a very short Web Animations API animation that falls between scan samples; a large see-through mover (a full-frame translucent sweep), which is left sharp while its fast children still blur. With capture, a mover is drawn above the static content, so a static element that should cover a mover does not.
- **Limits of the filter tier** (the default), as measured on one-pattern test compositions:
- `::before` or `::after` content outside the mover's box is cut off.
- A mover's own `clip-path` or mask gets hard edges: the smear is clipped to the shape it has at that frame.
- A `position: fixed` child of a mover that moves via `left` jumps, because the filter makes the mover its containing block.
- A `:last-child` selector on the root's children also matches the `<svg>` the tier adds to the root (`nth-last-*` works the same way but was not measured).
- A visibility toggle inside the shutter window is drawn at full strength instead of half.
- `backdrop-filter` on a mover differs from the 32-sample oracle in the sweep (the backdrop only).
+84
View File
@@ -0,0 +1,84 @@
---
title: "Path-Traced 3D"
description: "Preview a Three.js scene with fast raster frames, then export it path traced, with every frame identical however it is seeked."
---
Use the `path-traced-3d` example when a 3D shot needs real light: soft shadows, light bouncing between objects and reflections of the scene itself. It previews with ordinary Three.js raster rendering and exports with a path tracer, from the same scene file.
```bash Terminal
npx hyperframes init my-3d --example path-traced-3d
cd my-3d
npx hyperframes preview
```
The tracer is opt-in. A project gets it only by starting from this example, so 2D projects never load it.
## What is in the project
| File | Holds |
| --- | --- |
| `index.html` | The 1920×1080, 6-second root and its three variables |
| `assets/scene.js` | The scene and `poseAt(t)`, the only code that moves anything |
| `assets/render.js` | Setup, the seek handler and the tracer settings |
| `assets/vendor/three-path-tracer.min.js` | three 0.180.0, three-gpu-pathtracer 0.0.24 and three-mesh-bvh 0.9.5 as one local ES module, with their licences and a note on how to rebuild it |
Everything loads from the project folder, so a render never fetches a library from the network.
## Preview in raster, export path traced
| Variable | Default | Meaning |
| --- | --- | --- |
| `renderer` | `raster` | `raster` draws a frame in milliseconds. `path` traces it. |
| `samples` | `64` | Path samples per pixel, traced for every frame. |
| `bounces` | `4` | How many times a ray may bounce. |
Work in raster, then export once with the tracer:
```bash Terminal
npx hyperframes render --variables '{"renderer":"path","samples":64}' -o final.mp4
```
Path tracing costs far more than raster. Measured on an Apple M4 Max with a hardware GPU, an 8-second 720p clip took 10.8 s rasterized and 810.5 s path traced at 32 samples per pixel and 6 bounces. Noise falls with the square root of the samples, so halving it costs four times the samples, and every extra bounce makes each path longer.
<Note>
Without a hardware GPU, Chrome draws WebGL in software and the tracer is much slower: on SwiftShader its first shader run alone took about a minute at 320×180, longer than the default 45-second readiness wait. Check path mode at a small size with 1 or 2 samples, and raise the wait with `--timeout 170000` for `check` and `snapshot` or `--player-ready-timeout 180000` for `render`.
</Note>
## How it stays deterministic
HyperFrames seeks frames one by one, in any order and across several workers, so `render.js` follows these rules. Keep them when you change it.
- **Setup is one `window.__hf.buildReady` promise.** It builds the scene, compiles the shaders, sets up the tracer and draws one throwaway frame, because the first frame a renderer draws differs from later ones. It then reads one pixel back, so the GPU has really finished that first, slowest run before setup resolves.
- **Frames are drawn only in the `hf-seek` listener**, registered with `event.detail.waitUntil(promise)`. Nothing runs a render loop.
- **Each new time starts from zero.** The handler poses the scene for that time, rebuilds the tracer's copy of it and traces exactly `samples` passes. A seek back to the time already on screen does no work.
- **The tracer never waits on time.** `renderDelay` and `fadeDuration` are 0, because the tracer times them with a clock that does not move during a render.
- **Randomness is seeded.** Three's object uuids, which set the order the tracer sorts lights, meshes and textures in, and the tracer's noise textures come from `Math.random`, so the scene and the tracer are built under a fixed seed. Without it, every render worker draws different grain. Anything you add later, such as a model loaded during setup, must also be created under the seed.
### The frozen clock
During a render, `Date.now()` and `performance.now()` return the current seek time and do not move between seeks (they read 0 until the first seek), and `requestAnimationFrame` callbacks wait for a seek. The first seek waits for setup. Setup that waits for an animation frame or for the clock to advance never finishes. Composition code uses no timers of its own either. Await the library's readiness promise instead:
```js assets/render.js
await renderer.compileAsync(scene, camera);
```
three-gpu-pathtracer 0.0.24 shows its shader compilation only as the `isCompiling` flag. The promise behind that flag is three's `compileAsync`, so `render.js` awaits it in one helper, `tracerCompiled()`, whenever a `renderSample()` call leaves `isCompiling` set. It decides only when drawing may start, never what is drawn.
Do not wait with `scheduler.yield()`. Its continuations run ahead of timers, so a loop that yields until a compile finishes starves the timer `compileAsync` polls with, and the page never becomes ready. Do not swap `compileAsync` for the synchronous `compile` to hide that; fix the wait.
## Check a change
Seek to a time, an earlier time, then the first time again, and compare the two stills:
```bash Terminal
npx hyperframes snapshot --at 4,0,4 --no-end
```
The two stills at 4 s must be byte-identical. Then render a short clip and look at its frames. In the HyperFrames repository, `registry/examples/path-traced-3d/source/verify-render.mjs` runs these checks in both modes at 320×180 and checks the exported pixels.
## Related
- [Frame adapters](/concepts/frame-adapters) for how the runtime seeks Three.js
- [Variables](/concepts/variables) for `--variables` and batch renders
- [Determinism](/concepts/determinism) for the general rules
- [Performance](/guides/performance) for render speed
+49
View File
@@ -176,6 +176,49 @@ Use a higher frame rate only when the source or destination needs it. It creates
The CLI uses the composition’s `data-fps` when present and otherwise defaults to 30 fps.
## 4:4:4 masters
MP4 output stores colour at half resolution in each direction (4:2:0). Thin
coloured text, UI strokes and saturated edges can come out soft or fringed. For
a master file that is mostly text and UI, render with full-resolution colour:
```bash
npx hyperframes render --chroma-subsampling 444 --output master.mp4
```
This encodes H.264 High 4:4:4 Predictive (yuv444p) and captures every frame as
a lossless PNG, because Chrome's JPEG capture is already 4:2:0 on Linux and on
screenshot capture. Rendering is slower: in our tests a text and UI
composition took about twice as long as the default render, and full-frame
footage about three and a half times as long, because PNG encoding gets more
expensive as the image gets more detailed.
Measured at the same CRF against lossless masters, chroma PSNR rose by about
16 dB for coloured text and 13 dB for a UI screen recording, while camera
footage and gradients showed no meaningful change. Keep the default for
footage-heavy videos.
`444` supports SDR MP4 with the software encoder only. It is rejected with
`--gpu`, `--hdr` and other formats. Distributed renders (including Lambda and
Cloud Run) encode 4:2:0 only and reject a `chromaSubsampling` of `"444"`.
Many players cannot decode 4:4:4, so use it for masters and editing handoff,
not for files you publish directly:
| Player | 4:4:4 MP4 |
| ------ | --------- |
| Chrome 155 (Windows) | Plays |
| Edge 155 (Windows) | Plays |
| Firefox 157 (Windows) | Does not play (no YUV 4:4:4 decoder) |
| VLC 3.0 (Windows) | Plays |
| Windows Media Player and Media Player app | Does not play ("unsupported encoding settings") |
| Safari (iOS 26.6) | Plays |
| Safari 26.6 (macOS 26.6) | Plays |
| QuickTime / AVFoundation (macOS 26.6) | Plays |
Tested with H.264 High 4:4:4 Predictive, 8-bit, 1920×1080. Every player above
plays the default 4:2:0 output.
## Local or Docker
Local rendering is the normal choice:
@@ -371,6 +414,12 @@ npx hyperframes check
Keep the first exact error rather than only the final “render failed” message. See [Troubleshooting](/help) for the next checks.
A render refuses any composition HTML file, the entry or a sub-composition, that is larger than 16 MB. The error code is `COMPOSITION_TOO_LARGE`. Keep images, fonts and data in separate files and reference them by path instead of inlining them.
The same error refuses a render whose sub-composition mounts add up to more than 64 MB of composition HTML, to more than 10,000 mounts, or to more than 100,000 elements copied by those mounts. Every mount counts, including each repeat of the same file and each mount nested inside another. The scripts and scoped styles generated for those mounts have their own 64 MB limit. Every inline script in a mounted file is wrapped in a few kilobytes of scoping code, and every style rule is prefixed with its host's `data-composition-id`. Many tiny inline scripts, or a long composition id over many style rules, can reach this limit. Merge small scripts and rules, or keep ids short.
Studio preview and the CLI commands that assemble a project, such as `validate` and `compare`, apply the same limits with the same error. Studio shows the error in place of the preview.
<Tip>
Always watch the exported file itself. Preview proves that the project can play; the output file
proves that the delivery is correct.
+70 -2
View File
@@ -50,6 +50,15 @@ npx hyperframes skills update
This installs or refreshes the core set and any HyperFrames skills already present in the global install, then links those bundles into compatible installed agents. It does not add every optional skill.
Updates check the Claude global store (`~/.claude/skills`, or the `skills/` folder
under `CLAUDE_CONFIG_DIR`) that the installer writes to. Skills found only in
another agent's directory do not make a missing core skill count as installed
there, and optional skills in that other directory are not automatically added
to the managed store. Name an optional skill explicitly to add it. The install
record's publisher attribution is respected even before the managed store exists.
An explicit update request for a skill owned by another publisher fails without
overwriting it, including when the freshness check is unavailable offline.
Check freshness without changing anything:
```bash
@@ -122,14 +131,32 @@ Make any video by asking for it; the `/hyperframes` skill carries the contract a
| `/hyperframes-cli` | The CLI by job: scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history. |
| `/hyperframes-registry` | About 450 ready-made blocks and components installed as editable source: transitions, overlays, titles, kinetic type, captions, charts, maps, 3D, camera moves. |
| `/media-use` | Music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks, with HeyGen or free local tools; mixes placed audio. |
| `/reverse-any-video` | Rebuilding any video file as an editable HyperFrames project (motion graphics, talking heads, live action, AI-generated footage), checked frame by frame against the original. HyperFrames Pro. |
| `/style-sampling` | Making a new episode on your topic in one of five proven styles: Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime. HyperFrames Pro. |
| `/figma` | A Figma file or frame: rendered assets, brand tokens, components, and storyboard frames as reconstructed motion. |
| `/slideshow` | A presentation, pitch deck or interactive deck. Output is a navigable deck, not a rendered MP4. |
| `/remotion-to-hyperframes` | Bringing existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, other tools' renders), verified frame by frame. |
| `/reverse-any-video` | Rebuilding any video file as an editable HyperFrames project (motion graphics, talking heads, live action, AI-generated footage), checked frame by frame against the original. HyperFrames Pro. |
| `/style-sampling` | Making a new episode on your topic in one of five proven styles: Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime. HyperFrames Pro. |
You can name a skill directly, but you do not need to memorize the names to start.
## How the agent runs the CLI
The skills have your agent start the CLI through a launcher that ships with them,
`hyperframes/scripts/plugin-cli.mjs`, from your project folder. The launcher starts npm in
your home folder, so a project's `package.json`, `node_modules` or `.npmrc` cannot swap in a
different program. This matters most for a project someone sent you. With standalone skills it
runs the newest published CLI; in a plugin it runs the version the plugin pins. The pin counts
only when the plugin folder's name does not start with a dot, the folder is not the one the
agent works in and does not contain it, and, if it lies inside that folder, a folder whose name
starts with a dot (such as `.claude`) sits between them. For a standalone workflow that needs a
particular release, the agent passes `--cli-version latest` or `--cli-version <exact-version>` to
the installed launcher before the CLI command. This also works for releases with a prerelease
suffix. A project's `package.json` pin does not choose that release; the agent runs a pinned
release only when you ask for it. The launcher refuses a release older than its floor, whether a
plugin pins it or the agent selects it. The floor (currently 0.9.68) is the oldest release with
the protections for projects you receive from others. Plugin installs keep their pin.
The agent runs a project's own npm scripts only when you ask for one by name.
## Install more only when you need it
Install the complete published set deliberately with:
@@ -158,6 +185,47 @@ Use the full set for an environment that must work across many HyperFrames tasks
The individual skill definitions remain the source of truth for agents and are
available in the [HyperFrames repository](https://github.com/heygen-com/hyperframes/tree/main/skills).
## If an update says no installed skills match
With `skills@1.7.x`, `npx skills update heygen-com/hyperframes` treats
`heygen-com/hyperframes` as an installed skill name. It reports
`No installed skills found matching` even when HyperFrames skills are installed.
Use the HyperFrames updater to refresh the core set and the HyperFrames skills
already installed globally:
```bash
npx hyperframes skills update
```
The standalone `skills update` command accepts skill names, such as
`npx skills update hyperframes -g` to update only the global `/hyperframes` skill.
The repository name belongs in `skills add`, as shown in the install steps above.
## If an installed skill has a YAML parse error
A `Skipped .../SKILL.md — YAML parse error` warning names the installed file that
cannot be read. Back up that file before editing it, especially if it contains
custom instructions. A multiline description needs indented continuation lines;
for example:
```yaml
---
name: seam-craft
description: >-
Render-correctness doctrine for scene-to-scene seams.
Load when assembling the master timeline.
---
```
Keep the file's existing description text and skill body; the example shows only
the YAML format. Run `npx skills list -g` afterwards to verify global discovery,
or `npx skills list` for a project install.
Repo-internal skills such as `seam-craft` are excluded from the published set.
Refreshing the core skills does not repair an old, separately installed copy of
an internal skill. A YAML warning and a name-matching error can occur in the same
run and need these separate fixes.
## Related topics
- [Make your first video](/quickstart)
+1 -1
View File
@@ -14,7 +14,7 @@ import { DocsVideo, ShowcaseWall } from "/snippets/docs-video.jsx";
/>
</div>
HyperFrames is an open-source framework that turns HTML into video. You make the request; an AI agent builds an editable project; HyperFrames plays or renders it.
HyperFrames is a free, open-source framework that turns HTML into video. You make the request; an AI agent builds an editable project; HyperFrames plays or renders it.
## What can it make?
+5 -7
View File
@@ -1,12 +1,9 @@
<svg width="263" height="79" viewBox="0 0 263 79" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 16.6738H4.96V23.3838H11.53V16.6738H16.49V35.4538H11.53V27.6738H4.96V35.4538H0V16.6738Z" fill="white"/>
<path d="M17.8899 28.0137C17.8899 23.4237 21.2399 20.0237 25.7999 20.0237C30.0099 20.0237 32.9399 23.0837 32.9399 27.5637C32.9399 28.2037 32.8599 28.8237 32.8299 29.3337H22.6099C23.0399 31.1337 24.6199 32.1237 27.1399 32.1237C28.7199 32.1237 30.2199 31.7237 31.2999 31.0237V34.6737C30.1699 35.3937 28.2999 35.8537 26.3599 35.8537C21.2599 35.8537 17.8799 32.6037 17.8799 28.0237L17.8899 28.0137ZM28.5699 26.1937C28.4899 24.5337 27.3899 23.5637 25.7499 23.5637C24.1099 23.5637 22.9599 24.5337 22.6099 26.1937H28.5699Z" fill="white"/>
<path d="M37.85 33.8638L32 20.4238H37.29L40.46 28.1538L43.6 20.4238H48.48L40.33 39.5738H35.26L37.86 33.8638H37.85Z" fill="white"/>
<path d="M48.1797 26.1138C48.1797 20.4238 52.7097 16.2438 58.9397 16.2438C61.2997 16.2438 63.5297 16.8038 64.8197 17.7238V21.9338C63.5597 20.9138 61.6797 20.2938 59.7497 20.2938C55.7797 20.2938 53.2597 22.6238 53.2597 26.1438C53.2597 29.6638 55.5697 31.8838 58.8897 31.8838C59.6397 31.8838 60.4997 31.7538 61.1997 31.5038V27.8838H57.4697V24.2338H65.5197V33.7038C63.6697 35.0938 61.1997 35.8738 58.5997 35.8738C52.5397 35.8738 48.1897 31.7438 48.1897 26.1138H48.1797Z" fill="white"/>
<path d="M66.6604 28.0137C66.6604 23.4237 70.0104 20.0237 74.5704 20.0237C78.7804 20.0237 81.7104 23.0837 81.7104 27.5637C81.7104 28.2037 81.6304 28.8237 81.6004 29.3337H71.3804C71.8104 31.1337 73.3904 32.1237 75.9104 32.1237C77.4904 32.1237 78.9904 31.7237 80.0704 31.0237V34.6737C78.9404 35.3937 77.0704 35.8537 75.1304 35.8537C70.0304 35.8537 66.6504 32.6037 66.6504 28.0237L66.6604 28.0137ZM77.3404 26.1937C77.2604 24.5337 76.1604 23.5637 74.5204 23.5637C72.8804 23.5637 71.7304 24.5337 71.3804 26.1937H77.3404Z" fill="white"/>
<path d="M82.9697 20.4238H87.8497V22.4138C88.7597 20.9638 90.3497 20.1038 92.3297 20.1038C95.4997 20.1038 97.3997 22.3338 97.3997 25.8138V35.4438H92.5197V26.8638C92.5197 25.0438 91.8197 24.1838 90.4797 24.1838C88.9497 24.1838 87.8497 25.3638 87.8497 27.2638V35.4438H82.9697V20.4238Z" fill="white"/>
<svg width="324" height="49" viewBox="0 36 324 49" fill="none" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-144.75 42.5) scale(0.75)">
<path d="M195.219 26.1937L213.529 38.9937C216.009 40.7237 220.239 38.7637 221.009 35.5337L228.419 4.33374C229.189 1.10374 225.879 -0.856262 222.589 0.873738L198.199 13.6737C192.649 16.5837 191.059 23.2837 195.219 26.1937Z" fill="url(#paint0_linear_2204_3044)"/>
<path d="M256.97 25.9638L232.58 38.7638C229.28 40.4938 225.98 38.5338 226.75 35.3038L234.16 4.10376C234.93 0.873757 239.16 -1.08624 241.64 0.643757L259.95 13.4438C264.12 16.3538 262.52 23.0538 256.97 25.9638Z" fill="url(#paint1_linear_2204_3044)"/>
</g>
<g transform="translate(62 0)">
<path d="M252.115 72.502C250.192 72.502 248.268 72.0838 246.93 71.3728V65.6853C247.808 66.3126 248.937 66.689 250.066 66.689C251.739 66.689 252.784 65.8526 252.784 64.5562C252.784 63.8452 252.492 63.0925 251.655 62.0888L249.899 59.956C248.728 58.4923 248.226 56.9031 248.226 55.2721C248.226 51.0065 251.864 48.0791 256.883 48.0791C258.723 48.0791 260.438 48.4555 261.65 49.0828V54.7703C260.898 54.2266 259.768 53.8503 258.723 53.8503C257.092 53.8503 256.046 54.6867 256.046 55.8994C256.046 56.6522 256.423 57.405 257.259 58.4086L258.974 60.4996C260.187 62.047 260.73 63.5943 260.73 65.2671C260.73 69.5746 257.05 72.502 252.115 72.502Z" fill="white"/>
<path d="M236.338 72.6269C228.392 72.6269 223.123 67.5667 223.123 60.4155C223.123 53.2643 228.351 47.9531 235.46 47.9531C242.026 47.9531 246.584 52.7206 246.584 59.7045C246.584 60.7082 246.459 61.6701 246.417 62.4647H230.483C231.152 65.2666 233.62 66.8139 237.551 66.8139C240.018 66.8139 242.36 66.1866 244.033 65.0993V70.7868C242.277 71.916 239.349 72.6269 236.338 72.6269ZM230.483 57.5717H239.767C239.642 54.9789 237.927 53.4734 235.376 53.4734C232.867 53.4734 231.027 54.9789 230.483 57.5717Z" fill="white"/>
<path d="M184.998 72.0001V48.5809H192.609V51.6756C193.989 49.4173 196.373 48.0791 199.426 48.0791C202.521 48.0791 204.779 49.5428 206.075 52.052C207.497 49.5846 210.132 48.0791 213.352 48.0791C218.245 48.0791 221.214 51.592 221.214 57.0286V72.0001H213.603V58.5341C213.603 55.774 212.557 54.4357 210.634 54.4357C208.459 54.4357 206.912 56.234 206.912 59.0778V72.0001H199.3V58.5341C199.3 55.774 198.255 54.4357 196.373 54.4357C194.157 54.4357 192.609 56.234 192.609 59.0778V72.0001H184.998Z" fill="white"/>
@@ -18,6 +15,7 @@
<path d="M53.3711 78.4404V48.5809H60.9823V52.052C62.446 49.501 65.0807 48.0791 68.3008 48.0791C74.3647 48.0791 78.9649 53.3066 78.9649 60.2487C78.9649 67.2745 74.3229 72.4602 68.259 72.4602C65.0807 72.4602 62.446 71.1637 60.9823 68.78V78.4404H53.3711ZM66.1262 66.1872C69.2627 66.1872 71.3119 63.7616 71.3119 60.2905C71.3119 56.8195 69.2627 54.4357 66.1262 54.4357C62.7388 54.4357 60.9823 57.2795 60.9823 59.7051V60.9178C60.9823 63.3434 62.7388 66.1872 66.1262 66.1872Z" fill="white"/>
<path d="M31.9606 78.4405L36.0171 69.5329L26.9004 48.5811H35.1389L40.0737 60.6252L44.9666 48.5811H52.5779L39.8646 78.4405H31.9606Z" fill="white"/>
<path d="M0 71.9996V42.7256H7.7367V53.1806H17.9826V42.7256H25.7193V71.9996H17.9826V59.8718H7.7367V71.9996H0Z" fill="white"/>
</g>
<defs>
<linearGradient id="paint0_linear_2204_3044" x1="225.869" y1="-3.06048e-05" x2="222.845" y2="37.4821" gradientUnits="userSpaceOnUse">
<stop stop-color="#06E3FA"/>

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

+5 -7
View File
@@ -1,12 +1,9 @@
<svg width="263" height="79" viewBox="0 0 263 79" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 16.6738H4.96V23.3838H11.53V16.6738H16.49V35.4538H11.53V27.6738H4.96V35.4538H0V16.6738Z" fill="black"/>
<path d="M17.8899 28.0137C17.8899 23.4237 21.2399 20.0237 25.7999 20.0237C30.0099 20.0237 32.9399 23.0837 32.9399 27.5637C32.9399 28.2037 32.8599 28.8237 32.8299 29.3337H22.6099C23.0399 31.1337 24.6199 32.1237 27.1399 32.1237C28.7199 32.1237 30.2199 31.7237 31.2999 31.0237V34.6737C30.1699 35.3937 28.2999 35.8537 26.3599 35.8537C21.2599 35.8537 17.8799 32.6037 17.8799 28.0237L17.8899 28.0137ZM28.5699 26.1937C28.4899 24.5337 27.3899 23.5637 25.7499 23.5637C24.1099 23.5637 22.9599 24.5337 22.6099 26.1937H28.5699Z" fill="black"/>
<path d="M37.85 33.8638L32 20.4238H37.29L40.46 28.1538L43.6 20.4238H48.48L40.33 39.5738H35.26L37.86 33.8638H37.85Z" fill="black"/>
<path d="M48.1797 26.1138C48.1797 20.4238 52.7097 16.2438 58.9397 16.2438C61.2997 16.2438 63.5297 16.8038 64.8197 17.7238V21.9338C63.5597 20.9138 61.6797 20.2938 59.7497 20.2938C55.7797 20.2938 53.2597 22.6238 53.2597 26.1438C53.2597 29.6638 55.5697 31.8838 58.8897 31.8838C59.6397 31.8838 60.4997 31.7538 61.1997 31.5038V27.8838H57.4697V24.2338H65.5197V33.7038C63.6697 35.0938 61.1997 35.8738 58.5997 35.8738C52.5397 35.8738 48.1897 31.7438 48.1897 26.1138H48.1797Z" fill="black"/>
<path d="M66.6604 28.0137C66.6604 23.4237 70.0104 20.0237 74.5704 20.0237C78.7804 20.0237 81.7104 23.0837 81.7104 27.5637C81.7104 28.2037 81.6304 28.8237 81.6004 29.3337H71.3804C71.8104 31.1337 73.3904 32.1237 75.9104 32.1237C77.4904 32.1237 78.9904 31.7237 80.0704 31.0237V34.6737C78.9404 35.3937 77.0704 35.8537 75.1304 35.8537C70.0304 35.8537 66.6504 32.6037 66.6504 28.0237L66.6604 28.0137ZM77.3404 26.1937C77.2604 24.5337 76.1604 23.5637 74.5204 23.5637C72.8804 23.5637 71.7304 24.5337 71.3804 26.1937H77.3404Z" fill="black"/>
<path d="M82.9688 20.4238H87.8488V22.4138C88.7588 20.9638 90.3488 20.1038 92.3288 20.1038C95.4988 20.1038 97.3988 22.3338 97.3988 25.8138V35.4438H92.5188V26.8638C92.5188 25.0438 91.8188 24.1838 90.4788 24.1838C88.9488 24.1838 87.8488 25.3638 87.8488 27.2638V35.4438H82.9688V20.4238Z" fill="black"/>
<svg width="324" height="49" viewBox="0 36 324 49" fill="none" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-144.75 42.5) scale(0.75)">
<path d="M195.219 26.1937L213.529 38.9937C216.009 40.7237 220.239 38.7637 221.009 35.5337L228.419 4.33374C229.189 1.10374 225.879 -0.856262 222.589 0.873738L198.199 13.6737C192.649 16.5837 191.059 23.2837 195.219 26.1937Z" fill="url(#paint0_linear_2204_3045)"/>
<path d="M256.97 25.9638L232.58 38.7638C229.28 40.4938 225.98 38.5338 226.75 35.3038L234.16 4.10376C234.93 0.873757 239.16 -1.08624 241.64 0.643757L259.95 13.4438C264.12 16.3538 262.52 23.0538 256.97 25.9638Z" fill="url(#paint1_linear_2204_3045)"/>
</g>
<g transform="translate(62 0)">
<path d="M252.115 72.502C250.192 72.502 248.268 72.0838 246.93 71.3728V65.6853C247.808 66.3126 248.937 66.689 250.066 66.689C251.739 66.689 252.784 65.8526 252.784 64.5562C252.784 63.8452 252.492 63.0925 251.655 62.0888L249.899 59.956C248.728 58.4923 248.226 56.9031 248.226 55.2721C248.226 51.0065 251.864 48.0791 256.883 48.0791C258.723 48.0791 260.438 48.4555 261.65 49.0828V54.7703C260.898 54.2266 259.768 53.8503 258.723 53.8503C257.092 53.8503 256.046 54.6867 256.046 55.8994C256.046 56.6522 256.423 57.405 257.259 58.4086L258.974 60.4996C260.187 62.047 260.73 63.5943 260.73 65.2671C260.73 69.5746 257.05 72.502 252.115 72.502Z" fill="black"/>
<path d="M236.338 72.6269C228.392 72.6269 223.123 67.5667 223.123 60.4155C223.123 53.2643 228.351 47.9531 235.46 47.9531C242.026 47.9531 246.584 52.7206 246.584 59.7045C246.584 60.7082 246.459 61.6701 246.417 62.4647H230.483C231.152 65.2666 233.62 66.8139 237.551 66.8139C240.018 66.8139 242.36 66.1866 244.033 65.0993V70.7868C242.277 71.916 239.349 72.6269 236.338 72.6269ZM230.483 57.5717H239.767C239.642 54.9789 237.927 53.4734 235.376 53.4734C232.867 53.4734 231.027 54.9789 230.483 57.5717Z" fill="black"/>
<path d="M184.998 72.0001V48.5809H192.609V51.6756C193.989 49.4173 196.373 48.0791 199.426 48.0791C202.521 48.0791 204.779 49.5428 206.075 52.052C207.497 49.5846 210.132 48.0791 213.352 48.0791C218.245 48.0791 221.214 51.592 221.214 57.0286V72.0001H213.603V58.5341C213.603 55.774 212.557 54.4357 210.634 54.4357C208.459 54.4357 206.912 56.234 206.912 59.0778V72.0001H199.3V58.5341C199.3 55.774 198.255 54.4357 196.373 54.4357C194.157 54.4357 192.609 56.234 192.609 59.0778V72.0001H184.998Z" fill="black"/>
@@ -18,6 +15,7 @@
<path d="M53.3711 78.4404V48.5809H60.9823V52.052C62.446 49.501 65.0807 48.0791 68.3008 48.0791C74.3647 48.0791 78.9649 53.3066 78.9649 60.2487C78.9649 67.2745 74.3229 72.4602 68.259 72.4602C65.0807 72.4602 62.446 71.1637 60.9823 68.78V78.4404H53.3711ZM66.1262 66.1872C69.2627 66.1872 71.3119 63.7616 71.3119 60.2905C71.3119 56.8195 69.2627 54.4357 66.1262 54.4357C62.7388 54.4357 60.9823 57.2795 60.9823 59.7051V60.9178C60.9823 63.3434 62.7388 66.1872 66.1262 66.1872Z" fill="black"/>
<path d="M31.9606 78.4405L36.0171 69.5329L26.9004 48.5811H35.1389L40.0737 60.6252L44.9666 48.5811H52.5779L39.8646 78.4405H31.9606Z" fill="black"/>
<path d="M0 71.9996V42.7256H7.7367V53.1806H17.9826V42.7256H25.7193V71.9996H17.9826V59.8718H7.7367V71.9996H0Z" fill="black"/>
</g>
<defs>
<linearGradient id="paint0_linear_2204_3045" x1="225.869" y1="-3.06048e-05" x2="222.845" y2="37.4821" gradientUnits="userSpaceOnUse">
<stop stop-color="#06E3FA"/>

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

+7 -1
View File
@@ -56,7 +56,13 @@ The Lambda adapter wraps the distributed producer primitives behind one dispatch
All three phases must fit the configured per-invocation Lambda timeout, at most 15 minutes, and the function's temporary storage. Smaller chunks can reduce each worker's extraction and rendering work, but do not divide video extraction that still happens in Plan. See [long-video planning limits](/deploy/aws-lambda#long-video-planning-times-out) for FFmpeg frame-stall timeouts and how to split jobs that cannot fit.
The handler uses `@sparticuz/chromium` by default, with a build-time fallback for bundling `chrome-headless-shell` directly when needed.
The x86 handler ZIP uses `@sparticuz/chromium`; a `chrome-headless-shell` ZIP is over Lambda's 250 MiB unzipped limit. The arm64 video image runs Chrome for Testing's linux-arm64 `chrome-headless-shell`, with `@sparticuz/chromium`'s fonts so text resolves as on x86.
### Page network restriction
The handler sets `PRODUCER_RESTRICT_PAGE_NETWORK=true` unless the function already sets it, so a rendered page reaches only its own project files and public internet addresses. Loopback, private, link-local and IPv6 addresses are refused for anything the page loads. An asset on a VPC-only host or behind private DNS is missing from the video.
Keep it on when you render compositions you did not write. To turn it off, set `PRODUCER_RESTRICT_PAGE_NETWORK=false` in the function's environment. Only `false`, `0`, `no` or `off` turn it off. Any other value keeps it on, and a value the handler does not recognise logs a warning.
## Using the SDK
+681 -57
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -81,6 +81,33 @@ software WebGPU may use SwiftShader, but it must also create a device. The check
releases its temporary device; the composition still creates its own device
with any features or limits its renderer needs.
## Remote media downloads
The engine downloads remote `https://` video, audio, image, and font sources
into the render's work directory before it uses them. Each download has these
limits, and an environment variable changes each one:
| Limit | Default | Environment variable |
| --- | --- | --- |
| Largest file | 8 GiB | `HYPERFRAMES_MAX_DOWNLOAD_BYTES` |
| Longest single attempt, however fast data arrives | 30 minutes | `HYPERFRAMES_MAX_DOWNLOAD_MS` |
| Slowest average speed over a minute | 32 KiB/s | `HYPERFRAMES_MIN_DOWNLOAD_BYTES_PER_SEC` |
| Free space left on the download volume | 512 MiB | `HYPERFRAMES_DOWNLOAD_MIN_FREE_BYTES` |
Sizes are in bytes and the time limit is in milliseconds. A speed or free-space
value of `0` turns that check off.
A download that passes one of these limits stops with an error. The time limit
applies to each attempt: a stalled or too-slow attempt that is retried starts a
new 30 minutes, while an attempt stopped by the time limit is not retried.
The free-space check counts the declared sizes of all downloads running at the
same time in this process, so parallel downloads in one render cannot fill the
volume together. Separate render processes on one host see each other's writes
only when they measure free space again, every 4 MiB received. On a shared host
that evicts workloads below a free-disk threshold, set
`HYPERFRAMES_DOWNLOAD_MIN_FREE_BYTES` above that threshold.
## What else the package exposes
| Surface | Use it for |
+6
View File
@@ -72,6 +72,12 @@ terraform -chdir=node_modules/@hyperframes/gcp-cloud-run/terraform apply \
Terraform outputs the bucket name, service URL, workflow name, and region needed by the SDK.
### Page network restriction
The service sets `PRODUCER_RESTRICT_PAGE_NETWORK=true`, so a rendered page reaches only its own project files and public internet addresses. Loopback, private, link-local and IPv6 addresses are refused for anything the page loads. An asset on a VPC-only host or behind private DNS is missing from the video. ffmpeg's https inputs may open only https, so an https source that redirects to http, or encrypted HLS, does not load.
Keep it on when you render compositions you did not write. To turn it off, apply the module with `-var restrict_page_network=false`, or set `TF_VAR_restrict_page_network=false` before `hyperframes cloudrun deploy`.
## Using the SDK
```typescript
+55 -2
View File
@@ -44,7 +44,9 @@ import "@hyperframes/player";
Set `autoplay muted` only when playback should start without a user gesture.
Add or remove `controls` at any time. When shown, the controls reflect the current
playback state, position and speed.
playback state, position and speed. Clicking or dragging the scrubber keeps a
playing film playing from the new spot, as a `<video>`'s own controls do, and
leaves a paused film paused.
## Attributes
@@ -55,7 +57,7 @@ playback state, position and speed.
| `srcdoc` | string | — | Composition HTML already available as a string |
| `width` | number | 1920 | Native composition width used for aspect ratio |
| `height` | number | 1080 | Native composition height used for aspect ratio |
| `controls` | boolean | false | Show playback, scrub, speed, time, and volume controls |
| `controls` | boolean | false | Show playback, scrub, speed, time, volume, and fullscreen controls |
| `autoplay` | boolean | false | Start when the composition is ready |
| `loop` | boolean | false | Restart at the end |
| `muted` | boolean | false | Mute audio |
@@ -67,12 +69,15 @@ playback state, position and speed.
| `assets-loading-ui` | `player` or `none` | `player` | `none` hides the loading-assets card; asset events still fire |
| `low-power-idle` | boolean | false | While paused, check in once a second, not every 80 ms (many-player pages) |
| `disable-click-to-play` | boolean | false | A click on the player no longer plays or pauses, so the page can handle it |
| `disable-fullscreen` | boolean | false | Hide the fullscreen button in the controls (`disableFullscreen`) |
| `no-load-timeout` | boolean | false | A slow load never fails at 8 s, so the page owns the deadline; script and runtime errors still fail at once |
| `range-start` | number | — | Film second where playback starts, loops back to and parks when paused (`rangeStart`) |
| `range-end` | number | — | Film second the range ends before: it stops or loops on the frame before it (`rangeEnd`) |
`range-start` and `range-end` play the moment [start, end) of the film. The player parks on `range-start` at `ready`, and again when a paused playhead falls outside a new range; `play()` from outside the range starts there. At the end it holds the last frame before `range-end` and fires `ended`, or wraps to `range-start` with `loop`. `currentTime` at `ended` is then inside that frame, not `range-end` itself, so listen for `ended` rather than comparing times. A current runtime stops on that frame itself; video and `__timelines` players stop one clock tick early, predicted from the smaller of their last two steps, and a video in a background tab checks on its own `timeupdate`; an older runtime stops when the player sees its time pass the end. `currentTime` and `duration` stay in film time. A range past the film is cut to its end and an empty or negative one is ignored; both fire `rangeclamped`.
The fullscreen button fills the screen with the whole player, controls included. It appears only where the page can go fullscreen, so not on iPhone Safari and not inside a cross-origin iframe without `allow="fullscreen"`. It follows every exit, including Esc. Set `disable-fullscreen` to hide it. A refused request fires the browser's `fullscreenerror` on the player.
Player also accepts `shader-capture-scale` and `shader-loading` for previewing
projects that use shader transitions. These are preview controls, not composition
authoring attributes.
@@ -81,6 +86,8 @@ With a `video/...` `type`, `src` plays in a `<video>` behind the same playback A
events. `scenes`, `setRuntimeData()`, `setColorGrading()`, `iframeElement` and `stopMedia()`
are composition-only, and `srcdoc` wins over a video `src`, as it does in an iframe.
Removing a video player's `src` attribute or setting it to an empty string unloads the film and resets playback to paused at 0:00. Set a new `src` to load another video.
## JavaScript API
The main API follows familiar media-player behavior:
@@ -91,6 +98,7 @@ const player = document.querySelector("hyperframes-player");
player.play();
player.pause();
player.seek(2.5);
player.seek(2.5, { keepPlaying: true });
player.currentTime = 5;
player.playbackRate = 1.5;
@@ -100,6 +108,16 @@ console.log(player.duration, player.paused, player.ready);
console.log(player.compositionWidth, player.compositionHeight);
```
`seek()` and setting `currentTime` pause at the new time. Pass `{ keepPlaying: true }`
to keep a playing film playing from there, as setting a `<video>`'s `currentTime`
does; a paused film stays paused.
In Studio previews, scrubbing keeps the last complete picture visible while video
layers decode at the requested time. Rapid seeks keep only the latest queued
destination, and the captions and video layers appear together once it is ready.
Complete intermediate pictures can appear during a drag. Jumping to a different
clip supersedes an earlier pending seek; failed sources do not hold up the preview.
## Events
```js
@@ -130,6 +148,41 @@ player.addEventListener("timeupdate", (event) => {
| `error` | `{ message }` | Load or runtime error; a video adds its `MediaError` `code` |
| `playbackerror` | `{ source, error }` | The browser blocked playback, for example unmuted autoplay |
## Custom icons and loading mark
Put an element with a `slot` attribute inside the player to replace a control glyph or the loading mark. Anything you leave out keeps the default.
| Slot | Shown when | Default size |
| ------------------- | ----------------------------------------------------------- | ------------ |
| `play-icon` | Paused | 24 px |
| `pause-icon` | Playing | 24 px |
| `volume-high-icon` | Unmuted, volume 0.5 or higher | 20 px |
| `volume-low-icon` | Unmuted, volume below 0.5 | 20 px |
| `volume-muted-icon` | Muted | 20 px |
| `loading-mark` | Preparing shader transitions, loading assets, and buffering | 78 px |
```html title="index.html"
<hyperframes-player src="/compositions/intro.html" controls>
<svg slot="play-icon" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M8 5v14l11-7z" />
</svg>
<svg slot="pause-icon" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M6 5h4v14H6zM14 5h4v14h-4z" />
</svg>
<img slot="loading-mark" src="/brand-mark.svg" width="78" height="78" alt="" />
</hyperframes-player>
```
Glyphs take the control bar's color through `currentColor`, and you set their size. Put `slot` on the `<svg>` or `<img>` itself, as a direct child of the player; a wrapper element needs `display: contents` to keep the glyph centered. A custom mark replaces the HyperFrames light sweep and glow, so add your own CSS animation if you want motion.
Until the element is defined, its children show as plain content. Hide them:
```css title="styles.css"
hyperframes-player:not(:defined) > [slot] {
display: none;
}
```
## Advanced: iframe access
The composition runs inside an `<iframe>` in the player's Shadow DOM. For most
+83
View File
@@ -68,6 +68,12 @@ const job = createRenderJob({
HDR output is available for MP4 through `hdrMode`. Transparent formats render
in SDR because HDR and alpha are not one supported output path.
`chromaSubsampling: "444"` renders an SDR MP4 master with full-resolution
colour (H.264 yuv444p, lossless PNG capture). It needs the software encoder,
is rejected with `useGpu`, HDR output, other formats and distributed renders,
and many players cannot decode it. See
[4:4:4 masters](/guides/rendering#444-masters).
```ts
const job = createRenderJob({
fps: 30,
@@ -100,6 +106,18 @@ segment starts on a keyframe. HLS is SDR only (`hdrMode: "force-hdr"` is
rejected), refuses GPU encoding (GPU encoders ignore the keyframe lock), and is
not available in distributed rendering, Lambda, or Cloud Run.
## Require specific output dimensions
Services can set `expectedOutputDimensions: { width: 1280, height: 720 }` in the render
config or HTTP request. The producer checks the compiled composition and any output
resolution scaling before opening the capture browser. A mismatch fails with
`OUTPUT_DIMENSIONS_MISMATCH`; this option does not resize the composition.
Successful jobs and HTTP completion responses include `outputDimensionsChecked: true`
when this check ran. Distributed planning accepts the same option and reports the
confirmation through `onPlanned`. A caller that requires this contract must reject
an absent confirmation, including responses from older producer versions.
## Inspect output validation
A matching output duration does not prove that every expected frame is present.
@@ -172,6 +190,22 @@ await executeRenderJob(
An aborted render throws `RenderCancelledError`. Correctness warnings can also
block a render when `strictness: "strict"` is enabled.
## Remote scripts and stylesheets
Before rendering, the producer downloads a composition's remote `<script src>` files and
its stylesheets from hosts other than Google Fonts, and inlines them so the render needs
no network for them. One compile downloads at most 32 distinct script addresses and 32
distinct stylesheet addresses. A composition that links more of either is refused before
any of that kind is downloaded, with an error that names the count. Stylesheets count
before their contents are read, so a sheet with only layout rules counts too. Google Fonts
links are handled by the font step and do not count. A script the host ships itself (GSAP,
when `HYPERFRAMES_GSAP_VENDOR_DIR` names its folder) counts only when a tag's integrity
metadata does not match that copy and it has to be downloaded.
These downloads share one 60-second window, which starts with the first of them.
Anything still pending then fails like an unreachable file, and its tag stays as written.
Font files and other assets keep their own per-request time limits.
## Build a render service
The package exports a Hono application and server helpers:
@@ -182,10 +216,59 @@ import { startServer } from "@hyperframes/producer";
await startServer({ port: 8080 });
```
A browser request (one that carries an `Origin` or `Sec-Fetch-Site` header) is accepted
only under an IP address, `localhost` or a `*.localhost` name, so a page that points its
own domain at the server cannot start renders or lint. If browsers reach the server
through a proxy name, list that name in `allowedHosts` or in the comma-separated
`PRODUCER_ALLOWED_HOSTS` variable. Requests without those headers, such as curl or
another service, are unaffected.
The server listens on `127.0.0.1` unless you pass `hostname` or set `PRODUCER_HOST`. To
listen on any other address, also set `authToken` or `PRODUCER_AUTH_TOKEN`. Every route
except `/health` then requires `Authorization: Bearer <token>`, and the server refuses to
start without one. A request's `projectDir` must resolve, symlinks included, inside
`projectsDir` (`PRODUCER_PROJECTS_DIR`, default: the working directory). Its `entryFile`
must stay inside that project, and `outputPath` must be inside `rendersDir`
(`PRODUCER_RENDERS_DIR`, default `/tmp`). `debug: true` is refused unless you set
`allowDebug` or `PRODUCER_ALLOW_DEBUG=1`. `createProducerApp` applies these path and
debug checks by default. `createRenderHandlers`, for mounting the handlers inside your own
trusted service, applies them only with `confineRequests: true`.
For larger workloads, the `@hyperframes/producer/distributed` entry exposes the
three rendering activities—`plan`, `renderChunk`, and `assemble`. Your
orchestrator remains responsible for dispatch, retries, storage, and networking.
A service that renders projects from other people should set
`PRODUCER_RESTRICT_PAGE_NETWORK=true`. The render browser can then reach only its own
project server and public IPv4 addresses: everything else it sends, from pages, frames,
workers, WebSockets and WebRTC alike, goes through a local proxy that checks every
address a name resolves to and connects to the address it checked. A refused request
fails like any other unreachable asset. Leave it unset for local renders that load
assets from your own machine or network.
Where the only way out is an egress proxy, set `HYPERFRAMES_CAPTURE_PROXY` to its
`http://` URL, as for `capture`. The local proxy then sends every browser request to
it by hostname, and the egress proxy must refuse private and internal destinations
itself.
The setting accepts `true`, `1`, `yes` or `on` to turn the restriction on and `false`, `0`,
`no` or `off` to leave it off, in any letter case. Any other value turns it on and logs a
warning, so a misspelled value never leaves a render service open.
With the restriction on, a video or audio URL is downloaded through the same address
checks before FFmpeg reads it. A file FFmpeg does read by URL, such as a signed storage
URL for a project's video, must be a self-contained container like MP4, WebM or WAV. A
playlist, manifest or concat list under a media file name is refused.
If your network routes a range that is not a private one, such as a cluster's pod range,
add it with `PRODUCER_NON_PUBLIC_CIDRS`, a comma-separated list like `192.160.0.0/16`. Asset
downloads and the render browser then refuse those addresses too. A malformed entry
refuses every address rather than being skipped, and logs a warning.
`hyperframes render --docker` passes both settings into its render container when they
are set in the shell that runs it. When they are not set, the container's render page can
reach anything the container's network can, including private addresses.
## Related topics
<CardGroup cols={2}>
+23
View File
@@ -47,6 +47,29 @@ Studio reads the flag once, when its modules load, so set
`window.__HF_STUDIO_ENV__` before loading Studio; the CLI injects it, but a host
that mounts the API itself must inject it too.
The API is unauthenticated, so state-changing requests are checked against
the request's own origin, scheme included: a write is accepted only when it
comes from the Studio page this server serves. Loopback works with no setup.
If you mount the API on a public host name (your own domain, a tunnel, a
Codespaces address), name it in `allowedHosts` so writes from that origin
pass:
```ts
app.route(
"/api",
createStudioApi(adapter, { allowedHosts: ["studio.example.com"] }),
);
```
With `hyperframes preview` and the Studio dev server there is no code to
change: both read the extra hosts from `HYPERFRAMES_PREVIEW_ALLOWED_HOSTS`
(comma separated) and pass them as `allowedHosts`. A refused write answers
403 with the refused host named and this variable as the fix:
```bash
HYPERFRAMES_PREVIEW_ALLOWED_HOSTS=demo.tunnels.example hyperframes preview
```
A `StudioApiAdapter` supplies:
- project listing and resolution;
+32
View File
@@ -87,6 +87,11 @@ Peer dependencies are React 19, React DOM 19, and Zustand 4 or 5.
The package also exports `CompositionLevel`, `TimelineElement`, `PickedElement`,
and `PatchOperation`.
`useElementPicker` remembers the current selection while inspection is active.
Press Escape in either Studio or the preview to cancel and restore that selection. The
hovered target is identified beside the preview as `tag#id`, `tag.class`, or the
tag name alone.
## How Studio stays connected to a project
1. Studio loads the composition in an iframe with the HyperFrames runtime.
@@ -101,6 +106,33 @@ depends on the browser playing in real time, while render captures frames one at
time. A heavy project can therefore stutter during preview and still render every
frame.
Paused video scrubbing decodes and stages the visible video layers before
advancing the composition's animations. Completed frames appear during a drag,
with newer pointer positions coalesced into the next decode. Canvas and GPU
effects consume the same staged pixels. Continuous playback uses native video;
Studio keeps the paused picture visible while those videos catch up before Play.
A native handoff waits for ready frames for up to ten seconds; Pause or a new
seek cancels it. At the deadline, the rest plays while each unready video keeps
its last full-quality picture. During playback, native frame presentation or
playback progress releases that picture; normal transport sync corrects drift.
Paused recovery still waits for its requested frame. A skipped source keeps its
picture on subsequent Play requests until it recovers.
A paused fallback that outlasts its wait retains the presented clock and picture,
while paused sync continues. It can still publish when the video becomes ready;
a new gesture cancels that recovery. Studio requests paused-decoder release
before preparing native playback and reopens readers when paused scrubbing resumes.
Paused-reader release waits up to two seconds for transparent video queries to
drain. After that it cancels their downloads and lets playback continue while
unfinished merges close in the background; input disposal still waits for the
merge to finish. A recovering video more than half a second out of sync with the transport
gets at most one corrective seek per recovery registration before its retained picture is removed.
Scrubbing and paused frame steps decode the original video at source resolution
throughout. Automatic playback quality reductions do not reduce these frames,
and the frame decoder does not substitute re-encoded seek copies. Playback
quality settings do not reduce these paused frames. Browsers or
media that cannot use the frame decoder fall back to native seeking. Long-GOP
sources can take longer to seek, especially backward or across distant cuts.
## Tailwind preset
```typescript
+13 -8
View File
@@ -19,15 +19,14 @@ kind of project.
loop
/>
<Note>
HyperFrames is free. Your AI agent bills its own plan, and HeyGen media such as avatars and generated clips uses
HeyGen credits only when you ask for it.
</Note>
<Card title="Download the HyperFrames Studio app" icon="download" href="https://hyperframes.studio/studio/download?src=docs-quickstart-top">
Free for Mac, Windows and Linux. The link picks the right file for your computer.
</Card>
## In the Studio app
The easiest way: the app runs your agent beside a live preview, and you change the video by typing, pointing or
drawing. For Mac (Apple Silicon or Intel), Windows (64-bit Intel and AMD; not Windows on Arm yet) and Linux.
drawing. For Mac (Apple Silicon or Intel), Windows (including Windows on Arm) and Linux.
<Steps>
<Step title="Download and install">
@@ -55,13 +54,19 @@ system.
### The short way
If you already have a coding agent open in a folder, paste this. It installs the skills, makes the video, and opens
the preview. You only change the URL.
Unless the HyperFrames plugin is installed, install the skills once from a terminal in your project folder, then
open or restart your coding agent there:
```bash
npx hyperframes skills update
```
Paste this into the agent. It makes the video and opens the preview. You only change the URL.
```text
Set this folder up for HyperFrames and make me a video.
1. If the HyperFrames plugin is installed, use its bundled skills and launcher. Otherwise run: npx hyperframes skills update
1. If the HyperFrames plugin is installed, use its bundled skills and launcher. If the HyperFrames skills are missing, stop and tell me: I install them with npx hyperframes skills update
2. Then, using /hyperframes, make a 10-second product intro for https://example.com
3. Open the local preview when it is done and tell me the project folder.
```
+8 -6
View File
@@ -244,9 +244,10 @@ only one group, so this is the way to put one effect across everything.
chain, group or automation of its own stays on native output.
- An unreadable master chain **fails the whole mix**: the render stops with an
`audio_processing_failed` error under every strictness setting, and exports
nothing. Preview plays dry with no message, and no lint rule checks a chain's
contents, so one typo on the root blocks every export of that composition.
Check a master chain in preview before rendering.
nothing. Preview plays dry with no message. `audio_attribute_unreadable` catches
a chain that is not JSON, has no `"version": 1` or no `nodes` array; an unknown
effect type still only shows up at render. Check a master chain in preview
before rendering.
## Effect registry
@@ -543,13 +544,14 @@ ends exactly at its `data-duration`. That is expected.
## What the linter checks
Almost no static gate covers a mix. Three rules exist:
Almost no static gate covers a mix. Four rules exist:
| Rule | Reports |
| --- | --- |
| `audio_attribute_unreadable` | A `data-automation` or `data-fx-chain` the render cannot parse: not JSON, no `"version": 1`, no `lanes` / `nodes` array, a lane without `target` or `points`, a node without `type`. The render fails on it, locally and in the cloud |
| `audio_carve_ungrouped_sources` | A carve naming two or more plain clip ids instead of a group |
| `audio_volume_double_automation` | A `volume` lane on a track that also has a GSAP tween on `volume` — the lane wins, the tween is ignored |
| `audio_volume_tween_overrides_gain` | An authored `data-volume` on a track whose `volume` is tweened — the tween's values are absolute and replace that gain rather than scaling it |
Nothing validates the chain or the effect lanes at all. What enforces those is
the render. Beyond that, a mix is verified by rendering and listening.
Nothing checks a lane's target or an effect's type and parameters. What enforces
those is the render. Beyond that, a mix is verified by rendering and listening.
+22 -4
View File
@@ -47,6 +47,12 @@ lints the file it is editing.
**Fix:** Give every caption element the same `data-track-index`.
### `multiple_scene_templates`
**Warning.** A file has more than one `<template>` holding a composition root and no composition root outside them. Only the first one renders; the message names each template.
**Fix:** Keep one composition root per file, or move the other scenes into their own files.
### `clip_ends_past_root_duration`
**Warning.** A clip runs past the root composition's `data-duration`, so it is cut off in previews, posters and renders.
@@ -226,7 +232,7 @@ stylesheet links in `<head>`, so those styles never apply in preview, snapshot o
### `timeline_track_too_dense`
**Warning.** One track in this file carries more than 3 timed elements (audio, video, caption cues and sub-composition mounts are not counted), which makes the timeline harder to read, iterate on, and diff.
**Warning.** This file has more than 3 timed elements, whatever tracks they sit on (audio, video, caption cues and sub-composition mounts are not counted), which makes the timeline harder to read, iterate on, and diff.
**Fix:** Split the elements into sub-compositions and mount them from the parent with `data-composition-src`.
@@ -532,6 +538,12 @@ Or keep the element `visibility: hidden` until its draw tween starts.
Source: `packages/lint/src/rules/media.ts`.
### `audio_attribute_unreadable`
**Error.** A `data-automation` or `data-fx-chain` is not one the render can parse: not JSON, no `"version": 1`, no `lanes` / `nodes` array, a lane without `target` or `points`, or a node without `type`. The audio mix fails on it, locally and in the cloud.
**Fix:** Write it as `{"version": 1, "lanes": [...]}` (automation) or `{"version": 1, "nodes": [...]}` (effect chain), or remove the attribute.
### `audio_carve_ungrouped_sources`
**Warning.** A voiceover carve names its member clips directly instead of carving an `<hf-audio-group>`, so the list silently rots when clips change.
@@ -771,7 +783,13 @@ Source: `packages/lint/src/rules/fonts.ts`.
**Fix:** Declare each family with `@font-face` pointing at the captured `.woff2` files, or bundle the font under `capture/assets/fonts/`.
The declaration may use a quoted or unquoted family name. If `font-family` is the last descriptor in the block, its final semicolon is optional.
The declaration may use a quoted or unquoted family name. If `font-family` is the last descriptor in the block, its final semicolon is optional. Families named in a `font` shorthand (`font: 500 16px/1 "PingFang SC", sans-serif`) count the same as `font-family`.
### `font_face_local_only`
**Warning.** An `@font-face` names only `local()` sources. A local render draws the font installed on this machine; a cloud render, or another machine without it, falls back to a different font.
**Fix:** Add a `url()` source pointing at a `.woff2` file inside the project, or use a Google Fonts family.
### `system_font_will_alias`
@@ -898,9 +916,9 @@ Source: the project lint pass in `packages/lint/src/project.ts`, `packages/lint/
### `duplicate_audio_track`
**Warning.** Two audible elements overlap on the same track index, so their audio doubles up.
**Warning.** Two audible clips overlap in time on the same `data-track-index`. Both play at once: the render mixes every audible clip whatever its track, and `data-track-index` only picks the Studio lane, so Studio draws the two over each other in that lane. An overlap like this is either an accidental duplicate or two sounds sharing one lane.
**Fix:** Use non-overlapping time windows or different track indices.
**Fix:** If both should sound (a whoosh into a hit), give one its own `data-track-index`; the mix does not change. If one is a leftover duplicate, remove it or move it so the windows do not overlap.
### `texture_mask_asset_not_found`
+28
View File
@@ -0,0 +1,28 @@
---
title: "CLI sharing status"
description: "Follow an upload from local rendering to a ready review link."
---
Run `hyperframes share --status` in another terminal to see an active share in
this project. You can also run it from a project subdirectory; an explicit
project directory always takes precedence.
```bash
hyperframes share --status --json
```
During a running local command, `state` reports `preparing`, `rendering`,
`uploading_source`, `uploading_video`, or `checking`. `activity.startedAt`
identifies when the operation began. These states have `ready: false` and
`url: null`; `previousUrl` can still point to an earlier ready version.
After the command finishes, status reflects the server's processing result.
A crashed local process does not leave an active progress indicator forever.
Free workspaces can share privately or with anyone who has the link. Team and
invite-only access require a paid plan. Free sharing includes the video;
editable project sources require Pro. The five-project Free limit still applies.
Alpha installations check the alpha release channel for updates, so their
update notice does not recommend a stable release that lacks alpha features.
See [CLI sharing](/packages/cli#share) for audience selection, updates and failures.
+9
View File
@@ -0,0 +1,9 @@
User-agent: *
Content-Signal: ai-train=yes, search=yes, ai-input=yes
Disallow: /cdn-cgi/
Allow: /_next/image
Disallow: /_next/
Sitemap: https://hyperframes.heygen.com/sitemap.xml
Sitemap: https://hyperframes.heygen.com/blog/sitemap.xml
Sitemap: https://hyperframes.heygen.com/vs/sitemap.xml
Sitemap: https://hyperframes.heygen.com/tools/sitemap.xml
+163 -20
View File
@@ -240,6 +240,21 @@ export const CatalogDetail = ({
font-variant-numeric: tabular-nums;
color: var(--ve-muted);
}
.hf-ve-link-notice {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 16px;
margin: 0 0 12px;
padding: 10px 14px;
border: 1px solid var(--ve-line);
border-radius: 14px;
background: var(--ve-surface);
font-size: 13px;
line-height: 1.45;
color: var(--ve-fg);
}
.hf-ve-desc {
margin: 6px 0 0;
font-size: 12px;
@@ -1710,6 +1725,85 @@ export const CatalogDetail = ({
*/
const urlKey = `vars-${compositionId}`;
// >>> preview values
/** JSON that is also inert inside an inline `<script>` and a single-quoted attribute. */
function scriptJson(value) {
return JSON.stringify(value).replace(/[<>&\u2028\u2029]/g, function (c) {
return "\\u" + ("000" + c.charCodeAt(0).toString(16)).slice(-4);
});
}
/**
* Whether a value from a link fits the variable it names.
*
* A link is written by whoever shares it, and the value goes into a
* composition that may put it straight into markup. So each value has to look
* like what its control could have produced: a number for a slider, one of the
* listed options for a choice, a colour for a swatch, an address for an image,
* and text with no markup for a string. The declared default always passes.
*/
function fitsVariable(variable, value) {
if (JSON.stringify(value) === JSON.stringify(variable.default)) return true;
switch (variable.type) {
case "number":
return typeof value === "number" && Number.isFinite(value);
case "boolean":
return typeof value === "boolean";
case "enum":
return (variable.options ?? []).some((option) => option.value === value);
case "color":
return (
typeof value === "string" &&
/^(?:#[0-9a-f]{3,8}|[a-z]{3,24}|(?:rgb|hsl)a?\([\d\s.,%/+-]{1,48}\))$/i.test(value)
);
case "image":
return (
typeof value === "string" &&
value.length <= 2048 &&
/^(?:https?:\/\/|[\w./-])[^\s<>"'`()\\]*$/i.test(value)
);
default:
return typeof value === "string" && value.length <= 10000 && !/[<>]/.test(value);
}
}
/** The entries of a parsed query object that name a declared variable and fit its type. */
function declaredValues(parsed, variables) {
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
const byId = new Map(variables.map((variable) => [variable.id, variable]));
return Object.fromEntries(
Object.entries(parsed).filter(([id, value]) => byId.has(id) && fitsVariable(byId.get(id), value)),
);
}
// <<< preview values
// >>> copied values
/**
* Whether a value a link arrived with can go into a copied command as it is.
*
* The command is pasted into whatever shell the reader has: bash, zsh, fish,
* PowerShell or cmd.exe. They agree on almost nothing about quoting, so
* rather than escape for each, a link's text is carried only when it is
* short and made of letters, digits, spaces and punctuation that none of them
* reads as syntax inside the argument. Numbers and booleans always qualify.
*/
function plainLinkValue(value) {
if (typeof value === "number") return Number.isFinite(value);
if (typeof value === "boolean") return true;
return typeof value === "string" && value.length <= 200 && /^[A-Za-z0-9 .,:_#+\-/@()?]*$/.test(value);
}
/**
* The changed values copied text may carry: every value the reader set on
* this page, and a value a link arrived with only when `keepFromLink` allows.
*/
function copiedValues(changed, edited, keepFromLink) {
return Object.fromEntries(
Object.entries(changed).filter(([id, value]) => edited.includes(id) || keepFromLink(id, value)),
);
}
// <<< copied values
const readFromUrl = () => {
if (typeof window === "undefined") return {};
try {
@@ -1718,11 +1812,9 @@ export const CatalogDetail = ({
// `URLSearchParams` has already decoded this once. Decoding again turned
// a path full of percent-escapes into something that no longer parsed,
// and doubled the length of every link.
const parsed = JSON.parse(raw);
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
// Only ids this item declares; a stale link must not inject stray keys.
const declared = new Set(variables.map((v) => v.id));
return Object.fromEntries(Object.entries(parsed).filter(([id]) => declared.has(id)));
// Only ids this item declares, each holding what its control could have
// set; a stale or hand-made link must not inject stray keys or markup.
return declaredValues(JSON.parse(raw), variables);
} catch {
return {};
}
@@ -1730,6 +1822,18 @@ export const CatalogDetail = ({
const [values, setValues] = useState(() => ({ ...defaults, ...readFromUrl() }));
/**
* Ids the reader set on this page, and ids the link opened the page with.
*
* A link is written by whoever shared it. Its values still drive the
* preview, but the copy buttons only treat a value as the reader's own once
* they have set it here: until then a link's free text stays out of the
* agent request and the commands. The install command is a separate
* component, so the list is also published on `window` for it.
*/
const [edited, setEdited] = useState([]);
const [fromLink, setFromLink] = useState([]);
/**
* Read the URL again once the component is actually in a browser.
*
@@ -1745,11 +1849,15 @@ export const CatalogDetail = ({
useEffect(() => {
const fromUrl = readFromUrl();
if (Object.keys(fromUrl).length > 0) setValues((current) => ({ ...current, ...fromUrl }));
setFromLink(
Object.keys(fromUrl).filter((id) => JSON.stringify(fromUrl[id]) !== JSON.stringify(defaults[id])),
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// `replaceState` rather than `pushState`: dragging a slider should not stack
// up history entries the back button has to walk through.
const publishedEdited = useRef("");
useEffect(() => {
if (typeof window === "undefined") return;
const changed = Object.fromEntries(
@@ -1763,13 +1871,16 @@ export const CatalogDetail = ({
// Comparing first keeps it to an actual change rather than touching the
// history API on each one.
const next = url.toString();
if (next !== window.location.href) {
window.history.replaceState(null, "", next);
const editedNow = JSON.stringify(edited);
if (next !== window.location.href || editedNow !== publishedEdited.current) {
if (next !== window.location.href) window.history.replaceState(null, "", next);
publishedEdited.current = editedNow;
window.__hfEditedVars = { ...window.__hfEditedVars, [compositionId]: edited };
// `replaceState` fires no event, and the install command on the same page
// needs to follow these values.
window.dispatchEvent(new CustomEvent("hf-vars-changed"));
}
}, [values, defaults, urlKey]);
}, [values, defaults, urlKey, edited, compositionId]);
// What the SVG import last had to say, per variable. Held here because
// `control` is a function rather than a component and cannot hold it itself.
const [notes, setNotes] = useState({});
@@ -1815,12 +1926,13 @@ export const CatalogDetail = ({
"script>",
"</head><body><script>",
"(function(){",
` var PAYLOAD = ${JSON.stringify(previewSrc)};`,
` var PAYLOAD = ${scriptJson(previewSrc)};`,
// The frame mounts with whatever a shared link asked for, not the bare
// defaults. Posting the values afterwards is too late for anything the
// composition reads once at init — a path arrives, the mark is already
// drawn from the default one, and only a later edit corrects it.
` var INITIAL = ${JSON.stringify({ ...defaults, ...readFromUrl() })};`,
` var INITIAL = ${scriptJson({ ...defaults, ...readFromUrl() })};`,
` var scriptJson = ${scriptJson.toString()};`,
" var html = null, player = null, poll = null;",
// Two ways in, because a composition can be either shape. A top-level one
// reads overrides off `window.__hfVariables`; one mounted through
@@ -1828,13 +1940,13 @@ export const CatalogDetail = ({
// which the loader reads before the sub-composition runs — so that has to
// be in the markup, not assigned afterwards.
" function withValues(source, values) {",
" var json = JSON.stringify(values);",
" var json = scriptJson(values);",
" var attr = json.replace(/'/g, '&#39;');",
" var out = source.replace(/\\sdata-variable-values=(?:\"[^\"]*\"|'[^']*')/gi, '');",
" out = out.replace(/(data-composition-src=)/gi, \"data-variable-values='\" + attr + \"' $1\");",
" out = out.replace(/data-composition-src=/gi, function (m) { return \"data-variable-values='\" + attr + \"' \" + m; });",
" var tag = '<' + 'script>window.__hfVariables=' + json + ';<' + '/script>';",
" return /<head[^>]*>/i.test(out)",
" ? out.replace(/<head([^>]*)>/i, '<head$1>' + tag)",
" ? out.replace(/<head[^>]*>/i, function (m) { return m + tag; })",
" : tag + out;",
" }",
// The composition reads its variables once, at init, so a new value can
@@ -1861,6 +1973,10 @@ export const CatalogDetail = ({
" arm(resumeAt || 0);",
" }",
" player = document.createElement('hyperframes-player');",
// The composition runs with values a shared link chose, so it gets an
// origin of its own rather than this page's: whatever it does stays inside
// the preview. This script only ever talks to it through the player's API.
" player.setAttribute('sandbox-origin', 'opaque');",
" player.setAttribute('controls', ''); player.setAttribute('muted', '');",
" document.body.appendChild(player);",
" player.addEventListener('ended', function () { player.seek(0); player.play(); });",
@@ -1870,6 +1986,7 @@ export const CatalogDetail = ({
" document.body.innerHTML = '<pre style=\"color:#f66;font:12px monospace;padding:12px\">preview unavailable: ' + e + '</pre>';",
" });",
" addEventListener('message', function (event) {",
" if (event.source !== parent || event.origin !== self.origin) return;",
" var values = event.data && event.data.hfVariables;",
" if (!values) return;",
" mount(values, player.currentTime || 0);",
@@ -1919,6 +2036,16 @@ export const CatalogDetail = ({
snippetLines.push([[SHIKI.punct, "></"], [SHIKI.tag, "div"], [SHIKI.punct, ">"]]);
const dirty = variables.some((v) => values[v.id] !== defaults[v.id]);
const resetValues = () => {
setValues(defaults);
setNotes({});
setEdited([]);
setFromLink([]);
};
// Values the link set that the reader has not touched since.
const heldFromLink = fromLink.filter(
(id) => !edited.includes(id) && JSON.stringify(values[id]) !== JSON.stringify(defaults[id]),
);
const hasTune = variables.length > 0;
const [tab, setTab] = useState("preview");
@@ -1938,12 +2065,16 @@ export const CatalogDetail = ({
return changed;
};
const renderCommand = (() => {
const changed = changedValues();
const changed = copiedValues(changedValues(), edited, (id, value) => plainLinkValue(value));
const vars = Object.keys(changed).length ? ` --variables '${JSON.stringify(changed).replace(/'/g, "'\\''")}'` : "";
return `# Run from the installed project's root.\nnpx hyperframes render --composition '${compositionSrc}'${vars}`;
})();
const agentRequest = (() => {
const changed = changedValues();
// The reader pastes this to an agent as their own words, so a link's text
// never goes in: only numbers, switches and the author's own options do.
const changed = copiedValues(changedValues(), edited, (id, value) =>
typeof value !== "string" || variables.some((v) => v.id === id && v.type === "enum"),
);
const base = `Install the HyperFrames catalog item "${compositionId}" (${title || compositionId}) into my project with \`npx hyperframes add ${compositionId}\`, mount it at the point of my composition where it should play, and verify with \`npx hyperframes check\`.`;
const set = Object.entries(changed).map(([id, value]) => `${id} = ${JSON.stringify(value)}`);
return set.length ? `${base} Set ${set.join(", ")}; keep the other variables at their defaults.` : `${base} Keep the default variables unless I say otherwise.`;
@@ -2089,6 +2220,18 @@ export const CatalogDetail = ({
<div className="not-prose">
{heldFromLink.length > 0 && (
<div className="hf-ve-link-notice" role="status">
<span>
This page opened with settings from its link: {heldFromLink.join(", ")}. Text from a link
stays out of copied commands and the agent request until you set it here.
</span>
<button type="button" className="hf-ve-action" onClick={resetValues}>
Reset to defaults
</button>
</div>
)}
<div className="hf-ve-bar">
<div className="hf-ve-meta">
{seconds && (
@@ -2142,7 +2285,10 @@ export const CatalogDetail = ({
{control(
v,
values[v.id],
(next) => setValues((prev) => ({ ...prev, [v.id]: next })),
(next) => {
setEdited((prev) => (prev.includes(v.id) ? prev : [...prev, v.id]));
setValues((prev) => ({ ...prev, [v.id]: next }));
},
notes[v.id],
(note) => setNotes((prev) => ({ ...prev, [v.id]: note })),
setTyping,
@@ -2154,10 +2300,7 @@ export const CatalogDetail = ({
<div className="hf-ve-tune-foot">
<button
type="button"
onClick={() => {
setValues(defaults);
setNotes({});
}}
onClick={resetValues}
disabled={!dirty}
className="hf-ve-action"
>
+101 -290
View File
@@ -5,35 +5,9 @@ export const CatalogGallery = ({ catalog, initialGroup = "", initialSection = ""
// sibling top-level const/function declarations in this file are dropped from the
// deployed build, so these must live inside the component (window.__hfDocsPlayerLoading
// still dedupes the actual script load across every instance).
const PLAYER_SCRIPT_URL = 'https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js';
const REST_SECONDS = 3;
const MAX_DOM_PLAYERS = 6;
const MAX_WEBGL_PLAYERS = 1;
const READY_TIMEOUT_MS = 6000;
// BEGIN revealWhenPainted: calls reveal one frame after the player's assets have settled (the player fires assetsready within 8 s).
const revealWhenPainted = (player, reveal) => {
const paint = () => requestAnimationFrame(reveal);
if (player.assetsReady)
paint();
else
player.addEventListener('assetsready', paint, { once: true });
};
// END revealWhenPainted
async function ensurePlayerDefined() {
if (customElements.get('hyperframes-player'))
return;
if (!window.__hfDocsPlayerLoading) {
window.__hfDocsPlayerLoading = new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = PLAYER_SCRIPT_URL;
script.onload = resolve;
script.onerror = () => { script.remove(); delete window.__hfDocsPlayerLoading; reject(new Error('Player unavailable')); };
document.head.appendChild(script);
});
}
await window.__hfDocsPlayerLoading;
await customElements.whenDefined('hyperframes-player');
}
// Each item's card: a short muted loop and its poster, at card size (480 px), from scripts/generate-catalog-previews.ts.
const CARD_BASE = 'https://static.heygen.ai/hyperframes-oss/docs/images/catalog-card';
const PAUSE_KEY = 'hfc-previews-paused';
// Keep the child component type stable when gallery hover state changes.
const MotionWord = useMemo(() => function MotionWord() {
const root = useRef(null);
@@ -113,8 +87,9 @@ export const CatalogGallery = ({ catalog, initialGroup = "", initialSection = ""
React.createElement("path", { d: "M2 6Q18 -2 34 6T66 6T98 6T130 6T162 6T194 6", fill: "none", stroke: "#7cc4ff", strokeWidth: "2.4", strokeLinecap: "round" })));
}, []);
const [filters, setFilters] = useState({ q: "", group: initialGroup, section: initialSection, kind: "", sort: "featured" });
const [active, setActive] = useState(null);
const [reduced, setReduced] = useState(true);
const [still, setStill] = useState(true);
// the visitor's own stop for the looping previews (WCAG 2.2.2), remembered on this device
const [paused, setPaused] = useState(false);
const [limit, setLimit] = useState(24);
const [expandedGroups, setExpandedGroups] = useState({});
const resultsRef = useRef(null);
@@ -123,283 +98,114 @@ export const CatalogGallery = ({ catalog, initialGroup = "", initialSection = ""
const params = new URLSearchParams(window.location.search);
setFilters({ q: params.get("q") || "", group: params.get("group") || initialGroup, section: params.get("section") || initialSection, kind: params.get("kind") || "", sort: params.get("sort") || "featured" });
setLimit(24);
setActive(null);
};
read();
window.addEventListener("popstate", read);
// still posters for visitors who asked for less motion or less data
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
const pointer = window.matchMedia("(hover: hover) and (pointer: fine)");
const motion = () => { setReduced(query.matches || !pointer.matches || navigator.maxTouchPoints > 0); setActive(null); };
const visibility = () => { if (document.hidden)
setActive(null); };
const motion = () => setStill(query.matches || Boolean(navigator.connection?.saveData));
motion();
query.addEventListener("change", motion);
pointer.addEventListener("change", motion);
document.addEventListener("visibilitychange", visibility);
return () => { window.removeEventListener("popstate", read); query.removeEventListener("change", motion); pointer.removeEventListener("change", motion); document.removeEventListener("visibilitychange", visibility); };
try {
setPaused(window.localStorage.getItem(PAUSE_KEY) === "1");
}
catch { }
return () => { window.removeEventListener("popstate", read); query.removeEventListener("change", motion); };
}, [initialGroup, initialSection]);
// One effect owns the only active preview, including pending network requests.
// Every card on screen plays its loop. A video is decoded by the device's video hardware, so a screenful costs less
// than one live composition did; the live one, with its controls, is on the item's page. A phone plays only the card
// nearest the middle of the screen.
useEffect(() => {
if (!active || reduced || document.hidden)
const root = resultsRef.current;
if (!root || still || paused)
return;
const item = catalog.items.find(item => item.href === active);
if (item?.preview?.mode !== 'video')
return;
const host = resultsRef.current?.querySelector(`[data-preview-host="${CSS.escape(active)}"]`);
if (!host)
return;
let cancelled = false;
let element;
let timeout;
const abort = new AbortController();
const release = () => {
clearTimeout(timeout);
if (element) {
element.pause();
if (element.tagName === 'VIDEO') {
element.removeAttribute('src');
element.load();
}
element.remove();
element = null;
}
const phone = !matchMedia("(hover: hover) and (pointer: fine)").matches;
const onScreen = new Set();
let current = null;
const stop = (host) => {
const video = host.firstElementChild;
if (!video)
return;
video.pause();
video.removeAttribute('src');
video.load();
video.remove();
delete host.dataset.ready;
};
const fail = () => {
if (cancelled)
const play = (host) => {
if (document.hidden)
return;
cancelled = true;
abort.abort();
release();
host.dataset.state = 'unavailable';
};
const show = () => {
if (cancelled || !element)
return;
clearTimeout(timeout);
host.dataset.ready = 'true';
host.dataset.state = 'playing';
};
const start = async () => {
host.dataset.state = 'loading';
timeout = setTimeout(fail, 12000);
try {
element = document.createElement('video');
element.muted = true;
element.loop = true;
element.playsInline = true;
element.addEventListener('error', fail, { once: true });
element.addEventListener('playing', show, { once: true });
element.src = item.video;
if (cancelled) {
release();
return;
}
element.setAttribute('inert', '');
element.setAttribute('tabindex', '-1');
element.setAttribute('aria-hidden', 'true');
host.appendChild(element);
element.play().catch(fail);
}
catch {
if (!cancelled)
fail();
let video = host.firstElementChild;
if (!video) {
video = document.createElement('video');
video.muted = true;
video.loop = true;
video.playsInline = true;
video.tabIndex = -1;
video.addEventListener('playing', () => { host.dataset.ready = 'true'; }, { once: true });
// no loop for this item: its poster stays
video.addEventListener('error', () => stop(host), { once: true });
video.src = host.dataset.src;
host.appendChild(video);
}
video.play().catch(() => { });
};
// Avoid starting a composition while the pointer merely crosses the grid.
const intent = setTimeout(start, 180);
const observer = new IntersectionObserver(entries => {
if (!cancelled && !entries[0]?.isIntersecting)
setActive(current => current === active ? null : current);
});
observer.observe(host);
return () => {
cancelled = true;
clearTimeout(intent);
abort.abort();
observer.disconnect();
release();
delete host.dataset.state;
};
}, [active, reduced, catalog]);
// Player-mode cards mount whichever ones are near the viewport, rest paused at
// REST_SECONDS, and only start playing on hover — unlike the single-active effect
// above, several can be mounted at once, capped per tier so a WebGL-heavy row can't
// blow the page's GPU memory budget.
const capsRef = useRef({ dom: 0, webgl: 0 });
const mountsRef = useRef(new Map());
const hoveredRef = useRef(null);
const promoteRef = useRef(() => { });
useEffect(() => {
if (reduced)
return;
const tierFor = (item) => item.preview.heavy ? 'webgl' : 'dom';
const capFor = (tier) => tier === 'webgl' ? MAX_WEBGL_PLAYERS : MAX_DOM_PLAYERS;
// Hosts in view that were refused for want of a slot; they take the next one freed.
let waiting = new Map();
// The one place a slot is given back. It only acts while the map still holds this exact
// state, so a late error, a timeout after unmount, or the catch below cannot release twice.
const release = (item, state) => {
if (mountsRef.current.get(item.href) !== state)
return;
clearTimeout(state.readyTimer);
state.player?.remove();
capsRef.current[state.tier] -= 1;
mountsRef.current.delete(item.href);
const entries = [...waiting];
const queued = [...entries.filter(([h]) => h === hoveredRef.current), ...entries.filter(([h]) => h !== hoveredRef.current)];
waiting.clear();
queued.forEach(([href, host]) => mount(host, catalog.items.find((i) => i.href === href)));
};
const unmount = (host, item) => {
// Keyed by item.href, same as mount() below -- setHover() only ever has the
// item, never the host node, so the map has to be addressable by href.
waiting.delete(item.href);
const state = mountsRef.current.get(item.href);
if (!state)
return;
release(item, state);
delete host.dataset.ready;
};
const mount = async (host, item) => {
if (mountsRef.current.has(item.href))
return;
// The whole body is one try: a throw anywhere here (a bad tier, a missing cap
// constant, a network failure) must log once and leave the titled placeholder in
// place, never an empty box -- this is the exact shape of the bug that shipped.
let state;
try {
const tier = tierFor(item);
if (capsRef.current[tier] >= capFor(tier)) {
waiting.set(item.href, host); // over budget for this tier; mounts when a slot frees
return;
}
capsRef.current[tier] += 1;
state = { player: null, host, tier, hover: hoveredRef.current === item.href, readyTimer: 0 };
mountsRef.current.set(item.href, state);
await ensurePlayerDefined();
const response = await fetch(item.preview.source);
if (!response.ok)
throw new Error(`preview fetch failed: ${response.status}`);
const { html } = await response.json();
if (mountsRef.current.get(item.href) !== state)
return; // unmounted while loading
const player = document.createElement('hyperframes-player');
player.setAttribute('muted', '');
player.setAttribute('audio-locked', '');
player.setAttribute('width', String(item.preview.width));
player.setAttribute('height', String(item.preview.height));
player.setAttribute('inert', '');
player.setAttribute('tabindex', '-1');
player.setAttribute('aria-hidden', 'true');
// A player that neither errors nor reaches "ready" (a stalled fetch inside its
// own srcdoc, a composition script that never resolves) must fall back the same
// as an explicit error -- the placeholder is the safe state, a bare mounted
// element with nothing painted is not.
const fail = () => {
if (mountsRef.current.get(item.href) !== state)
return; // already released
console.error(`[catalog] preview failed to load: ${item.id}`);
host.dataset.state = 'unavailable';
delete host.dataset.ready;
release(item, state);
};
const readyTimer = state.readyTimer = setTimeout(fail, READY_TIMEOUT_MS);
player.addEventListener('error', fail, { once: true });
player.addEventListener('ready', () => {
clearTimeout(readyTimer);
player.seek(REST_SECONDS);
// The poster stays visible until the composition has painted, not merely until its runtime is ready.
revealWhenPainted(player, () => {
if (mountsRef.current.get(item.href) !== state)
return;
host.dataset.ready = 'true';
if (state.hover)
player.play();
});
}, { once: true });
player.setAttribute('srcdoc', html);
state.player = player;
host.appendChild(player);
}
catch (err) {
// A mount that was already released and superseded must not mark the new card.
if (state && mountsRef.current.get(item.href) !== state)
return;
console.error(`[catalog] preview failed to load: ${item.id}`, err);
host.dataset.state = 'unavailable';
if (state)
release(item, state);
}
};
// A hovered tile that is still waiting takes the slot of a mounted tile the pointer is not on.
promoteRef.current = (item) => {
const host = waiting.get(item.href);
if (!host)
return;
const tier = tierFor(item);
const victim = [...mountsRef.current].find(([, st]) => st.tier === tier && !st.hover);
if (!victim)
return;
waiting = new Map([[item.href, host], ...waiting]);
waiting.set(victim[0], victim[1].host);
release(catalog.items.find((i) => i.href === victim[0]), victim[1]);
delete victim[1].host.dataset.ready;
};
const hosts = resultsRef.current?.querySelectorAll('a[data-preview-mode="player"] [data-preview-host]') ?? [];
const observer = new IntersectionObserver((entries) => {
for (const entry of entries) {
const host = entry.target;
const item = catalog.items.find((i) => i.href === host.dataset.previewHost);
if (!item)
continue;
if (entry.isIntersecting)
mount(host, item);
else
unmount(host, item);
}
}, { rootMargin: '200px' });
hosts.forEach((host) => observer.observe(host));
const mounts = mountsRef.current;
return () => {
observer.disconnect();
mounts.forEach((state) => {
clearTimeout(state.readyTimer);
state.player?.remove();
const pick = () => {
let best = null, bestDistance = Infinity;
onScreen.forEach((host) => {
const r = host.getBoundingClientRect();
const distance = Math.abs(r.top + r.height / 2 - innerHeight / 2);
if (distance < bestDistance)
[best, bestDistance] = [host, distance];
});
mounts.clear();
capsRef.current = { dom: 0, webgl: 0 };
hoveredRef.current = null;
};
}, [filters, limit, expandedGroups, reduced, catalog]);
const setHover = (item, hovering) => {
if (reduced)
return;
if (item.preview?.mode === 'player') {
hoveredRef.current = hovering ? item.href : null;
const state = mountsRef.current.get(item.href);
if (!state) {
if (hovering)
promoteRef.current(item);
if (best === current)
return;
if (current)
stop(current);
current = best;
if (best)
play(best);
};
const observer = new IntersectionObserver((entries) => {
for (const { target, isIntersecting, intersectionRatio } of entries) {
if (isIntersecting && intersectionRatio >= 0.25) {
onScreen.add(target);
if (!phone)
play(target);
}
else {
onScreen.delete(target);
stop(target);
}
}
state.hover = hovering;
if (state.player) {
if (hovering)
state.player.play();
else
state.player.seek(REST_SECONDS);
}
}
else if (item.preview?.mode !== 'still' && item.preview?.mode !== 'unsupported') {
setActive(hovering ? item.href : null);
if (phone)
pick();
}, { threshold: 0.25 });
const hosts = root.querySelectorAll('[data-preview-host]');
hosts.forEach((host) => observer.observe(host));
// the nearest card changes while scrolling between observer callbacks
const timer = phone ? setInterval(pick, 500) : 0;
const visibility = () => onScreen.forEach((host) => document.hidden ? host.firstElementChild?.pause() : (!phone || host === current) && play(host));
document.addEventListener('visibilitychange', visibility);
return () => {
observer.disconnect();
clearInterval(timer);
document.removeEventListener('visibilitychange', visibility);
hosts.forEach(stop);
};
}, [filters, limit, expandedGroups, still, paused, catalog]);
const togglePaused = () => {
const next = !paused;
setPaused(next);
try {
window.localStorage.setItem(PAUSE_KEY, next ? "1" : "0");
}
catch { }
};
const update = (patch) => {
const next = { ...filters, ...patch };
setFilters(next);
setLimit(24);
setActive(null);
const url = new URL(window.location.href);
Object.entries(next).forEach(([key, value]) => {
if (value && !(key === "sort" && value === "featured"))
@@ -422,17 +228,18 @@ export const CatalogGallery = ({ catalog, initialGroup = "", initialSection = ""
const caret = React.createElement("svg", { className: "hfc-caret", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true" },
React.createElement("path", { d: "m6 9 6 6 6-6" }));
// eager: the posters above the fold (the pinned group) start immediately instead of queueing behind the page's prefetches.
const card = (item, eager = false) => (React.createElement("a", { className: "hfc-card", href: item.href, key: item.href, "data-preview-mode": item.preview?.mode || "still", onMouseEnter: () => setHover(item, true), onMouseLeave: () => setHover(item, false), onFocus: () => setHover(item, true), onBlur: () => setHover(item, false) },
const cardBase = (item) => `${CARD_BASE}/${item.kind === "block" ? "blocks" : "components"}/${item.id}`;
const card = (item, eager = false) => (React.createElement("a", { className: "hfc-card", href: item.href, key: item.href, "data-preview-mode": item.preview?.mode || "still" },
React.createElement("div", { className: "hfc-media" },
item.preview?.mode === "unsupported"
? React.createElement("div", { className: "hfc-fallback hfc-unsupported", "aria-hidden": "true" },
React.createElement("span", null, "Needs a browser flag"),
React.createElement("code", null, `chrome://flags/#${item.preview.flag}`))
: React.createElement("div", { className: "hfc-fallback", "aria-hidden": "true", style: { display: item.poster ? "none" : undefined } },
: React.createElement("div", { className: "hfc-fallback", "aria-hidden": "true", style: { display: "none" } },
React.createElement("span", null, item.section),
React.createElement("strong", null, item.title)),
item.poster && React.createElement("img", { src: item.poster, alt: `${item.title} preview`, loading: eager ? "eager" : "lazy", fetchPriority: eager ? "high" : undefined, decoding: "async", width: "640", height: "360", onError: (event) => { event.currentTarget.style.display = "none"; event.currentTarget.previousElementSibling.style.display = "flex"; } }),
item.preview?.mode !== "still" && item.preview?.mode !== "unsupported" && React.createElement("div", { className: "hfc-preview-host", "data-preview-host": item.href, "aria-hidden": "true" })),
item.preview?.mode !== "unsupported" && React.createElement("img", { src: `${cardBase(item)}.jpg`, alt: `${item.title} preview`, loading: eager ? "eager" : "lazy", fetchPriority: eager ? "high" : undefined, decoding: "async", width: "480", height: "270", onError: (event) => { event.currentTarget.style.display = "none"; event.currentTarget.previousElementSibling.style.display = "flex"; } }),
item.preview?.mode !== "unsupported" && React.createElement("div", { className: "hfc-preview-host", "data-preview-host": item.href, "data-src": `${cardBase(item)}.mp4`, "aria-hidden": "true" })),
React.createElement("div", { className: "hfc-card-body" },
React.createElement("div", { className: "hfc-card-title" },
React.createElement("h3", null, item.title),
@@ -443,7 +250,11 @@ export const CatalogGallery = ({ catalog, initialGroup = "", initialSection = ""
React.createElement("h1", null,
React.createElement(MotionWord, null),
" ready to install."),
React.createElement("p", null, initialGroup ? `${matches.length} items. Preview a piece and open it to explore its controls, code, and installation.` : "Find the scene, caption, or finishing touch for your next video. Preview the motion, pick a favorite, and make it your own.")),
React.createElement("p", null, initialGroup ? `${matches.length} items. Preview a piece and open it to explore its controls, code, and installation.` : "Find the scene, caption, or finishing touch for your next video. Preview the motion, pick a favorite, and make it your own."),
// The filter already reads ?q=; this is the place to type it. Every keystroke filters in memory, and the
// URL keeps the words so a search can be shared.
React.createElement("input", { className: "hfc-search", type: "search", value: filters.q, onChange: (event) => update({ q: event.target.value }), placeholder: `Search ${items.length || ""} items: captions, charts, 3D, transitions…`.replace(" ", " "), "aria-label": "Search the catalog" }),
!still && React.createElement("button", { type: "button", className: "hfc-pause", "aria-pressed": paused, onClick: togglePaused }, paused ? "Play previews" : "Pause previews")),
React.createElement("section", { className: "hfc-browser", "aria-label": "Browse catalog", ref: resultsRef }, searching ? React.createElement(React.Fragment, null,
matches.length ? React.createElement("div", { className: "hfc-grid" }, matches.slice(0, limit).map((item) => card(item))) : React.createElement("div", { className: "hfc-empty" },
React.createElement("h3", null, "No matches yet."),
+32 -2
View File
@@ -455,6 +455,35 @@ export const ShowcaseWall = () => {
}
}, [reduced]);
// A tile fetches and plays its card only once it is near the viewport (and pauses when it leaves), so films far down
// the page do not compete with what the visitor is looking at; until then its poster shows, the same first frame.
const [near, setNear] = useState({});
useEffect(() => {
const wall = wallRef.current;
if (reduced || !wall) return;
const tiles = wall.querySelectorAll("video[data-film]");
if (typeof IntersectionObserver === "undefined") {
setNear(Object.fromEntries([...tiles].map((video) => [video.dataset.film, true])));
return;
}
const observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
const video = entry.target;
if (entry.isIntersecting) {
setNear((current) => (current[video.dataset.film] ? current : { ...current, [video.dataset.film]: true }));
if (video.getAttribute("src")) video.play().catch(() => {});
} else {
video.pause();
}
}
},
{ rootMargin: "200px 0px" },
);
for (const video of tiles) observer.observe(video);
return () => observer.disconnect();
}, [reduced, openId]);
const open = films.find((film) => film.id === openId) || null;
if (open) {
@@ -537,9 +566,10 @@ export const ShowcaseWall = () => {
}}
>
<video
src={reduced ? undefined : film.tile}
data-film={film.id}
src={reduced || !near[film.id] ? undefined : film.tile}
poster={film.poster}
autoPlay={!reduced}
autoPlay={!reduced && !!near[film.id]}
muted
loop={!reduced}
playsInline
+36 -7
View File
@@ -42,14 +42,43 @@ export const InstallCommand = ({ command, item }) => {
React.useEffect(() => {
if (!item) return;
// >>> vars argument
/**
* The ` --vars '<json>'` suffix for a query value, or "" when nothing usable is in it.
*
* Keeps variable-id keys with string, finite number or boolean values, and
* escapes `'` so the JSON stays one shell argument in bash and zsh.
*
* `edited` lists the ids the reader set on this page. Any other string came
* with the link, from whoever shared it, and the command may be pasted into
* fish, PowerShell or cmd.exe, which quote differently. So such a string is
* kept only when it is short and holds nothing those shells read as syntax.
*/
function varsArgument(raw, edited = []) {
if (!raw) return "";
const parsed = JSON.parse(raw);
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return "";
const kept = Object.entries(parsed).filter(([id, value]) => {
if (!/^[A-Za-z_][\w-]*$/.test(id)) return false;
if (typeof value === "number") return Number.isFinite(value);
if (typeof value === "boolean") return true;
if (typeof value !== "string") return false;
return edited.includes(id) || (value.length <= 200 && /^[A-Za-z0-9 .,:_#+\-/@()?]*$/.test(value));
});
if (kept.length === 0) return "";
return ` --vars '${JSON.stringify(Object.fromEntries(kept)).replace(/'/g, "'\\''")}'`;
}
// <<< vars argument
const read = () => {
try {
const raw = new URLSearchParams(window.location.search).get(`vars-${item}`);
if (!raw) return setTuned("");
const parsed = JSON.parse(raw);
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return setTuned("");
if (Object.keys(parsed).length === 0) return setTuned("");
setTuned(` --vars '${JSON.stringify(parsed)}'`);
const edited = window.__hfEditedVars?.[item];
setTuned(
varsArgument(
new URLSearchParams(window.location.search).get(`vars-${item}`),
Array.isArray(edited) ? edited : [],
),
);
} catch {
// A hand-edited link should leave the plain command, not break it.
setTuned("");
@@ -99,7 +128,7 @@ export const InstallCommand = ({ command, item }) => {
return (
<div className="hf-install-command not-prose my-4 flex items-stretch overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-900">
<code className="flex-1 overflow-x-auto whitespace-nowrap border-r border-zinc-200 px-4 py-3 font-mono text-sm text-zinc-800 dark:border-zinc-800 dark:text-zinc-100">
<code className="flex-1 border-r border-zinc-200 px-4 py-3 font-mono text-sm text-zinc-800 dark:border-zinc-800 dark:text-zinc-100">
{fullCommand}
</code>
<button
+4 -3
View File
@@ -60,10 +60,11 @@ From a kit's page you can also choose **Use this kit**, or start **New project w
The agent reads the kit with every message, and the app copies the kit's files into the project's
`assets/brand-kit` folder, so the video still renders the same anywhere.
## Shared kits
## Kits and your team
Kits other people share with you appear under **Shared with you**. You can use them but not change them. Only a
workspace owner or admin can change the workspace's brand settings.
Everyone in your workspace sees its kits under **Yours** and can use them in their projects. You can't share a kit
outside your workspace from the Studio app, and kits made on app.heygen.com don't show up here. Only a workspace owner
or admin can change the workspace's brand settings.
## Related topics
+2 -2
View File
@@ -63,8 +63,8 @@ Check them, add a note for all of them, then send them as one request with the s
<HoverVideo className="hf-aside hf-spot" src="https://static.heygen.ai/hyperframes-oss/docs/studio-demos/show-timeline-v2.mp4" poster="/public/images/studio-app/spots/show-timeline-v2.jpg" hasAudio={false} label="Show timeline opens the timeline under the preview" />
Some changes are faster by hand. Show the timeline with the button under the preview. Hover a clip to **Split** it at the playhead, **Delete** it,
open **Quick edit** to change a video or audio clip's **Speed**, **Volume**, and **Fade**, or ask the agent about it,
remove its background or add a transition. Drag clips to move or trim
open **Quick edit** to change a video or audio clip's **Speed**, **Volume**, and **Fade**, ask the agent about it,
or remove its background. Drag clips to move or trim
them.
Right-click an empty gap for **Close gap** or **Close all gaps**.
+7 -5
View File
@@ -21,13 +21,15 @@ When the video is ready, choose **Export** in the project's top bar. The **Expor
## This Mac or the cloud
Exports render on **This Mac** unless you pick the cloud. Under the render button, **Render in the cloud** opens
**Cloud rendering**, which compares the two and lets you **Add API key**. Once a key is saved, **Render on** in Export
picks **This Mac** or **Cloud**.
Exports from HyperFrames Desktop render on your computer and are unlimited on every plan. Free includes 5 cloud exports a month.
Pick where the video renders under **Render on** in Export: **This Mac** or **Cloud**. Your HyperFrames plan
includes cloud exports: 5 a month on Free, and unlimited on Pro. On Pro, **Cloud** is the default unless you picked
another destination before. You can also save a HeyGen API key: cloud renders paid through it come from your API balance.
| | This Mac | Cloud |
| --- | --- | --- |
| Cost | Free | Paid per minute of video from your HeyGen API balance. Export shows the price before you start; 4K costs about twice as much as 1080p. |
| Cost | Free | Included in your plan: 5 cloud exports a month on Free, unlimited on Pro. When paid through your HeyGen API key, billed per minute of video from your API balance; Export shows the price before you start, and 4K costs about twice as much as 1080p. |
| Your computer | Busy until it finishes | Free. Keep working while it renders. |
| Your files | Stay on your computer | The project is uploaded to HeyGen to render |
| Limits | Any shape and length | 16:9, 9:16 or 1:1, at 24, 25, 30 or 60 fps, project up to 200 MB |
@@ -73,7 +75,7 @@ Watch the exported file once from start to end before you send it.
- **The video was made but could not be saved to your Downloads folder**: free up space or check that the Downloads
folder exists, then export again.
- **HyperFrames could not start its built-in FFmpeg**: the app may be damaged. Reinstall it from
[hyperframes.studio/studio](https://hyperframes.studio/studio).
[hyperframes.studio/studio](https://hyperframes.studio/studio?src=docs-export).
## Related topics
+13 -13
View File
@@ -11,11 +11,10 @@ agent on your computer builds it, and you change it by typing, pointing at the p
You do not need to write code. Framey, the small
green guide, points you to the next step along the way.
- **Free.** You sign in with a free HeyGen account. HeyGen media (avatars, generated clips, HeyGen voices) uses
HeyGen credits only when you ask for it, and your own agent bills its own plan, or nothing with OpenCode.
- **Free.** You sign in with a free HeyGen account.
- **Mac:** Apple Silicon or Intel. **Linux:** 64-bit Intel and AMD, as a .deb or an AppImage.
- **Windows:** 64-bit Intel and AMD, as an installer. Windows on Arm is not available yet; there, make videos with
[your AI agent](/quickstart#with-your-agent) or in [Claude.ai or ChatGPT](/guides/mcp).
- **Windows:** 64-bit Intel and AMD, as a zip. Windows on Arm runs the same download through Windows' built-in
emulation.
<Frame caption="Home: the Make something box with its Make, Reference and Script tabs, and Remix from inspiration beside it.">
<img
@@ -30,7 +29,8 @@ green guide, points you to the next step along the way.
<Tab title="Mac">
<Steps>
<Step title="Download">
Go to [hyperframes.studio/studio](https://hyperframes.studio/studio) and choose **Download for macOS** (in Safari or Firefox the button is **Apple Silicon**, with an **Intel** link next to it).
[Download the app for Mac](https://hyperframes.studio/studio/download?os=mac&src=docs-install). One file works on
Apple Silicon and Intel Macs.
</Step>
<Step title="Install">
Open the downloaded disk image and double-click **Install HyperFrames**. The installer copies the app into
@@ -46,19 +46,19 @@ green guide, points you to the next step along the way.
<Tab title="Windows">
<Steps>
<Step title="Download">
Go to [hyperframes.studio/studio](https://hyperframes.studio/studio) and choose **Download for Windows**. You get
`Install-HyperFrames.exe`.
[Download the app for Windows](https://hyperframes.studio/studio/download?os=windows&src=docs-install). You get
`HyperFrames-win-x64.zip`.
</Step>
<Step title="Install it and open it">
Run `Install-HyperFrames.exe`. Windows shows the publisher, which reads **HeyGen**. When the installer
finishes, open **HyperFrames**.
<Step title="Unzip it and open it">
Right-click the zip and choose **Extract All**. Open the `HyperFrames-win32-x64` folder it makes and
double-click `HyperFrames.exe`. The app updates itself from there.
</Step>
</Steps>
</Tab>
<Tab title="Linux">
<Steps>
<Step title="Download">
Go to [hyperframes.studio/studio](https://hyperframes.studio/studio) and choose **Download** next to Linux (.deb).
[Download the app for Linux](https://hyperframes.studio/studio/download?os=deb&src=docs-install).
You get `HyperFrames-amd64.deb` for 64-bit Intel and AMD computers on Debian, Ubuntu and their
relatives.
</Step>
@@ -73,8 +73,8 @@ green guide, points you to the next step along the way.
</Step>
</Steps>
Prefer one portable file, or not on a Debian-based system? Choose **Linux (AppImage)** instead, then in the
folder you downloaded it to:
Prefer one portable file, or not on a Debian-based system? [Download the AppImage](https://hyperframes.studio/studio/download?os=linux&src=docs-install)
instead, then in the folder you downloaded it to:
```bash
chmod +x HyperFrames-x86_64*.AppImage
+6 -2
View File
@@ -22,8 +22,12 @@ like is still a better start than a blank page.
*Pick a reference from the feed: it's a person talking to camera, so the app goes to **Copy editing style**. Choose who's
on camera, then say what the video should talk about.*
Reference uses your HeyGen API key: the app watches the video through HeyGen, which uses your API balance. Add the
key in **Settings** > **HeyGen API key**, or when the app asks.
Reference is part of [HyperFrames Pro](https://hyperframes.studio/pricing): the app watches the video through HeyGen,
and Pro credits pay for the read when they're available. A usable HeyGen API key saved in **Settings** > **HeyGen API
key** pays when the plan can't. A saved key with an empty balance makes the app ask for a key before the read starts;
remove it in **Settings** to let Pro pay. With no plan that can pay and no usable key, the app asks you to get Pro or
add a key, opening **Plan & usage** if Pro's allowance for the month is used up, and it picks up the selected video again
once your plan can pay.
## 1. Pick the video

Some files were not shown because too many files have changed in this diff Show More