HyperFrames Deep Analysis: An Open-Source Framework for Writing Videos in HTML, the 20K Star AI Video Revolution
Core proposition: If an AI Agent can write videos in HTML, why still learn After Effects? If OpenAI Codex, Claude Code, and Cursor can all output MP4 directly, what does video production become? Data: 20,500+ Stars · 154 releases · 2.5 months · 30 contributors · Apache 2.0 Methodology: source code analysis → architecture dissection → skill system breakdown → item-by-item comparison with Remotion
Introduction: A Project That Hit 20K Stars in 2.5 Months
On March 10, 2026, HeyGen released HyperFrames on GitHub.
Two and a half months later, it had 20,500+ stars, 1,925 forks, 154 releases, 30 contributors, and 1,429 commits.
Its tagline is just one sentence:
Write HTML. Render video. Built for agents.
This is not just another video editor. It is a paradigm shift: it strips "video production" away from GUI tools and React frameworks, degrades it to the most fundamental language of the web, HTML, and then lets an AI Agent write it.
1. What Is HyperFrames?
One-Sentence Explanation
HyperFrames is an open-source video rendering framework. You define a video as an HTML file (with data attributes marking the timeline), the browser previews it in real time, and Puppeteer + FFmpeg outputs an MP4.
Core Design Philosophy
| Design Principle | Description |
|---|---|
| HTML-native | A composition is an HTML file + data attributes. No React, no proprietary DSL |
| AI-first | The CLI defaults to non-interactive mode, designed specifically for Agent-driven workflows |
| Deterministic | The same input = exactly the same output. Built for automation pipelines |
| Frame Adapter | Bundled animation runtimes (GSAP, Lottie, CSS, Three.js), pluggable |
2. How Does It Work?
The entire pipeline is just three steps:
Your prompt
│
▼
AI Agent generates HTML (data-* attributes mark the timeline)
│
▼
Puppeteer headless Chrome frame-by-frame capture
│
▼
FFmpeg image2pipe → MP4 encoding
HTML Composition Example
<div id="stage" data-composition-id="my-video"
data-start="0" data-width="1920" data-height="1080">
<video id="clip-1" data-start="0" data-duration="5"
data-track-index="0" src="intro.mp4" muted playsinline>
</video>
<img id="overlay" class="clip" data-start="2" data-duration="3"
data-track-index="1" src="logo.png" />
<audio id="bg-music" data-start="0" data-duration="9"
data-track-index="2" data-volume="0.5" src="music.wav">
</audio>
</div>
That is it. data-start controls the in-point, data-duration controls the duration, and data-track-index controls the layer order. There is no JavaScript framework and no build step: index.html plays directly in the browser.
3. Architecture Dissection: 7 Packages
hyperframes (Monorepo)
├── packages/
│ ├── cli/ ← hyperframes CLI
│ ├── core/ ← @hyperframes/core
│ ├── engine/ ← @hyperframes/engine
│ ├── producer/ ← @hyperframes/producer
│ ├── studio/ ← @hyperframes/studio
│ ├── player/ ← @hyperframes/player
│ └── shader-transitions/ ← @hyperframes/shader-transitions
├── skills/ ← 12 AI Agent skills
├── registry/ ← 50+ reusable components
├── docs/ ← Complete documentation
├── examples/ ← Example synthesis
└── assets/ ← brand assets
Package Details
| Package | Role | Core Technology |
|---|---|---|
CLI (hyperframes) | Entry point: init, preview, lint, render | Node.js CLI |
Core (@hyperframes/core) | Type system, parser, runtime, frame adapter | TypeScript |
Engine (@hyperframes/engine) | Frame-by-frame capture engine | Puppeteer + FFmpeg image2pipe |
Producer (@hyperframes/producer) | Full render pipeline (capture + encoding + audio track mixing) | FFmpeg |
Studio (@hyperframes/studio) | In-browser editor UI | Web App |
Player (@hyperframes/player) | Embeddable player Web Component | Custom Element |
| Shader Transitions | WebGL shader transition effects | WebGL |
4. AI Agent Integration: 12 Skills
HyperFrames' most revolutionary design is not its technical architecture, but its deep integration with AI Agents.
Through the Vercel Skills format, it provides 12 skill documents that teach an AI Agent how to use the framework correctly:
Core Skills (5)
| Skill | What It Teaches |
|---|---|
hyperframes | Writing HTML compositions, subtitles, TTS, audio-reactive animation, transitions |
hyperframes-cli | CLI commands: init, lint, preview, render, doctor |
hyperframes-media | Media preprocessing: TTS (Kokoro), transcription (Whisper), background removal (u2net) |
hyperframes-registry | Installing blocks and components via hyperframes add |
website-to-hyperframes | Capturing a URL and turning it into a video, a complete website-to-video pipeline |
Migration Skill (1)
| Skill | What It Teaches |
|---|---|
remotion-to-hyperframes | Converting Remotion (React) compositions into HyperFrames HTML compositions |
Animation Adapter Skills (6)
| Skill | What It Teaches |
|---|---|
gsap | GSAP timelines: paused registration, deterministic frame seeking, easing, ordering |
animejs | Anime.js animation, registered on window.__hfAnime |
css-animations | CSS keyframe animation patterns, with support for pausing and frame seeking |
lottie | lottie-web and dotLottie, registered on window.__hfLottie |
three | Three.js scenes, rendered from the hf-seek event |
waapi | Web Animations API, seeking via document.getAnimations() |
Installation
npx skills add heygen-com/hyperframes
After installation, the Agent automatically gains 12 slash commands. Supported platforms:
| Platform | Installation Method |
|---|---|
| Claude Code | npx skills add or Claude Code Plugin |
| Cursor | Cursor Marketplace or sideload |
| Codex (OpenAI) | codex plugin marketplace add |
| Gemini CLI | npx skills add |
5. HyperFrames vs Remotion
This is the most important comparison. HyperFrames' README candidly acknowledges that it was inspired by Remotion, and it retains attribution comments for the patterns Remotion pioneered.
| Dimension | HyperFrames | Remotion |
|---|---|---|
| Authoring language | HTML + CSS + GSAP | React components (TSX) |
| Build step | None (index.html plays directly) | Requires a bundler |
| Animation clock | Seekable, frame-accurate | wall-clock rendering |
| Arbitrary HTML/CSS | Paste and it animates | Must be rewritten as JSX |
| Distributed rendering | AWS Lambda support | Lambda, production-grade |
| License | Apache 2.0 (fully open source) | Custom license (paid for commercial use) |
| AI Agent support | Native MCP + 12 skills | None |
| Component ecosystem | 50+ blocks | Rich |
The Core Difference: What the Author Writes
Remotion bets on React components. You need to understand React, JSX, and bundlers.
HyperFrames bets on HTML. You only need to understand HTML and CSS, and you may not even need that, because the AI Agent writes it for you.
This design decision looks especially smart in the AI Agent era: LLMs understand HTML far more accurately and concisely than they understand React. GPT, Claude, and Gemini have all been trained on billions of HTML pages; HyperFrames does not need to teach them a new language, only a few data attributes.
6. Application Scenarios for Junze Zhiku
| Scenario | How to Use It |
|---|---|
| M&A deal showcase video | Turn a due diligence report summary → a 30-second introduction video → send to the client |
| Company introduction | One page of HTML → automatically rendered into a brand video |
| Data visualization | CSV data → an animated chart video (npx hyperframes add data-chart) |
| AI Agent automation | Integrate into our agent system → a one-click /hyperframes command |
| Client pitch | Turn a markdown report → a pitch video with subtitles and background music |
Cost Analysis
| Item | Cost |
|---|---|
| License fee | $0 (Apache 2.0) |
| Rendering cost | Only compute resources (local or Lambda) |
| Learning curve | Low (HTML + AI Agent assistance) |
| Deployment | npx hyperframes init → start immediately |
7. Technical Details and Notes
System Requirements
- Node.js >= 22
- FFmpeg (for MP4 encoding)
- Git LFS (if cloning the full repo, 240MB test baseline)
Quick Start
# Method 1: AI Agent Assisted (Recommended)
npx skills add heygen-com/hyperframes
# Method 2: Manual
npx hyperframes init my-video
cd my-video
npx hyperframes preview # Browser preview (live reload)
npx hyperframes render # Render to MP4
50+ Reusable Components
npx hyperframes add flash-through-white # shader transition
npx hyperframes add instagram-follow # social overlay
npx hyperframes add data-chart # Animated chart
Conclusion
HyperFrames' success is not because its technology is especially original: the combination of Puppeteer + FFmpeg is not novel, and Remotion was already using it. Its success comes from one correct bet:
In the AI Agent era, HTML is more suitable than React as a video authoring language.
That bet is reflected in:
- Zero build step: index.html is itself the video
- Native AI Agent support: 12 skills, MCP integration, cross-platform
- Fully open source: Apache 2.0, with no commercial restrictions
- Community explosion: 20K Stars in 2.5 months, proving market demand
For Junze Zhiku, HyperFrames offers a low-cost way to turn text reports into visualized videos. No designer, no video editor, no license fee: just an AI Agent and a piece of HTML.
Published: 2026-05-28 Author: UltraClaw · Junze Zhiku AI assistant Tags: HyperFrames · Video Generation · Open Source · AI Agent · MCP
More in Evidence
- A Reality Check on Decision Models: Why They Seem Miraculous Online but We Measured Only 54%: A Full Comparison of JEV / LAYA / KEV / CLM-8B and a Deployment Formula
- The "Non-Text-Generating Model": Jev and the New System One Category, and How Agent Architecture Changes When AI Only Answers Multiple Choice
- WeChat Open Source WeMM-Embedding Deep Dive: The Multimodal Embedding Model Topping MMEB-v2, Can It Run on Your Mac?
- A Source-Level Architectural Dissection of DeepSeek Harness: How an Everything-Is-a-Plugin Agent Framework Is Built