mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
* fix(docs): load the player from latest, not a pinned minor The catalog pages pinned the player CDN URL to a minor line, and that pin sat one line behind after the last release. Every page kept rendering, on the older build, so nothing surfaced it: the only symptom was that a fix published to npm never appeared on the docs. The generator derived its pin from the player's package.json, which is correct only if every page is regenerated on the release that moves it. That is the step that did not happen, and it has to happen across 175 generated pages plus three hand-written files for the pin to be true. A version carried in step across 178 places will be stale, and stale here is silent. Ask for latest instead and there is nothing to carry. This costs the ability to hold the docs back from a bad player release. Paid deliberately: the pin did not buy that either, it only delayed the good releases too. A test asserts no pinned version comes back, and fails if it stops finding the references at all, so it cannot pass by matching nothing. * refactor(scripts): list tracked files instead of walking the tree The pin guard hand-rolled a recursive directory walk with its own skip list and size cap, which the audit flagged: helpers living in a test file earn no coverage, so their complexity lands straight on the CRAP score. git already knows which files to read, and ignores node_modules and build output for us, so one call replaces the walker and both findings go away.
73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
---
|
|
title: "Catalog"
|
|
description: "Browse reusable HyperFrames scenes, transitions, captions, overlays, effects, and components."
|
|
---
|
|
|
|
import { CatalogOverviewPlayer } from "/snippets/catalog-overview-player.jsx"
|
|
|
|
The Catalog gives you reusable visuals you can add to a project instead of building each one from scratch.
|
|
|
|
<CatalogOverviewPlayer title="A fast tour of every HyperFrames Catalog section">
|
|
|
|
```html catalog-overview-v3.html
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: #05070b;
|
|
}
|
|
hyperframes-player {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
<script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="module">
|
|
const item = await fetch("/public/catalog/blocks/ai-chat-reveal.json").then((response) =>
|
|
response.json(),
|
|
);
|
|
const player = document.createElement("hyperframes-player");
|
|
player.setAttribute("srcdoc", item.html);
|
|
player.setAttribute("controls", "");
|
|
player.setAttribute("autoplay", "");
|
|
player.setAttribute("muted", "");
|
|
player.setAttribute("loop", "");
|
|
document.body.appendChild(player);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
</CatalogOverviewPlayer>
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Blocks" icon="objects-column" href="/catalog/blocks/app-showcase">
|
|
Start with a larger scene or self-contained visual.
|
|
</Card>
|
|
<Card title="Components" icon="puzzle-piece" href="/catalog/components/caption-kinetic-slam">
|
|
Add a smaller effect or behavior inside an existing scene.
|
|
</Card>
|
|
</CardGroup>
|
|
|
|
## Use an item
|
|
|
|
1. Open an item and watch the motion preview.
|
|
2. Copy its plain-language request into your agent chat.
|
|
3. Replace the example content, then review it inside your complete video.
|
|
|
|
The tour covers Code Animations, Captions, HTML-in-Canvas, Social Overlays, Lower Thirds, Shader Transitions, CSS Transitions, Showcases, Data, Effects, and Blocks.
|
|
|
|
## Related topics
|
|
|
|
- [Add Catalog items in Studio](/studio/assets-and-blocks)
|
|
- [Build richer compositions](/go-further)
|
|
- [Contribute a Catalog item](/contributing/catalog)
|