Communitygithub.com

HyperFrames 注册表

HyperFrames 组件注册表 —— 安装和管理可复用的目录块、组件和模板。

HyperFrames 注册表 是什么?

HyperFrames Registry 是一个 CLI 驱动的组件管理系统,专为 HyperFrames 生态系统设计。它允许开发者通过 `npx hyperframes registry` 命令搜索、添加、列出、删除和更新可复用的“块”(block)资源。这些块覆盖多种类别,如字幕、标题卡、转场、叠加层、数据可视化、背景和社交安全区等,适用于直播、视频制作或演示场景。 该技能支持从注册表快速集成预建块,例如在 HTML 中通过自定义元素 `<hf-block>` 引用块文件,并利用 `data-hf-clip`、`data-hf-start`、`data-duration` 等属性控制播放行为。此外,用户还可以按照规定的目录结构(包含 `block.html`、`block.json` 和可选的 `preview.png`)创建自定义块,并通过 `npx hyperframes registry publish` 发布到注册表。其核心价值在于加速多媒体项目开发,消除手动重复编码,并促进团队间的组件共享。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/christiansalazar-wk/ai-lore/tree/HEAD/skills/hyperframes-registry

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

HyperFrames 注册表 是做什么的?

npx hyperframes registry search <查询词>
npx hyperframes registry add <块名称>
npx hyperframes registry list
npx hyperframes registry remove <块名称>
npx hyperframes registry update

块类别

类别示例
lower-thirds名牌、演讲者标识
title-cards主标题、章节卡片
transitions自定义场景转场
overlays进度条、计时器、徽标
data-viz动画图表、计数器
captions样式化字幕渲染器
backgrounds动画渐变、粒子场
cta行动号召卡片、二维码
social平台安全区域框

用法

npx hyperframes registry add lower-thirds/minimal
<link rel="hf-block" href="./blocks/lower-thirds/minimal/block.html" as="lower-third-minimal" />

<hf-block name="lower-third-minimal"
          data-hf-clip data-hf-start="3s" data-hf-duration="4s"
          data-name="Jane Smith" data-title="产品主管"
          style="position:absolute;bottom:80px;left:80px;">
</hf-block>

热门块

  • lower-thirds/minimal — 姓名 + 职衔徽章
  • lower-thirds/social — 姓名 + 社交账号 + 平台图标
  • title-cards/hero — 全屏标题卡片
  • overlays/progress-bar — 回放进度条
  • data-viz/counter — 动画数字计数器(data-from、data-to、data-suffix)
  • backgrounds/gradient-mesh — 动画渐变网格
  • cta/link-card — 带动画的 URL 卡片(含图标)
  • social/youtube-safe-zone — 安全区域 QA 叠加层

自定义块结构

my-block/
  block.html
  block.json   # { "name", "version", "props": { "data-x": { "type", "default" } } }
  preview.png
npx hyperframes registry publish ./my-block

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

相关技能