Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

staryone/motlab

Media & Design

Code-defined video engine that renders canvas scenes to MP4 in headless Chrome, with a review viewer and agent skills.

161
21
JavaScript
MIT
1 day old

What it does

motlab treats video as code: each scene is a plain HTML page with a canvas and a renderAt(t) function that draws the frame at time t. A web viewer plays the real scene pages, with audio and a frame-steppable timeline, and motlab render opens headless Chrome and encodes frames with WebCodecs, then uses ffmpeg to join parts and add audio. No AI image or video model is involved.

Review happens inside the viewer: click a frame, drag a box, or mark a time range and type a note. Notes are saved to selection.json so an agent can pick them up and revise by number. Export produces 720p/1080p/1440p/4K MP4, and project versions sit side by side without overwriting each other.

The project ships agent skills: motlab writes scenes from a reference folder and a brief, while motlab-assets builds reusable asset kits (icons, illustrations, rigged 2D characters, transitions, 3D objects and textures).

Quick start

Install Node.js 24+, Google Chrome or Chromium, and ffmpeg with ffprobe on PATH. Python 3 and Blender are optional, for the skills' helper scripts and the 3D asset path.

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

Setup installs the skills for Claude Code by default; use --skill agents for Codex, Cursor, OpenCode, GitHub Copilot, Gemini CLI, Amp and Windsurf, --skill antigravity for Antigravity, or --skill-dir <folder> for other agents. Start a new agent session afterward.

To open the sample project, run motlab edit example in a folder that holds it, then visit http://127.0.0.1:4173/p/example/. Space plays, arrow keys step one frame, Ctrl+scroll zooms the timeline, and dragging on the preview marks a box. For a real video, put references in a folder and give the agent a brief such as:

Make a 20 second portrait promo for my app with motlab. The references are in ./promo-refs.

The agent builds the scenes and opens the viewer; leave notes, then press Export to write the MP4 to the project's out/ folder. Command-line rendering also works:

motlab render example --scale 1

Constraints

  • Windows is the only properly tested platform. CI runs tests and end-to-end renders on Ubuntu, but no real video has been made on Linux, and macOS is untested.
  • A GPU speeds up rendering; software drawing in Chrome was much slower on the test laptop, and machines with no GPU at all are untested.
  • The engine and viewer can be used without an agent if you write scene pages by hand, but the generated-video workflow depends on an installed agent skill.
  • The project is alpha: two real videos have been produced end to end, and the roadmap lists open items. Alpha output is not built.
  • Licensed MIT; fonts, footage, music and other files you bring in keep their own licences.

HotRepo's take

motlab entered HotRepo's new-project list on 2026-11-17 with 101 stars gained in about 13.5 hours, plus 10 forks. It has no all-language daily rank on record and only a single star sample, so there is no basis to describe a longer trend. What stands out is the architecture rather than the momentum: encoding inside the browser page instead of screenshotting every frame. The maintainer's benchmark reports 9.5–12.6 s versus 27.2 s for HyperFrames and 30.7 s for Remotion on one 1080p scene on a single Windows laptop, and only that scene was measured. Readers should treat that as one-machine evidence, not a general speed claim.

Project source and documentation

Written by AI from the project's README, updated . The project's own docs are the source of truth.

You might also like

  1. Moh4696/cinematic-skillAn agent skill that turns a coding agent into a narrated documentary filmmaker, drawing every frame with Python and Skia.Python111
  2. win4r/video-directorA Claude skill that guides coding agents through planning, building and QA-checking code-rendered short videos.Python274
  3. remotion-dev/remotionBuild and batch-render videos from React components instead of timeline editors, for teams that need programmatic video at scale.TypeScript66,996
  4. 0xS4N4TG/kinetographRender programmatic video from TypeScript/Remotion projects through an agent-friendly CLI, studio and MCP server.TypeScript263
  5. sarpstar/cinecodeA Claude Code or Cursor skill that turns a one-line idea into a code-rendered MP4 film with designed audio.Python1,176