--- 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, and registry discovery. --- # HyperFrames Registry The registry provides reusable blocks and components installable via `hyperframes add `. - **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. ## When to use this skill - User mentions `hyperframes add`, "block", "component", or `hyperframes.json` - Output from `hyperframes add` appears in the session (file paths, clipboard snippet) - You need to wire an installed item into an existing composition - You want to discover what's available in the registry ## 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 --example ` instead. ## Install locations Blocks install to `compositions/.html` by default. Components install to `compositions/components/.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
``` 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 `
` 3. Copy the `