by staryone
Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.
# Add to your Claude Code skills
git clone https://github.com/staryone/motlabLast scanned: 11/29/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-29T14:08:20.756Z",
"npmAuditRan": false,
"pipAuditRan": true,
"promptInjectionRan": true
}motlab is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by staryone. Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references. It has 550 GitHub stars.
Yes. motlab passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/staryone/motlab" and add it to your Claude Code skills directory (see the Installation section above).
motlab is primarily written in JavaScript. It is open-source under staryone on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh motlab against similar tools.
No comments yet. Be the first to share your thoughts!
A video engine where every scene is code, and an agent skill that writes the scenes for you.
npm install -g @motlab/cli && npx @motlab/cli setup
Demo · Install · Quick start · Speed · How it works · Docs · FAQ · Roadmap
Every scene is a canvas page with one function, renderAt(t), that draws the frame at time t. motlab plays the pages in a viewer where you step through them frame by frame, and renders them to MP4 in headless Chrome. Give your agent a folder of references (logos, screenshots, footage, fonts, music, voice) and a direction, and it builds every scene, opens the viewer and revises from your notes. No AI image or video model is involved.
The ad above (19 seconds, 7 scenes) was made with motlab and its skill, reviewed in the viewer and exported at 4K. The preview is silent; watch it with sound.
selection.json and works through them by number.track.py follows points, flat surfaces and the camera, Blender solves a moving camera for three.js, motlab matte finds an object in every frame so animation passes behind it, and comp.js matches the shot's light and grain.beats.py finds its beats and bars, and the viewer shows them on the timeline.motlab-assets builds asset kits as code (icons, illustrations, rigged 2D characters, transitions, 3D objects with PBR textures) so every video shares one look, and motlab-styles holds ready-made styles for when you ask for one.Two minutes in English, made with motlab too: the install, the brief to the agent, the build, playing it in the viewer, notes on frames, versions, the revision and the export.
https://github.com/user-attachments/assets/8f70bc60-5f56-4c4f-b55e-bf9f87ba1e34
motlab runs on Windows, macOS and Linux. You need Node 24 or newer, Google Chrome or Chromium, and ffmpeg with ffprobe on PATH. Python 3 runs the skills' helper scripts and Blender the asset skill's main 3D path; both are optional.
npm install -g @motlab/cli
npx @motlab/cli setup
npm installs the engine. Setup copies the three skills to your agent's skill folder, checks the machine and makes sure the motlab command works, adding it to ~/.local/bin where npm's folder is not on PATH (nvm for Windows). motlab doctor checks the machine again at any time.
Setup installs the skills for Claude Code unless you name another agent:
| Your agent | Setup command |
|---|---|
| Claude Code | npx @motlab/cli setup |
| Codex, Cursor, OpenCode, GitHub Copilot, Gemini CLI, Amp, Windsurf, Muse Code | npx @motlab/cli setup --skill agents |
| Antigravity (App and CLI) | npx @motlab/cli setup --skill antigravity |
| Hermes Agent | npx @motlab/cli setup --skill hermes |
| Several of them | npx @motlab/cli setup --skill claude,agents,antigravity |
| Any other agent | npx @motlab/cli setup --skill-dir <its skill folder> |
Running it again for another agent adds the skills there too. --dry-run shows every step first, and --link links the skills instead of copying them. Start a new agent session afterwards so it loads them.
git clone https://github.com/staryone/motlab.git
cd motlab
node install.js
The installer runs npm ci, puts a motlab command in ~/.local/bin and copies the skills. It takes the same options, plus --skill none for no skills.
npx skills add staryone/motlab -g
This installs only the three skills, for the agents it finds on your machine. The first time the motlab skill runs, it sees that the engine is missing and gives you the two commands to install it: npm install -g @motlab/cli and then npx @motlab/cli setup --skill none, so setup adds only the command. Setup and motlab uninstall leave skills that came from npx skills alone; update them with npx skills update -g. Without -g, npx skills puts the skills in the current project only.
Later, motlab update tells you when a new version is out and how to get it (from a clone it pulls it from GitHub itself), and motlab uninstall removes the skills and motlab's own files again.
Install guide and per-OS notes · Instructions for an agent doing the install
Run motlab new my-video for a copy of the sample project, then motlab edit my-video. The viewer starts in the background, opens the project and prints its address, http://127.0.0.1:4173/p/my-video/. Space plays, the arrow keys step one frame, and Ctrl+scroll zooms the timeline.
To make your own video, put your references in a folder and ask your agent, for example:
Make a 20 second portrait promo for my app with motlab. The references are in ./promo-refs.
The agent plans the shots, writes the scenes and opens the viewer. Click the frame you mean, drag a box over the part or circle it with the pencil (P), and type a note on it. Leave notes all over the video, then tell the agent "all the notes".
Press Export in the top right. The video goes to the project's out/ folder.
The viewer keeps running for every project until motlab stop, and its text follows your browser in English or Indonesian. motlab help lists every command. To render from the command line:
motlab render my-video --scale 1
The same scene (a moving gradient, 160 animated cards with numbers, text) at 1080p, 300 frames, rendered by three tools on one laptop (Ryzen 7 5800H, RTX 3060 Laptop, Windows 11) with the same Chrome:
| Tool | Render time | Frames per second | Compared with motlab |
|---|---|---|---|
| motlab | 9.5 s (--encoder sw), 12.6 s (default) |
31.5, 23.7 | |
| HyperFrames 0.9.52, fastest setting (1 worker) | 27.2 s | 11.0 | 2.2 to 2.9 times as long |
| Remotion 4.0.543, fastest setting (concurrency 1) | 30.7 s | 9.8 | 2.4 to 3.2 times as long |
Time is the whole command, the median of three runs. At 4K the same scene took motlab 13.1 to 19.4 s and the fastest of the other two 48.9 s.
Remotion and HyperFrames drew on the laptop's integrated Radeon. motlab on the same Radeon took 8.0 to 12.0 s at 1080p and 13.2 to 22.5 s at 4K.
The benchmark has the other settings, Chrome drawing in software, quality (SSIM) and file sizes, and bench/ runs it again on your machine.
project.json that lists scene pages and audio files.<canvas id="c">, window.renderAt(t), window.TOTAL and window.ready. Everything visible is a function of time, so the preview, the stills and the render draw the same frames.motlab start, or motlab edit to open a project in it) shows the real pages in iframes with their audio through WebAudio, saves your clicks and notes to selection.json, and loads a scene again when its file is saved.motlab render opens headless Chrome for each scene and transition, three at a time, and encodes the frames with VideoEncoder inside the page. ffmpeg only copies streams, joins the parts, sets the colour tags and adds the audio.project.json + scene pages (canvas, renderAt(t)) + audio files
|
+-- motlab edit viewer: the real pages in iframes, WebAudio audio, selection.json
+-- motlab render headless Chrome per part, 3 at a time -> VideoEncoder in the page -> MP4 parts
-> ffmpeg -c copy