@hydra-tv/hydra-gfx-sdk
v0.2.0
Published
Authoring SDK and hydra-gfx CLI for HYDRA // GFX template packages (.hgfx.js).
Readme
@hydra-tv/hydra-gfx-sdk
Authoring helpers (definePackage / defineTemplate) and the hydra-gfx CLI that compiles template packages into single-file .hgfx.js artifacts for HYDRA // GFX.
Requires Bun (>=1.1) — the CLI uses Bun.build.
Install
bun add @hydra-tv/hydra-gfx-sdk @hydra-tv/hydra-gfx-runtime react zod motionAuthor
import { definePackage, defineTemplate } from '@hydra-tv/hydra-gfx-sdk'
export default definePackage({
id: 'my-show',
name: 'My Show',
version: '1.0.0',
templates: [
defineTemplate({
id: 'lower-third',
name: 'Lower Third',
schema: mySchema,
defaults: { ... },
Render: () => import('./templates/lower-third/Graphic'),
}),
],
})Build
bunx hydra-gfx build --out /path/to/hydra/data/packages
# watch:
bunx hydra-gfx build --watch --out /path/to/hydra/data/packagesFull guide: template packages.
