Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.
AGENTS.md
Instructions for a coding agent working on this repository. If you are making a video for a user, you want the skill in skills/motlab/SKILL.md, and for assets skills/motlab-assets/SKILL.md, not this file.
Read first
- README.md: what motlab is
- docs/rendering.md: how a render works and the measured quirks that shaped it
- CONTRIBUTING.md: what a change must include
Rules
- Keep it small. Build the smallest thing that works. No new dependency, cache, validator or abstraction unless a real video needs it or the maintainer asks for it.
- Docs move with the change, in the same commit: the doc in
docs/that owns the behaviour, the README if its claims change,SKILL.mdif the agent uses it, andCHANGELOG.md. Grep for the old claim before committing. - Numbers carry their measurement: what was rendered, at what size, on what machine.
- Say what was not tested, and keep ROADMAP.md honest.
- Do not break the page contract or
project.jsonfor existing projects without saying so in the changelog. - Do not commit generated output (
out/, renders,selection.json,selection/) or files from a user's project. - The viewer follows DESIGN.md. Its UI text is in Indonesian and English: a new string goes into
TEXTinsrc/editor.htmlin both.
Checks before you finish
npm test
motlab doctor
For viewer changes, start motlab edit example, check the change in a browser and read the console. For renderer changes, time motlab render example --scale 1 before and after.
Installing motlab for a user
Follow docs/install-for-agents.md. Its step 6 puts the viewer on the user's VPS behind a domain and a password, when they ask for that.