Home
cd ../playbooks
Media ProductionIntermediate

HyperFrames: Make Videos With HTML and Claude Code

Have Claude build launch videos, explainers, captions, chart animations and social clips as HTML compositions, check them for layout and contrast problems, preview them in the browser and render deterministic MP4s locally

10 minutes
By HeyGenSource
#video#motion-graphics#html#gsap#captions#rendering#launch-video#hyperframes

Motion graphics usually mean After Effects, a timeline you edit by hand, and starting over for every revision. HyperFrames lets Claude write the video as HTML and GSAP, lint and snapshot it like code, and render the same MP4 every time, so "make the title bigger and the cut faster" becomes a two-line change instead of an afternoon.

Who it's for: developers making product and launch videos, marketers producing social clips, developer advocates making changelog and PR videos, YouTubers making faceless explainers, designers who prototype motion in code, teams automating video content

Example

"Make a 20-second launch video for our new dashboard from our website" → three storyline options to pick from, a captured copy of the site's real screens and brand colours, scenes built from registry blocks, a lint and contrast check, snapshot frames to review, a browser preview to approve, and a delivery-quality MP4

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add hyperframes-html-to-video
# HyperFrames: Write HTML, Render Video

Use this when someone wants a video, motion graphic, captions, overlays, a chart animation, a vertical social clip or a launch film made with HTML, CSS and JavaScript and rendered to MP4. Trigger phrases: "make a video", "render this to MP4", "add captions", "animate this chart", "product launch video", "HyperFrames".

Source: https://github.com/heygen-com/hyperframes (Apache 2.0, by HeyGen). HyperFrames renders HTML to video by seeking a paused timeline frame by frame, so every render is identical. The official skills add a 450-item block registry and detailed references; install them for the full set (see the playbook page). This template carries the contract and the work loop.

Requires Node.js 22+ and FFmpeg. Run the CLI as `npx hyperframes <command>`; every command has `--help`, and most take `--json`.

## Ground rules on cost, accounts and data

- **Local and free by default.** Rendering, previews, checks, local voiceover (`npx hyperframes tts`, Kokoro on the device), transcription (`npx hyperframes transcribe`), background removal and colour treatments all run on the user's machine.
- **Say when something costs money or needs an account,** before doing it: HeyGen sign-in, generated music, images, avatars or video, cloud voices, `cloud render`, AWS Lambda or Cloud Run renders. **Never start a sign-in, a paid generation or a cloud render unless the user asked for it.** If they set a credit limit, respect it.

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

HyperFrames is HeyGen's open-source framework (Apache 2.0) for turning HTML, CSS, JavaScript and media into MP4 videos. A video is a folder of HTML compositions with a paused animation timeline. HyperFrames steps through it frame by frame, so every render comes out identical and every change is a code edit.

With this playbook Claude can:

  • Build launch and product videos, explainers, vertical social clips, chart and map animations, kinetic type, captions and overlays on your footage
  • Capture a website to use its real screens, colours and fonts
  • Reuse about 450 ready-made blocks (transitions, lower thirds, caption styles, charts, camera moves) from the registry
  • Lint, check and snapshot the video before you see it, then hand you a browser preview to approve
  • Render locally to a draft or delivery-quality MP4

The template carries the render contract and the work loop, and keeps everything local and free unless you ask for a paid feature.


Quick Start

Step 1: Install the Requirements

You need Node.js 22+ and FFmpeg. On macOS: brew install node ffmpeg.

Step 2: Create a Project

npx hyperframes init my-video --skip-skills
cd my-video

Step 3: Download the Template

Click Download above and save it as CLAUDE.md in the my-video folder.

Step 4: Start Working

claude

Try: "Make a 10-second product intro with a fade-in title, a background video and subtle music."

Optional: Install the Official Skills

For the full references and the registry skill, install HyperFrames' own skills:

claude plugin marketplace add heygen-com/hyperframes
claude plugin install hyperframes@hyperframes

Or with npx skills add heygen-com/hyperframes and choose Core Skills in the picker.


Examples of What to Ask

  • "Make a 20-second launch video from https://our-site.com."
  • "Add word-by-word captions to interview.mp4."
  • "Animate this CSV as a bar chart race, 15 seconds, vertical."
  • "Turn this pull request into a 30-second changelog video with an animated code diff."
  • "Make the title bigger and the second cut faster." (in an existing project)
  • "Render the final version."

The Commands Claude Runs

Job Command
Start npx hyperframes init <dir>, capture <url>
Find a ready-made effect npx hyperframes catalog --query "...", then add <name>
Check npx hyperframes lint, check --json
Look at frames npx hyperframes snapshot --at 2,5,9
Preview npx hyperframes preview --background
Edit timing npx hyperframes timeline move ..., trim, split (with undo)
Render npx hyperframes render --quality draft or --quality delivery -o out.mp4

Tips & Best Practices

  • Pick a storyline first. For anything longer than about 15 seconds, Claude proposes three storylines in words before building. It's much cheaper to change direction there.
  • Approve the preview before rendering. Passing checks doesn't mean it looks right.
  • Search the registry before custom effects. An installed block is ordinary source you can restyle.
  • Use real material. Your real product screens and logo beat drawn stand-ins.
  • Keep copy and colours as variables so later changes, and batch renders of variants, stay simple.

Limitations

  • Rendering needs headless Chrome and FFmpeg, and long or 3D-heavy videos take time locally.
  • Generated media isn't free. Music, images, avatars and cloud voices from HeyGen need sign-in and, beyond the free allowance, credits on a paid plan. The HyperFrames Studio Pro plan is $25 a month.
  • It's a code workflow. For no-code editing, HeyGen offers the HyperFrames Studio desktop app, which edits the same projects.

Safety Notes

An automated security scan flagged several of the upstream skills as high risk (DO_NOT_INSTALL), and many files were only partially analysed (bundled fonts, minified libraries). Most findings are documentation of how the CLI looks for credentials. A few points matter when you use it:

  • Telemetry is on by default. The CLI sends usage counters, linked to your HeyGen account (email and username) once you sign in. The official skills also tell the agent to send a "usage note" when a skill starts and a feedback report after renders. Turn it all off with npx hyperframes telemetry disable or HYPERFRAMES_NO_TELEMETRY=1. This playbook's template tells Claude not to send those reports.
  • The CLI looks for credentials in several places. In order: an injected access token, your auth login session in ~/.hyperframes/credentials, HEYGEN_API_KEY or HYPERFRAMES_API_KEY in your shell, a saved key, and finally a key set in the project's .env file. Don't keep keys in a project you share.
  • Cloud rendering uses your cloud account. lambda render and cloudrun render use your own AWS or Google Cloud credentials and bill that account. Use them only on purpose.
  • The official media skill leans towards paid HeyGen services. It says to use local tools only when asked and not to mention prices. This playbook's template reverses that: local and free first, and costs stated before any paid call.
  • npx runs the latest published CLI. Pin a version you've checked (npx hyperframes@<version>) for repeatable or unattended renders.
  • Captured websites and other people's footage have owners. Capture your own sites, and check the rights to footage and music before you publish.

$Related Playbooks

Media Production

Motion Canvas: Code Explainer Animations Synced to Your Voiceover

Have Claude write Motion Canvas scenes in TypeScript (diagrams, code walkthroughs, algorithm and maths visualisations) with signals, flow helpers and named time events you drag to your narration in the editor

15 minutes
Advanced
Media Production

Panel Moderator Guide

Generate a complete moderator guide - sharp questions, minute-by-minute agenda, follow-ups, and audience prompts for any panel.

5 minutes
Intermediate
Media Production

Podcast Production Team

A coordinated five-role agent team — researcher, scriptwriter, show-note editor, distribution manager, and reviewer — that produces a full podcast episode's content in one pass, with the team size scaling to match the actual request.

10 minutes
Intermediate
Media Production

Podcast Production Assistant: Show Notes, Mastering and Distribution

A Claude Code workflow for podcast post-production: master audio to -16 LUFS, generate chapters and timestamped show notes from a transcript, draft promo posts, and run a distribution checklist for every episode.

10 minutes
Advanced
Media Production

Podcast Creator System

Full podcast production workflow from episode ideation and guest research to show notes, SEO optimization, and promotional content.

10 minutes
Intermediate
Media Production

Spotify Integration & Analytics

Automate Spotify music playback, playlist management, and audio analysis workflows

10 minutes
Advanced
Media Production

Social Media Clip Creator

Repurpose long-form video and audio into short-form clips with optimized captions, hooks, and hashtags for TikTok, Reels, and Shorts.

10 minutes
Beginner
Media Production

Video Explainer: One-Minute Animated Videos From Any Topic

Turn a topic, document, codebase or URL into a 60-second explainer video with kinetic graphics, hand-drawn or 3D visuals, real web media, voiceover, captions and a frame-by-frame review page

20 minutes
Intermediate
Media Production

Transcript Fixer

Correct speech-to-text errors with dictionary rules and AI analysis — fixing homophones, garbled technical terms, and mixed Chinese/English — while building a personalized correction database that learns from each fix.

10 minutes
Intermediate
Media Production

Video Comparer

Compare two videos to analyze compression results or quality differences — generate an interactive HTML report with PSNR/SSIM metrics and frame-by-frame visual comparisons.

10 minutes
Intermediate
Media Production

Audio Transcription Automation

Automate audio/video transcription, meeting notes, subtitle generation, and content processing

10 minutes
Advanced
Media Production

YouTube Channel Automation

Automate YouTube content workflows including video management, analytics, scheduling, and channel optimization

10 minutes
Advanced

Browse all Media Production playbooks →