HyperFrames registry
Install blocks and components from HeyGen's HyperFrames registry into a project, and see which ones Kinetograph draws.
HyperFrames is HeyGen's open video format, and its catalog holds about 450 blocks and components made by HeyGen and its contributors. Kinetograph reads them as they are. The registry is the heygen-com/hyperframes repository (Apache-2.0), under registry/. Nothing from it is copied into Kinetograph: an item is fetched when you add it.
Add an item
npx kinetograph add hyperframes --search aurora
npx kinetograph add hyperframes/aurorahf/aurora works too. The command:
- fetches the item and the items it needs (
registryDependencies), and refuses a loop; - writes its files where
hyperframes adddoes: blocks incompositions/, components incompositions/components/, pictures and fonts inassets/, in the folder that holds yourindex.html(orhyperframes.json, whosepathsit follows; in a project made byinit --html, thehtml/folder); - moves the
TEMPLATE.md,models/andlib/files that some items put at the project root intocompositions/<name>/,assets/models/andcompositions/lib/, and updates the paths in the item's own files; - downloads the pictures, fonts and models an item keeps on HeyGen's CDN;
- stores the fonts and data an item loads from the web while it runs, as described in the next section;
- stops, with nothing written, when a file already exists. A file with the same bytes is left as it is.
--overwritereplaces the rest; - refuses to write outside those folders, to a hidden path, or to
package.jsonandnode_modules.
A block is a composition: mount it from your index.html with data-composition-src. A component is a snippet to paste into one. The command prints the line to use.
add hyperframes --list shows every block and component with its type and description, and --type block|component narrows it. The list is cached for a day. --ref <commit|branch|tag> reads another version of the registry. The default is a pinned commit, so an install gives the same files next month; --ref main is the latest.
Fonts and files loaded from the web
Many items name a Google Fonts stylesheet, a font file on a CDN or a JSON file to fetch. A browser loads those when the page runs; Kinetograph's render never touches the network. So add downloads them with the item, and the item then names the copies:
| The item has | add stores | And changes |
|---|---|---|
<link> or @import of fonts.googleapis.com/css2?… | one font file per face, in public/fonts/<family>/ | the link, into @font-face rules for those files |
a font file at fonts.gstatic.com/s/… or cdn.jsdelivr.net/fontsource/fonts/… in CSS | the file, in public/fonts/<family>/ | the url() |
a .json file at cdn.jsdelivr.net/npm/<package>@<version>/… in a script | the file, in public/data/<package>-<version>/ | the URL, which fetch then reads from the project |
Only those hosts and paths are read: https, no credentials, every redirect checked, a size limit on each file and a timeout. A reference to anything else is left as written, and doctor reports it. A font that cannot be downloaded is a warning, and the item keeps its original link. --keep-remote skips all of this. A font file already in public/fonts is kept as it is, so a font you replaced stays yours.
Licences
An item keeps the licence it ships with, which can differ from the repository's. The licence and notice files an item ships (font licences, shader notices) are installed beside it. Keep them with the project when you share it.
What draws
Kinetograph draws without a browser, so some items use features it does not draw yet. The sweep installs each block, and each component with a demo, into a temporary project, runs kinetograph doctor and renders a still at two frames:
- works: nothing unsupported;
- partial: it renders, and
doctorlists what is left out; - fails: an error.
Measured on an Apple M4 against registry commit 75fe18c, 448 items (210 blocks and 238 components):
| Items | |
|---|---|
| works | 254 |
| partial | 192 |
| fails | 2 |
Both fails stop in doctor. Most partial items (156 of 192) are components, whose demos are small pages built around one effect.
What doctor reports most often, by items affected:
- A font the page names but does not ship, such as
system-ui,monospaceorMenlo, so another one is drawn (29). - Three.js scenes (22). The sweep ran when
doctorlisted every page that loads Three.js as not drawn. It no longer does: Three.js runs through the WebGL stand-in and is not routinely tested. See WebGL. - A script that uses cube map textures (17).
- A gradient that interpolates in a colour space other than sRGB (16).
- A backdrop filter other than
blur()(5).
Storing the fonts and data an item loads from the web (above) took 16 items from partial to works. Before it, 21 items had a Google Fonts or CDN font file the render could not load.
The full list, with each item's warnings and render times, is status.json. Run it yourself with node scripts/hyperframes-registry/sweep.mjs.
A partial item
- Run
npx kinetograph doctor <project>to see what is left out and in which frames. - Look at the frame with
npx kinetograph still <project> <frame>. An effect that is missing may not matter for your use. - Use
render --strictto stop on the first frame that holds something unsupported. - Tell us which feature you need. The most common ones in the status list are what we draw next.