contribute-catalog
heygen-com/hyperframes
Author and ship new HyperFrames registry blocks or components as upstream PRs.
What is contribute-catalog?
Contribute new caption styles, VFX effects, transitions, lower thirds, text effects, overlays, or snippets to the public HyperFrames registry. Use this skill only when building for the shared catalog; for in-project authoring use the `hyperframes` skill, and for installing existing items use the `hyperframes-registry` skill.
- Scaffold registry structure for blocks (caption styles, VFX, title cards, lower thirds) or components (reusable CSS effects, text treatments, overlays)
- Build compositions with GSAP timelines, per-character animation, karaoke highlighting, and Three.js VFX support
- Validate syntax, render preview videos, and generate catalog snapshots
- Format code, update registry.json, generate catalog docs, and publish to hyperframes.dev for review
- Guide the full workflow from idea clarification through merged PR
How to install contribute-catalog
npx skills add https://github.com/heygen-com/hyperframes --skill contribute-catalog- GitHub account (sign up at https://github.com/signup if needed)
- HyperFrames CLI installed and configured
- Git and `gh` CLI for branch creation and PR submission
- AWS profile `engineering-767398024897` (HeyGen internal contributors only, for image upload)
How to use contribute-catalog
- 1.Clarify the item type (block or component) and gather a one-sentence description, visual reference, and use case
- 2.Scaffold the registry directory structure with {name}.html and registry-item.json using the provided templates
- 3.Build the composition using GSAP timelines, apply caption rules (96px+ font, text-stroke, fitTextFontSize, hard kill), and use the correct ID prefix (2-3 letters)
- 4.Run `hyperframes lint` and `hyperframes validate --no-contrast` to ensure 0 errors
- 5.Generate preview with `hyperframes render -o preview.mp4` and snapshots with `hyperframes snapshot`
- 6.Create a feature branch, format HTML with `npx oxfmt`, update registry/registry.json, run `scripts/generate-catalog-pages.ts`, and publish to hyperframes.dev
- 7.Commit, push, and open a PR with the hyperframes.dev preview link; attach preview MP4 (external) or ensure catalog PNG is uploaded (internal)
Use cases
- Create a custom caption style with typewriter or scramble animation and submit it to the public registry
- Build a Three.js VFX effect (chrome, glitch, particle) and contribute it as a reusable block
- Author a CSS text effect or overlay component that adapts to any composition size
- Generate preview videos and snapshots for catalog review before opening a PR
- Collaborate on registry contributions with built-in validation and publishing tools
- Video creators and designers contributing to the HyperFrames public catalog
- Teams building reusable caption styles, transitions, and VFX for shared use
- Open-source contributors extending the HyperFrames ecosystem
- HeyGen internal and external developers shipping registry items
contribute-catalog FAQ
Use contribute-catalog only when authoring for the public registry to ship as an upstream PR. Use the hyperframes skill for in-project caption/transition authoring, and hyperframes-registry for installing existing registry items.
A block is a full standalone composition with fixed dimensions and duration (caption styles, VFX, title cards, lower thirds). A component is a reusable snippet with no fixed dimensions or duration (CSS effects, text treatments, overlays that adapt to any size).
Font must be 96px minimum for proportional fonts or 64-72px for monospace. Use `-webkit-text-stroke: 2-3px` or multi-layer text-shadow for readability. Call `window.__hyperframes.fitTextFontSize()` on every group. Implement karaoke via word highlighting and hard kill with `tl.set(groupEl, { opacity: 0, visibility: "hidden" }, g.end)` on every group. Never use `tl.from()` at the same position as `tl.set()`.
Run `hyperframes render -o preview.mp4` and `hyperframes snapshot` to create a preview. HeyGen internal contributors run `scripts/upload-docs-images.sh` with AWS profile access. External contributors attach the preview MP4 to the PR description; a maintainer will generate and upload the catalog image before merging.
All steps are required. Missing any one produces a broken catalog entry. The checklist includes linting, validation, registry.json update, catalog docs generation, hyperframes.dev publishing, and preview attachment.
Full instructions (SKILL.md)
Source of truth, from heygen-com/hyperframes.
name: contribute-catalog
description: Author a new HyperFrames registry block (caption style, VFX block, transition, lower third) or component (text effect, overlay, snippet) and ship it as an upstream PR to the hyperframes repo. Use ONLY when the user wants to CONTRIBUTE to the public catalog — for in-project caption/transition authoring use the hyperframes skill, for installing existing registry items use the hyperframes-registry skill.
Contribute to HyperFrames Registry
Guide the user from idea to merged PR for a new registry block or component.
Workflow
1. Clarify → 2. Scaffold → 3. Build → 4. Validate → 5. Preview → 6. Ship
Step 1: Clarify
Ask what they're building. The registry has two item types:
- Block (
registry/blocks/, typehyperframes:block) — a full standalone composition with fixed dimensions and duration. Caption styles, VFX effects, title cards, lower thirds. - Component (
registry/components/, typehyperframes:component) — a reusable snippet with no fixed dimensions or duration. CSS effects, text treatments, overlays that adapt to any composition size.
Then ask:
- One-sentence description of the effect
- Visual reference (URL, screenshot, or description)
- Who uses this and when?
Step 2: Scaffold
Create the registry structure:
For blocks:
registry/blocks/{block-name}/
{block-name}.html
registry-item.json
For components:
registry/components/{component-name}/
{component-name}.html
registry-item.json
Naming convention:
| Item name | ID prefix | Example IDs |
|---|---|---|
cap-hormozi | hz | hz-cg-0, hz-cw-3 |
cap-typewriter | tw | tw-cg-0, tw-ch-0-5 |
vfx-chrome | vc | vc-canvas |
Use a 2-3 letter prefix. ALL element IDs must use this prefix to avoid collisions in sub-compositions.
registry-item.json for blocks:
{
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
"name": "{block-name}",
"type": "hyperframes:block",
"title": "{Human Title}",
"description": "{one sentence}",
"dimensions": { "width": 1920, "height": 1080 }, // adjust: 1080x1920 for portrait/social
"duration": 10, // adjust for your composition
"tags": ["{category}", "{subcategory}"],
"files": [
{
"path": "{block-name}.html",
"target": "compositions/{block-name}.html",
"type": "hyperframes:composition"
}
]
}
registry-item.json for components (no dimensions or duration):
{
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
"name": "{component-name}",
"type": "hyperframes:component",
"title": "{Human Title}",
"description": "{one sentence}",
"tags": ["{category}"],
"files": [
{
"path": "{component-name}.html",
"target": "compositions/components/{component-name}.html",
"type": "hyperframes:snippet"
}
]
}
Step 3: Build
Apply the correct template based on type. See templates.md for copy-paste starters.
Caption blocks
Non-negotiable caption rules:
- Font: 96px minimum for proportional fonts. 64-72px acceptable for monospace (wider characters need less size).
- Readability:
-webkit-text-stroke: 2-3pxOR multi-layertext-shadow - Overflow: call
window.__hyperframes.fitTextFontSize()on every group - Karaoke: highlight active word via
tl.to(wordEl, { color/scale }, WORDS[wi].start) - Hard kill:
tl.set(groupEl, { opacity: 0, visibility: "hidden" }, g.end)on EVERY group - Never use
tl.from(el, { opacity: 0 })at the same position astl.set(el, { opacity: 1 })— the from clobbers the set. Usetl.toinstead.
Per-character animation (typewriter, scramble):
- Wrap each character in
<span>with ID{prefix}-ch-{group}-{char} - Stagger via
tl.setat computed intervals from word timestamps - Cursors/decorative elements: use
tl.setat intervals — NOT CSS animation (not seekable)
Positioning variants:
- Centered:
display: flex; align-items: center; justify-content: center; - Lower-third:
position: absolute; bottom: 100px; left: 0; width: 100%; text-align: center; - Left-aligned:
position: absolute; bottom: 100px; left: 120px; text-align: left;
VFX blocks (Three.js)
- Use
three@0.147.0from CDN (global script) tl.eventCallback("onUpdate", renderScene); renderScene();— NO requestAnimationFrame- State proxy pattern: GSAP animates plain JS object, render function reads it
- Seeded PRNG (
mulberry32) for randomness
All types
data-composition-idMUST matchwindow.__timelines["id"]- All element IDs prefixed with block abbreviation
gsap.timeline({ paused: true })— always paused- No
Math.random(), noDate.now()
Step 4: Validate
hyperframes lint # 0 errors required
hyperframes validate --no-contrast # 0 console errors required
Step 5: Preview
# Render preview video
hyperframes render -o preview.mp4
# Snapshot for visual QA
hyperframes snapshot --at "1.0,3.0,5.0,7.0"
# Publish to hyperframes.dev for review
npx hyperframes publish
Catalog preview image — The catalog card uses a PNG at docs/images/catalog/{kind}/{name}.png (where {kind} is blocks or components). Generate it from a snapshot, then:
- HeyGen internal contributors: run
scripts/upload-docs-images.sh(requires AWS profileengineering-767398024897) - External contributors: attach the preview MP4 to your PR description. A maintainer will generate and upload the catalog image before merging.
Step 6: Ship
All steps are required. Missing any one produces a broken catalog entry.
{kind} is blocks or components depending on what you built in Step 1.
# 1. Create branch
git checkout -b feat/registry-{name}
# 2. Format HTML
npx oxfmt registry/{kind}/{name}/*.html
# 3. Update registry/registry.json — add entry to the "items" array:
# { "name": "{name}", "type": "hyperframes:block" } (or "hyperframes:component")
# 4. Generate catalog docs page
npx tsx scripts/generate-catalog-pages.ts
# 5. Publish to hyperframes.dev so reviewers can preview
npx hyperframes publish
# 6. Stage everything
git add registry/{kind}/{name}/ registry/registry.json docs/catalog/
# 7. Commit
git commit -m "feat(registry): add {name} — {one sentence}"
# 8. Push and open PR with hyperframes.dev link
git push origin feat/registry-{name}
gh pr create --title "feat(registry): {name}" --body "preview: {hyperframes.dev-url}"
If you don't have a GitHub account: you need one to open a PR. Sign up at https://github.com/signup, then run gh auth login.
Quality Gate
-
hyperframes lint→ 0 errors -
hyperframes validate→ 0 console errors -
npx oxfmt --checkpasses -
registry/registry.jsonupdated with new entry -
scripts/generate-catalog-pages.tsrun (docs page generated) -
npx hyperframes publishrun (claim your project URL) - Preview MP4 attached to PR (external) or catalog PNG uploaded (internal)
- All IDs unique and prefixed
Related skills
More from heygen-com/hyperframes and the wider catalog.
hyperframes
Router and entry skill for video authoring—renders video from HTML with intent-based workflow selection.
hyperframes-cli
CLI for HyperFrames video composition: scaffold, lint, validate, render locally or on AWS Lambda.
hyperframes-registry
Install and wire reusable blocks and components into HyperFrames compositions via registry.
remotion-to-hyperframes
Port existing Remotion (React) video compositions to HyperFrames HTML—one-way translation only.
hyperframes-media
Audio and media engine for HyperFrames: TTS, background music, sound effects, transcription, captions, and background removal.
gsap
GSAP animation reference for HyperFrames compositions with timelines, easing, and performance optimization.