MIT License1080×1920 · 30 fps · -14 LUFSTests CI status

Raw footage in.
Ready-to-post Reels out.

An open-source, AI-agent-ready vertical video pipeline for TikTok, Instagram Reels, and YouTube Shorts. Combines HyperFrames, FFmpeg, Whisper / Groq & OpenCV YuNet — no React boilerplate, no rigid templates.

Clone https://github.com/dvlprlat/ReelCraft.git, run npm run doctor, and help me edit my vertical video.
Universal Agent Contract (AGENTS.md)
  • Claude Code
  • Claude Cowork
  • Antigravity
  • Codex
  • OpenCode
One Unified Engine

Built for both Talking-Head and Faceless creators

Drop your source footage or voiceover into input/<slug>/, optionally paste 1–2 TikTok or Reel URLs as a style reference, and direct your agent in plain language.

MODE 01 · ON-CAMERA

Talking-Head Mode

Turn raw horizontal or vertical camera takes (raw.mp4 / raw.mov) into tight, dynamic vertical videos without awkward jump cuts.

  • Audio-first forensic cutting in < -38 dB silence valleys
  • Mandatory direct ear-listening gate via ≤ 40s MP3 chunks
  • OpenCV YuNet eye-line tracking & HIGH_TELEPORT detection
  • Automatic multicam scale alternation (1.05× ↔ 1.14×) + J-cut cards
MODE 02 · VOICEOVER

Faceless Mode

Transform any narration (voice.wav / voice.mp3 / voice.m4a) into deterministic HTML/CSS/GSAP motion graphics rendered to MP4.

  • Voice cleanup & broadcast loudness normalization (-14 LUFS)
  • Full-screen HyperFrames compositions (no React/TS boilerplate)
  • Weaves in your B-roll, logos, screenshots, and ducked music
  • 4 bundled OFL fonts + 19 rotated royalty-free Pixabay SFX
Deterministic Production Pipeline

Five audited phases from raw file to final MP4

Every stage has an automated verification gate — no silent failures, no clipped words, and no platform UI overlap.

  1. 01

    Reference Style Analysis

    Downloads any TikTok, Instagram Reel, or YouTube Short via yt-dlp and builds a 1 fps contact sheet so your agent extracts real palette, typography, and pacing into style-brief.md.

    node scripts/fetch-reference.mjs "<url>" --out=work/demo/ref
  2. 02

    Audio-First Forensic Cut & Mandatory Ear Gate

    Word-level timestamps via Groq Whisper or local whisper.cpp flag spans ≥ 1.2s for hidden retakes. Cuts cleanly and exports ≤ 40s MP3 chunks so the agent listens before composing.

    node scripts/transcribe.mjs input/demo/raw.mp4 --out=work/demo/raw --lang=auto
  3. 03

    Visual Splice Audit (OpenCV YuNet)

    Measures exact eye coordinates before and after every physical splice, flagging posture shifts and feeding eye-line centering data directly into HyperFrames.

    .venv-vision/bin/python scripts/analyze-cuts.py work/demo/clean.mp4 work/demo/splices.json work/demo/face_audit.json
  4. 04

    HyperFrames Composition & Safe-Zone Check

    Builds grammatical kinetic captions, overlays, and rotated SFX inside the universal TikTok/Reels/Shorts safe zone, validated with zero lint or layout warnings.

    npx hyperframes check work/demo/hyperframes --json
  5. 05

    Render & Forensic Verification

    Renders deterministic 1080×1920 30 fps MP4 and verifies 0 black frames, integrated loudness near -14 LUFS, dynamic contact sheet, and final ear-check audio.

    node scripts/verify-render.mjs out/demo.mp4 --out=work/demo/audit
Zero Hardware Lock-In

Run locally or switch to free cloud in 2 minutes

Run npm run doctor once — ReelCraft inspects your RAM, FFmpeg, and tools, and automatically recommends local mode or a free cloud fallback.

ModeBest ForRequirementsCost
Local FullFast laptops & workstationsNode 22+, FFmpeg 6+, 8 GB+ RAM, optional Python OpenCVFree (MIT)
Hybrid + Groq APILow-RAM machines (< 8 GB)Free GROQ_API_KEY — whisper-large-v3-turbo in ~2s, 0 local RAMFree tier
Google Colab T4 GPUZero local installationBrowser + bundled cloud/reelcraft_colab.ipynbFree T4 GPU
GitHub CodespacesCloud IDE with preinstalled toolsPreconfigured .devcontainer/devcontainer.jsonFree monthly quota
Edge Machine-Readable Documentation

Designed to be discovered and operated by AI agents

Served directly at the edge with Accept: text/markdown negotiation — send any coding agent to this URL or the repository to bootstrap immediately.

Frequently Asked Questions

Everything you need to know before cloning

Do I need a GPU or high-end computer to use ReelCraft?

No. With a free Groq API key, transcription runs in ~2 seconds using zero local RAM. If you prefer zero local setup, open cloud/reelcraft_colab.ipynb on Google Colab's free T4 GPU or launch the included GitHub Codespaces devcontainer.

How is ReelCraft different from Remotion or CapCut?

Unlike Remotion, ReelCraft uses HyperFrames (plain HTML, CSS, and GSAP — no React or TypeScript build boilerplate). Unlike CapCut, it is 100% open-source (MIT), local-first, reproducible, and built around an AGENTS.md workflow for AI coding agents.

Does it work in Spanish and other languages?

Yes. Transcription runs on Whisper large-v3-turbo with automatic language detection (--lang=auto), supporting Spanish, English, and 90+ languages. Your agent also communicates in your language automatically.

Are the bundled fonts, SFX, and vision model safe for commercial videos?

Yes. All 4 bundled fonts use the SIL Open Font License (OFL), all 19 SFX tracks use the Pixabay Content License, OpenCV YuNet is MIT-licensed, and ReelCraft itself is MIT-licensed.