Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.
Docs: the npm prefix fix for nvm for Windows 2.0
StaryOne3dbfda6ca2c7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6635179..207bbf1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,7 +14,7 @@ Changes are listed by release, newest first. The sections dated before 0.1.0 rec- From an npm install, `motlab update` asks npm for the newest version and prints the commands that get it (`npm install -g @motlab/cli@latest`, then `motlab setup --update`), and `motlab uninstall` says to finish with `npm uninstall -g @motlab/cli`. A clone works as before.- The README installs with npm first; the clone and `install.js` are under "From a clone instead".-Tried on Windows 11: the packed tarball installed with `npm install -g --prefix` into a separate folder, with a separate home folder. `motlab setup --skill claude,agents`, `setup --update --dry-run`, `update`, `uninstall --yes`, and `motlab render` of a copy of the example at `--scale 0.5` (9 s, 3 scenes, in 11 s). After the publish, the same from the registry: `npm install -g @motlab/cli` into a separate folder (the same shasum as the packed tarball), `update` (up to date), `setup --dry-run` and the render. npm held the first publish for about a minute and a half as a staged release, showing a placeholder `0.0.0-stage`, before 0.2.0 became `latest`. A global install with nvm for Windows 2.0 (shim mode) put the command in `installs24.20.0`, which is not on PATH, so `motlab` still ran the clone's launcher; the docs send such machines to the clone. Over skills linked to a clone, `motlab setup` removed the links (the clone's files untouched) and copied the skills, and `node install.js --skills-only --link` linked them back. Not tried: macOS and Linux.+Tried on Windows 11: the packed tarball installed with `npm install -g --prefix` into a separate folder, with a separate home folder. `motlab setup --skill claude,agents`, `setup --update --dry-run`, `update`, `uninstall --yes`, and `motlab render` of a copy of the example at `--scale 0.5` (9 s, 3 scenes, in 11 s). After the publish, the same from the registry: `npm install -g @motlab/cli` into a separate folder (the same shasum as the packed tarball), `update` (up to date), `setup --dry-run` and the render. npm held the first publish for about a minute and a half as a staged release, showing a placeholder `0.0.0-stage`, before 0.2.0 became `latest`. A global install with nvm for Windows 2.0 (shim mode) put the command in `installs\v24.20.0`, which is not on PATH: nvm's `.shim` folder only holds the shims nvm ships with (codex among them, which is why that one works). With `npm_config_prefix` set to `%APPDATA%\npm`, which is on PATH, `motlab --help` and `update` ran from npm. The docs give `npm config set prefix "%APPDATA%\npm"` for nvm users, or the clone. Over skills linked to a clone, `motlab setup` removed the links (the clone's files untouched) and copied the skills, and `node install.js --skills-only --link` linked them back. Not tried: macOS and Linux.## 0.1.0 (2026-11-16)diff --git a/README.md b/README.mdindex 4c0eb6c..f977f0e 100644--- a/README.md+++ b/README.md@@ -74,7 +74,7 @@ cd motlabnode 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. Use it too when npm's global folder is not on PATH, as can happen with nvm for Windows.+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. Use it too when npm's global folder is not on PATH. With nvm for Windows 2.0 it is not, and `npm config set prefix "%APPDATA%\npm"` before the npm install fixes that instead ([details](docs/install.md#from-npm)).</details>diff --git a/ROADMAP.md b/ROADMAP.mdindex d42454f..571f29b 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -16,7 +16,7 @@ What is not built, what has not been tested, and ideas that came up while using## Not tested yet- The benchmark against Remotion and HyperFrames on macOS and Linux, with their own downloaded browsers, and on scenes heavy on text, images or footage. It was one scene on Windows, at 1080p and 4K.-- The npm package on macOS and Linux. On Windows it was installed from the registry, and with nvm for Windows 2.0 its command is not on PATH (docs/install.md).+- The npm package on macOS and Linux. On Windows it was installed from the registry, and with nvm for Windows 2.0 it needs npm's prefix moved to a folder on PATH (docs/install.md).- macOS, and Linux beyond the tests, including `motlab update` there. On Linux, CI renders the end-to-end tests on an Ubuntu runner; no real video has been made there. On macOS the Chrome paths and the Metal flag are in the code, but nothing has run.- Renders longer than 10 minutes, and a 10-minute render on a machine that is doing nothing else.- A machine without a GPU beyond the tests. CI runs the end-to-end tests on Linux and Windows runners without a GPU, and the benchmark ran with Chrome drawing on SwiftShader on the test laptop (1080p and 4K, in `docs/rendering.md`), but no real video has been rendered on such a machine, and no 3D (WebGL) scene.diff --git a/docs/install-for-agents.md b/docs/install-for-agents.mdindex 06fe9ea..8faa37e 100644--- a/docs/install-for-agents.md+++ b/docs/install-for-agents.md@@ -14,7 +14,7 @@ Node must be 24 or newer. If Node is missing or older, tell the user and give th## 2. npm or a clone-Ask which they want. npm is simpler for using motlab; a clone is for working on it, or for a machine where `npm prefix -g` is not on PATH (it can be missing with nvm for Windows).+Ask which they want. npm is simpler for using motlab; a clone is for working on it, or for a machine where `npm prefix -g` is not on PATH (with nvm for Windows 2.0 it is not; `npm config set prefix "%APPDATA%\npm"` fixes it, but it moves every global package, so ask first).With npm, pick the skill target as in step 3, then:diff --git a/docs/install.md b/docs/install.mdindex 04ec1e3..0b39bc4 100644--- a/docs/install.md+++ b/docs/install.md@@ -36,9 +36,15 @@ motlab setupnpm installs the engine and its one dependency and makes the `motlab` command. `motlab setup` copies both skills to an agent skill folder (Claude Code by default) and runs `motlab doctor`. It takes the skill options of the installer below: `--skill`, `--skill-dir`, `--link`, `--update`, `--force` and `--dry-run`, so `motlab setup --skill claude,agents` puts the skills in two places. The engine folder is inside npm's global folder; `motlab --help` prints it, and the example project is in it.-The command only works if npm's global folder is on PATH. `npm prefix -g` prints that folder (on Windows the command goes in it, elsewhere in its `bin`). With the Node installer from nodejs.org or Homebrew it is on PATH already. With nvm for Windows 2.0 in its default shim mode it is not: npm puts the command in the Node version's own folder, and nvm makes no shim for it, so `motlab` is not found. Use the clone below there, whose installer writes its own launcher.+The command only works if npm's global folder is on PATH. `npm prefix -g` prints that folder (on Windows the command goes in it, elsewhere in its `bin`). With the Node installer from nodejs.org or Homebrew it is on PATH already. With nvm for Windows 2.0 in its default shim mode it is not: npm puts the command in the Node version's own folder (`installs\v24.x`), and nvm's `.shim` folder only holds the shims nvm ships with (node, npm, npx, pnpm, corepack, codex), so `motlab` is not found. Point npm's global folder at one that is on PATH, once, before installing:-This was tested on Windows 11, from the registry and from a packed tarball, each installed into a separate npm folder: `setup`, `update`, `uninstall` and a render of the example. It was also installed globally with nvm for Windows 2.0, where the command was not on PATH (above). It has not been tried on macOS or Linux.+```bash+npm config set prefix "%APPDATA%\npm"+```++In PowerShell write `"$env:APPDATA\npm"`. `%APPDATA%\npm` is npm's usual global folder on Windows and is often on PATH from an earlier Node install; `where npm` lists it if so, otherwise add it to PATH. This changes where every global package goes, not only motlab, and the packages there are shared by all Node versions. `motlab update` keeps working, because its `npm install -g` follows the same setting. The clone below also works there, since its installer writes its own launcher.++This was tested on Windows 11, from the registry and from a packed tarball, each installed into a separate npm folder: `setup`, `update`, `uninstall` and a render of the example. It was also installed globally with nvm for Windows 2.0: into the nvm folder the command was not found, and with the prefix in `%APPDATA%\npm` it was (`--help` and `update`). It has not been tried on macOS or Linux.## With the installer@@ -97,7 +103,7 @@ node bin/motlab.js doctorThen either run `node /path/to/motlab/bin/motlab.js` directly, or make a launcher yourself. On Windows, `motlab.cmd` containing `@node "C:\path\to\motlab\bin\motlab.js" %*` in a folder on PATH. On macOS and Linux, a `motlab` file containing `exec node "/path/to/motlab/bin/motlab.js" "$@"`, marked executable.-`npm link` and `npm install -g .` also work where npm's global folder is on PATH, as `npm install -g @motlab/cli` does. They may not with nvm for Windows, which is why the installer writes its own launcher.+`npm link` and `npm install -g .` also work where npm's global folder is on PATH, as `npm install -g @motlab/cli` does. They do not with nvm for Windows 2.0 until npm's prefix is changed (above), which is why the installer writes its own launcher.To install the skills by hand, copy or link `skills/motlab/` and `skills/motlab-assets/` to your agent's skill folder (see the table above), side by side. Both call `motlab` and find the engine folder through `motlab --help`; `motlab-assets` also uses scripts from the motlab skill there.