Git Analytics AI & MLAI & ML
heygen-com/hyperframes

HyperFrames — AI Video Editor แบบ Open-Source: เขียน HTML แล้วได้ MP4HyperFrames — Open-Source AI Video Editor: Write HTML, Render MP4

AI & MLAI & ML 88,855 ดาวStars 8,286 TypeScript Apache-2.0 อัปเดตล่าสุดLast push 24 พ.ย. 256924 Nov 2026
heygen-com/hyperframes

HyperFrames เป็น framework open-source จาก HeyGen สำหรับสร้างและตัดต่อวิดีโอด้วย AI agent โดยใช้ HTML/CSS/JS + animation เป็น input แล้ว render ออกมาเป็นไฟล์ MP4 ใช้ได้ทั้งผ่าน Studio app, CLI, หรือสั่งผ่าน AI coding agent อย่าง Claude Code และ Codex

HyperFrames is an open-source framework by HeyGen for creating and editing videos with AI agents. It takes HTML/CSS/JS with seekable animations as input and renders deterministic MP4 output, usable via a Studio desktop app, CLI, or AI coding agents like Claude Code and Codex.

ไว้ทำอะไร

ปัญหาหลักที่ HyperFrames แก้คือการทำให้การสร้างวิดีโอเป็นเรื่องของ code แทนที่จะต้องพึ่ง GUI editor แบบเดิม เมื่อวิดีโอถูกแทนด้วย HTML/CSS/JS ก็หมายความว่า AI agent สามารถสร้าง แก้ไข และ iterate วิดีโอได้โดยตรง ไม่ต้องลากวาง ผู้ใช้สามารถอธิบายวิดีโอที่ต้องการเป็นภาษาธรรมชาติ หรือนำ footage ของตัวเองมาตัดต่อ แล้วให้ agent แก้เฉพาะจุดได้ เช่น เปลี่ยนหัวข้อ เร่งจังหวะตัด หรือเพิ่ม caption โดยไม่ต้อง render ใหม่ทั้งหมด เหมาะสำหรับทำ content video สำหรับ social media, product launch, explainer, podcast edit และ motion graphics

ทำงานอย่างไร

HyperFrames ทำงานเป็น pipeline ที่แปลง HTML/CSS/JavaScript พร้อม animation (ใช้ GSAP เป็นหลัก) ไปเป็นไฟล์ MP4 โดยตรง โดย core engine จะรับ composition ที่เขียนเป็น HTML ธรรมดา (ไม่ต้องใช้ React) แล้วใช้ Puppeteer ในการ capture แต่ละ frame จากเบราว์เซอร์ จากนั้นส่งต่อให้ FFmpeg เข้ารหัสเป็นวิดีโอ กระบวนการนี้เป็น deterministic คือ input เดียวกันจะได้ output เหมือนกันทุกครั้ง

สถาปัตยกรรมเป็น monorepo ที่แบ่งเป็น packages หลายตัว โดยมี @hyperframes/core เป็นแกนกลางที่จัดการ composition และ runtime, @hyperframes/engine ทำหน้าที่ render, @hyperframes/producer จัดการ pipeline การผลิตวิดีโอ, @hyperframes/player เป็นตัว preview, และ @hyperframes/studio เป็น desktop app ที่ให้ผู้ใช้ทั่วไปใช้งานผ่าน GUI ระบบ build มีลำดับชัดเจน โดย parsers และ core ต้อง build ก่อน แล้วค่อยต่อด้วย engine, producer และ packages อื่น ๆ

ในฝั่ง AI agent มีระบบ skills ที่อยู่ใน .agents/skills/ และ .claude/skills/ ซึ่งเป็นชุดคำสั่งที่สอน agent ให้รู้วิธีสร้างและแก้ไขวิดีโอ HyperFrames ได้ถูกต้อง รองรับ Claude Code, OpenAI Codex, Cursor และ Gemini CLI โดยติดตั้ง skill ผ่านคำสั่ง npx skills add นอกจากนี้ยังมี MCP integration สำหรับใช้กับ Claude, ChatGPT หรือ Grok ในรูปแบบ chat ได้โดยตรง

สำหรับ deployment รองรับทั้ง AWS Lambda และ GCP Cloud Run มี package เฉพาะสำหรับแต่ละ platform พร้อม Dockerfile และ SDK สำหรับ integrate เข้ากับระบบอื่น

โครงสร้างโค้ด

  • packages/core — แกนกลางจัดการ composition, runtime และ build hyperframes-runtime
  • packages/engine — render engine ที่แปลง composition เป็น frames
  • packages/producer — pipeline การผลิตวิดีโอ รวม classification และ integration test
  • packages/player — preview player สำหรับดูผลลัพธ์ก่อน render
  • packages/studio — Studio desktop app (GUI) สำหรับผู้ใช้ทั่วไป
  • packages/studio-server — backend server สำหรับ Studio app
  • packages/cli — command-line interface สำหรับ render วิดีโอ
  • packages/sdk — SDK สำหรับ integrate HyperFrames เข้ากับระบบอื่น
  • packages/parsers — parser สำหรับแปลง input formats
  • packages/shader-transitions — transition effects แบบ shader
  • packages/aws-lambda — deployment package สำหรับ AWS Lambda
  • packages/gcp-cloud-run — deployment package สำหรับ GCP Cloud Run พร้อม Dockerfile
  • .agents/skills/ — ชุด skill สำหรับสอน AI agent (เช่น captions-overlay)
  • .claude/skills/ — skill เฉพาะสำหรับ Claude Code
  • docs/ — เอกสาร: guides, concepts, SDK reference, catalog และ examples

เริ่มใช้งาน

# วิธีที่ 1: ติดตั้ง skill สำหรับ AI coding agent (Claude Code, Codex, Cursor)
npx skills add heygen-com/hyperframes

# วิธีที่ 2: ดาวน์โหลด Studio app (ฟรี)
# https://hyperframes.studio/studio/download

# วิธีที่ 3: ใช้กับ Claude/ChatGPT ผ่าน MCP connector
# เชื่อมต่อ HyperFrames by HeyGen จาก connector directory

# สำหรับ developer ที่ต้องการ run จาก source
git clone https://github.com/heygen-com/hyperframes.git
cd hyperframes
bun install
bun run dev        # เปิด Studio dev server
bun run build      # build ทุก packages
bun run test       # run unit tests

เหมาะกับงานแบบไหน

  • สร้าง UGC video สำหรับ TikTok/Instagram จาก footage ที่ถ่ายเอง พร้อม caption, เพลง และ text hook
  • ตัดต่อ podcast แบบ multi-camera ตัดสลับมุมกล้องตามคนพูด พร้อม caption อัตโนมัติ
  • สร้าง product demo หรือ launch video จาก URL เว็บไซต์หรือ screen recording
  • ทำ explainer video แบบ faceless สำหรับ YouTube จาก script หรือ voiceover
  • Remake วิดีโอที่ชอบให้เป็นแบบของตัวเอง แก้ไข style และ content ได้
  • สร้าง motion graphics และ 3D typography สำหรับงาน branding
  • ใช้ AI agent สร้างและ iterate วิดีโอผ่าน code โดยไม่ต้องเปิด video editor
  • Deploy video rendering pipeline บน AWS Lambda หรือ GCP Cloud Run สำหรับ scale production

ข้อควรรู้

  • ต้องใช้ Node.js >= 22 และ Bun เป็น package manager ซึ่งอาจยังไม่คุ้นเคยสำหรับบางคน
  • License เป็น Apache-2.0 ใช้งานเชิงพาณิชย์ได้ แต่ต้องระบุ attribution
  • Studio app มี free plan แต่ฟีเจอร์ AI model ระดับสูง (HeyGen Video, Seedance, Lyria) ต้องใช้ Pro plan ราคา $25/เดือน
  • การ render วิดีโอต้องใช้ Puppeteer (headless Chrome) และ FFmpeg ซึ่งใช้ resource เครื่องสูง
  • MCP integration กับ ChatGPT ยังอยู่ใน beta และจำกัดเฉพาะ Business/Enterprise/Edu workspace
  • เป็น monorepo ขนาดใหญ่ที่มี packages จำนวนมาก การ contribute หรือ customize อาจต้องเข้าใจ build order และ workspace structure

What it is for

HyperFrames solves the problem of making video creation code-native rather than GUI-dependent. By representing videos as HTML/CSS/JS with seekable animations, AI agents can directly create, modify, and iterate on videos without drag-and-drop interfaces. Users can describe videos in natural language or bring their own footage, then have the agent change specific elements — a title, a cut pace, or captions — without re-rendering the entire project. It targets social media content, product launches, explainers, podcast edits, and motion graphics.

How it works

HyperFrames operates as a pipeline that converts HTML/CSS/JavaScript with seekable animations (primarily GSAP) into deterministic MP4 files. The core engine takes plain HTML compositions (no React required), uses Puppeteer to capture each frame from a headless browser, then passes frames to FFmpeg for video encoding. The same input always produces the same output.

The architecture is a Bun-based monorepo split into packages with a clear build dependency chain: @hyperframes/core handles composition and runtime, @hyperframes/engine manages rendering, @hyperframes/producer orchestrates the video production pipeline, @hyperframes/player provides preview, and @hyperframes/studio is the desktop GUI app. Parsers and core build first, followed by engine, producer, and downstream packages.

For AI agent integration, the repository includes a skills system in .agents/skills/ and .claude/skills/ — instruction sets that teach agents how to correctly create and edit HyperFrames videos. It supports Claude Code, OpenAI Codex, Cursor, and Gemini CLI via `npx skills add`, plus MCP integration for direct use in Claude, ChatGPT, or Grok chat interfaces.

Deployment is supported on AWS Lambda and GCP Cloud Run with dedicated packages, Dockerfiles, and an SDK for external integration.

Code structure

  • packages/core — central composition engine, runtime, and hyperframes-runtime builds
  • packages/engine — rendering engine that converts compositions to frames
  • packages/producer — video production pipeline with classification and integration tests
  • packages/player — preview player for viewing results before final render
  • packages/studio — Studio desktop app (GUI) for end users
  • packages/studio-server — backend server for the Studio app
  • packages/cli — command-line interface for rendering videos
  • packages/sdk — SDK for integrating HyperFrames into other systems
  • packages/parsers — input format parsers
  • packages/shader-transitions — shader-based transition effects
  • packages/aws-lambda — AWS Lambda deployment package
  • packages/gcp-cloud-run — GCP Cloud Run deployment package with Dockerfile
  • .agents/skills/ — AI agent skill definitions (e.g., captions-overlay)
  • .claude/skills/ — Claude Code-specific skills
  • docs/ — documentation: guides, concepts, SDK reference, catalog, and examples

Getting started

# วิธีที่ 1: ติดตั้ง skill สำหรับ AI coding agent (Claude Code, Codex, Cursor)
npx skills add heygen-com/hyperframes

# วิธีที่ 2: ดาวน์โหลด Studio app (ฟรี)
# https://hyperframes.studio/studio/download

# วิธีที่ 3: ใช้กับ Claude/ChatGPT ผ่าน MCP connector
# เชื่อมต่อ HyperFrames by HeyGen จาก connector directory

# สำหรับ developer ที่ต้องการ run จาก source
git clone https://github.com/heygen-com/hyperframes.git
cd hyperframes
bun install
bun run dev        # เปิด Studio dev server
bun run build      # build ทุก packages
bun run test       # run unit tests

Good fit for

  • Create UGC videos for TikTok/Instagram from your own footage with captions, music, and text hooks
  • Edit multi-camera podcast recordings with automatic speaker-based cuts and captions
  • Generate product demos or launch videos from a website URL or screen recording
  • Build faceless YouTube explainer videos from a script or voiceover
  • Remake videos you like into your own version, modifying style and content
  • Create motion graphics and 3D kinetic typography for branding
  • Use AI agents to create and iterate on videos through code without opening a video editor
  • Deploy video rendering pipelines on AWS Lambda or GCP Cloud Run for production scale

Things to know

  • Requires Node.js >= 22 and Bun as package manager, which may be unfamiliar to some developers
  • Apache-2.0 licensed — commercial use is allowed but attribution is required
  • Studio app has a free plan, but premium AI models (HeyGen Video, Seedance, Lyria) require the Pro plan at $25/month
  • Video rendering requires Puppeteer (headless Chrome) and FFmpeg, which are resource-intensive
  • MCP integration with ChatGPT is still in beta and limited to Business/Enterprise/Edu workspaces
  • Large monorepo with many packages — contributing or customizing requires understanding the build order and workspace structure

บทวิเคราะห์นี้สร้างจาก README และโค้ดของ repo โดย AI ของ Oneable — ตรวจสอบ license และเอกสารต้นทางก่อนนำไปใช้งานจริงThis breakdown was generated from the repository's README and code by Oneable's AI — check the license and upstream docs before using it in production.

#agent-skills#ai#ai-agents#ai-video#ai-video-editor#animation#claude-code#ffmpeg#gsap#html#html-to-video#mcp

repo อื่นในหมวดเดียวกันMore in this category

ไปที่เพจ FacebookOpen Facebook page">