Hyperframes Registry

calesthio/OpenMontage/.agents/skills/hyperframes-registry

作者 calesthio9327439db69021ab4b0e2776729bf3b58fdb5a87無授權條款65K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫5 天前更新

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).

AI 產生的概覽

安裝並接入 HyperFrames 註冊表中的區塊與元件,並說明如何撰寫新的註冊表項目。

功能
說明如何使用 hyperframes add 指令安裝可重用的 HyperFrames 註冊表區塊與元件,包括指定專案目錄與輸出機器可讀結果。介紹安裝位置、如何透過 data-composition-src 屬性把區塊接入宿主合成,以及如何合併元件的 HTML、CSS 與 JS 片段。也涵蓋註冊表探索流程,以及撰寫新區塊或元件以上游貢獻的流程。
適用情境
適用於執行 hyperframes add、安裝區塊或元件、把已安裝項目接入 index.html,或處理 hyperframes.json 的情境。瀏覽註冊表或撰寫新的註冊表項目用於上游貢獻時也適用。
執行需求
需要具備 hyperframes add 指令的 HyperFrames CLI,以及包含 hyperframes.json 的專案。存取註冊表清單與項目需要網路連線。不附帶指令碼,僅為說明與參考文件。

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 blockhyperframes add grain-overlay           # install a componenthyperframes add shimmer-sweep --dir .   # target a specific projecthyperframes add data-chart --json       # machine-readable outputhyperframes 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 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 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 for full details.

Discovery

Browse available items:

bash
# Read the registry manifestcurl -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 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. Copy-paste starter templates (caption / VFX / component / registry-item.json) are in templates.md.

來源與署名

來源:calesthio/OpenMontage位於.agents/skills/hyperframes-registry提交9327439

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架