85453da49f
regression / regression-shards (style-16-prod style-9-prod style-17-prod iframe-render-compat variables-prod mp4-h265-sdr, shard-4) (push) Has been cancelled
regression / regression-shards (style-4-prod style-11-prod style-2-prod animejs-adapter typegpu-adapter parallel-capture-regression, shard-5) (push) Has been cancelled
regression / regression-shards (style-7-prod style-8-prod style-10-prod css-spinner-render-compat webm-transparency mp4-h264-sdr webm-vp9, shard-3) (push) Has been cancelled
regression / regression-shards (sub-composition-video style-18-prod raf-ball-render-compat font-variant-numeric sub-comp-t0 sub-comp-id-selector, shard-7) (push) Has been cancelled
Windows render verification / Detect changes (push) Has been cancelled
Windows render verification / Preflight (lint + format) (push) Has been cancelled
Windows render verification / Render on windows-latest (push) Has been cancelled
Windows render verification / Tests on windows-latest (push) Has been cancelled
CI / Detect changes (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Fallow audit (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Producer: integration tests (push) Has been cancelled
CI / Producer: unit tests (push) Has been cancelled
CI / File size check (push) Has been cancelled
CI / Test: skills (push) Has been cancelled
CI / Skills: manifest in sync (push) Has been cancelled
CI / CLI: npx shim (macos-latest) (push) Has been cancelled
CI / CLI: npx shim (ubuntu-latest) (push) Has been cancelled
CI / CLI: npx shim (windows-latest) (push) Has been cancelled
CI / SDK: unit + contract + smoke (push) Has been cancelled
CI / Test: runtime contract (push) Has been cancelled
CI / Studio: load smoke (push) Has been cancelled
CI / Smoke: global install (push) Has been cancelled
CI / CLI smoke (required) (push) Has been cancelled
CI / Semantic PR title (push) Has been cancelled
Player perf / Detect changes (push) Has been cancelled
Player perf / Preflight (lint + format) (push) Has been cancelled
Player perf / player-perf (push) Has been cancelled
Player perf / Perf: drift (push) Has been cancelled
Player perf / Perf: fps (push) Has been cancelled
Player perf / Perf: parity (push) Has been cancelled
Player perf / Perf: scrub (push) Has been cancelled
Player perf / Perf: load (push) Has been cancelled
preview-regression / Detect changes (push) Has been cancelled
preview-regression / Preflight (lint + format) (push) Has been cancelled
preview-regression / Preview parity (push) Has been cancelled
preview-regression / preview-regression (push) Has been cancelled
regression / regression (push) Has been cancelled
regression / Detect changes (push) Has been cancelled
regression / Preflight (lint + format) (push) Has been cancelled
regression / regression-shards (hdr-regression style-5-prod style-3-prod mov-prores, shard-1) (push) Has been cancelled
regression / regression-shards (overlay-montage-prod style-12-prod chat missing-host-comp-id png-sequence portrait-edge-bleed, shard-6) (push) Has been cancelled
regression / regression-shards (style-13-prod style-6-prod vignelli-stacking gsap-letters-render-compat audio-mux-parity, shard-8) (push) Has been cancelled
regression / regression-shards (style-15-prod hdr-hlg-regression style-1-prod many-cuts vfr-screen-recording render-symlinked-assets, shard-2) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docs / Validate docs (push) Has been cancelled
Sync skills to ClawHub / Publish changed skills (push) Has been cancelled
102 lines
4.4 KiB
Markdown
102 lines
4.4 KiB
Markdown
---
|
|
name: hyperframes-registry
|
|
description: Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).
|
|
---
|
|
|
|
# HyperFrames Registry
|
|
|
|
The registry provides reusable blocks and components installable via `hyperframes add <name>`.
|
|
|
|
- **Blocks** — standalone sub-compositions (own dimensions, duration, timeline). Included via `data-composition-src` in a host composition.
|
|
- **Components** — effect snippets (no own dimensions). Pasted directly into a host composition's HTML.
|
|
|
|
## Quick reference
|
|
|
|
```bash
|
|
hyperframes add data-chart # install a block
|
|
hyperframes add grain-overlay # install a component
|
|
hyperframes add shimmer-sweep --dir . # target a specific project
|
|
hyperframes add data-chart --json # machine-readable output
|
|
hyperframes add data-chart --no-clipboard # skip clipboard (CI/headless)
|
|
```
|
|
|
|
After install, the CLI prints which files were written and a snippet to paste into your host composition. The snippet is a starting point — you'll need to add `data-composition-id` (must match the block's internal composition ID), `data-start`, and `data-track-index` attributes when wiring blocks.
|
|
|
|
Note: `hyperframes add` only works for blocks and components. For examples, use `hyperframes init <dir> --example <name>` instead.
|
|
|
|
## Install locations
|
|
|
|
Blocks install to `compositions/<name>.html` by default.
|
|
Components install to `compositions/components/<name>.html` by default.
|
|
|
|
These paths are configurable in `hyperframes.json`:
|
|
|
|
```json
|
|
{
|
|
"registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",
|
|
"paths": {
|
|
"blocks": "compositions",
|
|
"components": "compositions/components",
|
|
"assets": "assets"
|
|
}
|
|
}
|
|
```
|
|
|
|
See [install-locations.md](./references/install-locations.md) for full details.
|
|
|
|
## Wiring blocks
|
|
|
|
Blocks are standalone compositions — include them via `data-composition-src` in your host `index.html`:
|
|
|
|
```html
|
|
<div
|
|
data-composition-id="data-chart"
|
|
data-composition-src="compositions/data-chart.html"
|
|
data-start="2"
|
|
data-duration="15"
|
|
data-track-index="1"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
></div>
|
|
```
|
|
|
|
Key attributes:
|
|
|
|
- `data-composition-src` — path to the block HTML file
|
|
- `data-composition-id` — must match the block's internal ID
|
|
- `data-start` — when the block appears in the host timeline (seconds)
|
|
- `data-duration` — how long the block plays
|
|
- `data-width` / `data-height` — block canvas dimensions
|
|
- `data-track-index` — layer ordering (higher = in front)
|
|
|
|
See [wiring-blocks.md](./references/wiring-blocks.md) for full details.
|
|
|
|
## Wiring components
|
|
|
|
Components are snippets — paste their HTML into your composition's markup, their CSS into your style block, and their JS into your script (if any):
|
|
|
|
1. Read the installed file (e.g., `compositions/components/grain-overlay.html`)
|
|
2. Copy the HTML elements into your composition's `<div data-composition-id="...">`
|
|
3. Copy the `<style>` block into your composition's styles
|
|
4. Copy any `<script>` content into your composition's script (before your timeline code)
|
|
5. If the component exposes GSAP timeline integration (see the comment block in the snippet), add those calls to your timeline
|
|
|
|
See [wiring-components.md](./references/wiring-components.md) for full details.
|
|
|
|
## Discovery
|
|
|
|
Browse available items:
|
|
|
|
```bash
|
|
# Read the registry manifest
|
|
curl -s https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/registry.json
|
|
```
|
|
|
|
Each item's `registry-item.json` contains: name, type, title, description, tags, dimensions (blocks only), duration (blocks only), and file list.
|
|
|
|
See [discovery.md](./references/discovery.md) for details on filtering by type and tags.
|
|
|
|
## Contributing a new block or component
|
|
|
|
To author a NEW registry item (caption style, VFX block, transition, lower third, or a reusable component) and ship it as an upstream PR — not install an existing one — follow the full idea → scaffold → build → validate → preview → ship workflow in [contributing.md](./references/contributing.md). Copy-paste starter templates (caption / VFX / component / `registry-item.json`) are in [templates.md](./references/templates.md).
|