R_REDDYX.XYZ
VideoJavaScript★ 209⑂ 27 forksMIT

staryone/motlab

VIDEO ENGINE AS CODE WITH AGENT SKILLS

Engine for creating video from code: scenes draw on Canvas via renderAt(t), agent assembles video from references, viewer enables frame-by-frame review and MP4 export via WebCodecs in headless Chrome.

// KEY FEATURES

  • Scenes are Canvas code with renderAt(t) function for each frame
  • Agent writes scenes from references (logos, footage, fonts, music, voice)
  • Viewer with timeline: frame-by-frame review, notes on frames and ranges
  • Export 720p–4K MP4 via WebCodecs in headless Chrome, 2–4× faster than alternatives

// DEEP DIVE: HOW IT WORKS

motlab treats video as code: each scene is an HTML page with a Canvas renderAt(t) function. The agent skill takes a folder of references (logos, footage, fonts, audio) and a brief, then writes all scenes. The viewer provides a timeline, zoom, and frame stepping; revisions come from clicking a frame, selecting an area, or marking a time range — notes go to selection.json, and the agent processes them in order. Versions sit side by side without overwriting.

Rendering uses WebCodecs inside headless Chrome: frames never leave the browser, yielding 2–4× speedup over Remotion and HyperFrames. Export supports 720p–4K with transitions and mixed audio. The motlab-assets skill builds reusable asset kits: icons, 2D rigs, 3D with PBR as PNG/SVG/GLB/FBX/OBJ. Skills install for Claude Code, Codex, Cursor, OpenCode, Copilot, Gemini CLI, Amp, Windsurf, Muse, Antigravity, Hermes.

Requires Node 24+, Chrome/Chromium, ffmpeg with ffprobe on PATH. Python 3 and Blender are optional. Global npm install places motlab in ~/.local/bin. Runs on any OS with Chrome and Node 24.

// USE CASES

Best for: For developers and teams creating motion graphics and video as code with AI agents

  • Create a 19-second promo with 7 scenes by giving the agent logos, footage, and music
  • Build a branded asset library (icons, 2D characters, transitions) for consistent video style
  • Run iterative video review: mark frame revisions, get new version alongside the old one

// QUICK START

npm install -g @motlab/cli
npx @motlab/cli setup

Commands are taken from the repository README — check the current version on GitHub before running.

#agent-skills#canvas#claude-code#headless-chrome#motion-graphics#video#webcodecs
Open on GitHub →

New repositories every 30 minutes

REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.

Join on Telegram
← Full catalog·Full index

// SIMILAR REPOSITORIES

OPEN-SOURCE AI VIDEO EDITOR FOR CLAUDE CODE★ 609OPEN-SOURCE IPTV PLAYER FOR ANDROID TV★ 79051 VIDEO EFFECTS FOR CLAUDE CODE★ 9696700+ PROMPTS FOR SEEDANCE 2.0★ 2236UNIFIED FRAMEWORK FOR ACCELERATED VIDEO GENERATION★ 4831AUTOMATIC VIDEO TRANSLATION WITH DUBBING★ 19764

← FULL CATALOG

staryone/motlab — Video Engine AS Code With Agent Skills