MCPcopy
hub / github.com/heygen-com/hyperframes

github.com/heygen-com/hyperframes @v0.7.26 sqlite

repository ↗ · DeepWiki ↗ · release v0.7.26 ↗
9,955 symbols 31,143 edges 1,581 files 703 documented · 7%
README
<img alt="HyperFrames" src="https://github.com/heygen-com/hyperframes/raw/v0.7.26/docs/logo/light.svg" width="300">

npm version npm downloads License Node.js Discord

Write HTML. Render video. Built for agents.

Quickstart | Showcase | Playground | Catalog | Docs | Discord

HyperFrames demo: HTML code on the left transforms into a rendered video on the right

HyperFrames is an open-source framework for turning HTML, CSS, media, and seekable animations into deterministic MP4 videos. Use it locally with the CLI, from AI coding agents with skills, or as the rendering core behind hosted authoring workflows.

Quick Start

With an AI coding agent

Install the HyperFrames skills, then describe the video you want:

npx skills add heygen-com/hyperframes

Try a prompt like:

Using /hyperframes, create a 10-second product intro with a fade-in title, a background video, and subtle background music.

The skills teach agents the HyperFrames production loop: plan the video, write valid HTML, wire seekable animations, add media, lint, preview, and render. They work with Claude Code, Cursor, Gemini CLI, Codex, and other coding agents that support skills.

Skills

HyperFrames ships 20 skills agents load on demand. Read /hyperframes first — it's the router and capability map; it picks a workflow for any "make me a video" request and points to the domain skills below.

Run npx skills add heygen-com/hyperframes for the interactive picker, npx skills add heygen-com/hyperframes --all to install all 20 at once (skips the picker), or npx skills add heygen-com/hyperframes --skill <name> for just one (bare name, no leading /).

Router

Skill Use when
/hyperframes Read first for any request to make / create / edit / animate / render a video, animation, or motion graphic. Capability map for the domain skills and intent router for the creation workflows below.

Creation workflows

Skill Use when
/product-launch-video Marketing / launching / promoting a product — from its URL, a brief, or a script (even if the site is only named). Up to ~3 min (sweet spot 30-90s).
/website-to-video Turning a general website into a video — site tour, portfolio / landing-page showcase, social clip from the site's own visuals.
/faceless-explainer Explaining a topic / concept from arbitrary text — no product, no URL, no website capture; every visual is LLM-invented (typography / abstract / diagram / data-viz).
/pr-to-video A GitHub pull request (PR URL, owner/repo#N ref, or "this PR") → changelog / feature-reveal / fix / refactor explainer, read via the gh CLI.
/embedded-captions Adding captions / subtitles to an existing talking-head video (footage untouched) — verbatim rail, embedded climax behind the subject, or pure-cinematic embed.
/talking-head-recut Packaging an existing talking-head / interview / podcast video with designed graphic overlays — lower-thirds, data callouts, kinetic titles, pull-quotes, side panels, PiP.
/motion-graphics A short, unnarrated, design-led motion graphic (~under 10s) — kinetic type, stat / chart hit, logo sting, lower-third, animated tweet / headline. MP4 or transparent overlay.
/music-to-video A music track (audio file, or video to pull audio from) → a beat-synced video — lyric, slideshow, or kinetic promo; music drives pacing.
/slideshow A presentation / pitch deck / interactive deck — discrete slides, fragment reveals, branching, hotspot navigation, presenter mode. Output is a navigable deck, not a rendered video.
/general-video Anything else — longer or multi-scene pieces, brand / sizzle reel, title card, static loop, freeform composition. Input- and length-agnostic fallback.
/remotion-to-hyperframes Porting an existing Remotion (React) composition's source to HyperFrames HTML. One-way migration, not creation.

Domain skills (loaded on demand)

Atomic capabilities the creation workflows compose against — pull one when you need that specific layer.

Skill Covers
/hyperframes-core The composition contract — data-* timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, determinism rules.
/hyperframes-animation All animation knowledge — atomic motion rules, scene blueprints, transitions, runtime adapters (GSAP / Lottie / Three.js / Anime.js / CSS / WAAPI / TypeGPU).
/hyperframes-keyframes Seek-safe keyframe authoring across runtimes — GSAP timelines, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, 3D depth — plus hyperframes keyframes diagnostics for rendered motion.
/hyperframes-creative Non-animation creative direction — frame.md / design.md, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns.
/hyperframes-media Audio + media — TTS voiceover, background music, sound effects, Whisper transcription, background removal, caption authoring (one shared audio engine).
/media-use Resolve any media need (BGM, SFX, image, icon) into a frozen local file + ledger record. One verb (resolve) over the HeyGen catalog with manifest tracking.
/hyperframes-cli CLI dev loop — init, lint, validate, inspect, preview, render, publish, doctor, plus AWS Lambda cloud rendering (lambda deploy / render / progress).
/hyperframes-registry Install and wire registry blocks and components into compositions via hyperframes add. Authoring a new block or component to contribute upstream.

For visual design handoff workflows, see the Claude Design guide and Open Design guide.

Manually with the CLI

npx hyperframes init my-video
cd my-video
npx hyperframes preview      # preview in browser with live reload
npx hyperframes render       # render to MP4

Requirements: Node.js 22+, FFmpeg

What You Can Build

Need ideas? Browse the Showcase for finished videos you can watch, read, run, and remix.

  • Product launch videos and feature announcements
  • PR walkthroughs with animated code diffs, narration, and captions
  • Data visualizations, chart races, and map animations
  • Social videos with kinetic captions, overlays, and music
  • Docs-to-video, PDF-to-video, and website-to-video explainers
  • Reusable motion graphics for automated content pipelines

Frame.md

frame.md — your design system, ready for video.

Every brand has a design.md. None of them were written for a camera. frame.md is the missing translation layer: it takes your web-context design spec and inverts it for the frame — the same tokens, the same rules, but rewritten so an AI agent can compose a promo video without guessing at scale or reaching for web chrome.

The output is a DESIGN.md superset your whole toolchain can read. Atoms stay sacred. Composition stays free. Numbers come from the script.

Biennale Yellow Biennale Yellow BlockFrame BlockFrame
Blue Professional Blue Professional Bold Poster Bold Poster
Broadside Broadside Capsule Capsule
Cartesian Cartesian Cobalt Grid Cobalt Grid
Coral Coral Creative Mode Creative Mode

Browse and remix them all at hyperframes.dev/design.

How It Works

Define a

Extension points exported contracts — how you extend this code

PersistAdapter (Interface)
(no doc) [6 implementers]
packages/sdk/src/adapters/types.ts
FileLike (Interface)
* Narrow surface of the `@google-cloud/storage` `File` this module uses — * lets the test double implement just `exists [1 …
packages/gcp-cloud-run/src/sdk/deploySite.ts
SparticuzChromiumModule (Interface)
* Dynamic import wrapper isolated so unit tests can stub the module without * jest-style module mocking gymnastics. The
packages/aws-lambda/src/chromium.ts
StudioMotionAttrPayload (Interface)
The JSON stored in the attribute omits kind/target/updatedAt — those are derived from context.
packages/studio/src/components/editor/studioMotionOps.ts
AddLabelDef (Interface)
A source-ordered addLabel(name, position) definition.
packages/parsers/src/gsapParserAcorn.ts
InternalFontFetchOptions (Interface)
Internal threading of the failClosed flag + fetch override through callers.
packages/producer/src/services/deterministicFonts.ts
RegistryItemBase (Interface)
Fields common to every registry item, regardless of type.
packages/core/src/registry/types.ts
ResolvedStoryboardFrame (Interface)
A frame enriched with disk-resolution info the Studio needs to render tiles.
packages/studio-server/src/routes/storyboard.ts

Core symbols most depended-on inside this repo

setAttribute
called by 1087
packages/sdk/src/types.ts
getAttribute
called by 872
packages/sdk/src/adapters/iframe.test.ts
find
called by 751
packages/sdk/src/types.ts
get
called by 633
packages/studio/src/utils/editHistoryStorage.ts
error
called by 513
packages/producer/src/logger.ts
from
called by 472
packages/producer/stubs/hf-early-stub.ts
now
called by 422
packages/core/src/runtime/clock.ts
set
called by 336
packages/producer/stubs/hf-early-stub.ts

Shape

Function 7,816
Interface 1,185
Method 788
Class 166

Languages

TypeScript99%
Python1%

Modules by API surface

skills/music-to-video/references/motion-primitives/assets/gsap.min.js164 symbols
packages/sdk-playground/src/main.ts123 symbols
packages/parsers/src/gsapParser.ts123 symbols
packages/parsers/src/gsapWriterAcorn.ts114 symbols
packages/shader-transitions/src/hyper-shader.ts91 symbols
packages/player/src/slideshow/hyperframes-slideshow.ts83 symbols
skills/embedded-captions/scripts/make-theme.cjs78 symbols
packages/parsers/src/types.ts77 symbols
packages/parsers/src/gsapParserAcorn.ts76 symbols
packages/core/src/runtime/init.ts72 symbols
packages/cli/src/commands/keyframes.ts66 symbols
packages/sdk/src/types.ts60 symbols

Dependencies from manifests, versioned

@aws-sdk/client-s33.700.0 · 1×
@aws-sdk/client-sfn3.700.0 · 1×
@babel/parser7.27.0 · 1×
@chenglou/pretext0.0.5 · 1×
@clack/prompts1.1.0 · 1×
@codemirror/autocomplete6.20.1 · 1×
@codemirror/commands6.10.3 · 1×
@codemirror/lang-css6.3.1 · 1×
@codemirror/lang-html6.4.9 · 1×
@codemirror/lang-javascript6.2.2 · 1×
@codemirror/lang-markdown6.3.4 · 1×

For agents

$ claude mcp add hyperframes \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact