Skip to content

Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.

Name the npm package @motlab/cli, in the motlab organization

StaryOneb9f0104238de
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a3b94c7..0007366 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,12 +6,12 @@ Changes are listed by release, newest first. The sections dated before 0.1.0 rec
### Added
-- motlab is on npm as `@staryone/motlab`, since the name `motlab` was taken there by an unrelated package. `npm install -g @staryone/motlab` installs the engine and the command. The package holds the engine, the skills, the example project and the docs (90 files, 943 kB packed); `bench/`, `test/` and the README images stay in the repository.
+- motlab is on npm as `@motlab/cli`, in the npm organization `motlab`, since the name `motlab` alone was taken there by an unrelated package. The command is still `motlab`. `npm install -g @motlab/cli` installs the engine and the command. The package holds the engine, the skills, the example project and the docs (90 files, 943 kB packed); `bench/`, `test/` and the README images stay in the repository.
- `motlab setup` copies the skills to agent folders after an npm install. It runs `install.js --skills-only`, so it takes the installer's skill options (`--skill`, `--skill-dir`, `--link`, `--update`, `--force`, `--dry-run`) and ends with `motlab doctor`.
### Changed
-- From an npm install, `motlab update` asks npm for the newest version and prints the commands that get it (`npm install -g @staryone/motlab@latest`, then `motlab setup --update`), and `motlab uninstall` says to finish with `npm uninstall -g @staryone/motlab`. A clone works as before.
+- 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). Not tried: an install from the npm registry, macOS and Linux, and nvm for Windows as the global folder.
diff --git a/README.md b/README.md
index d523aeb..4c0eb6c 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
A video engine where every scene is code, and an agent skill that writes the scenes for you.
-<code>npm install -g @staryone/motlab && motlab setup</code>
+<code>npm install -g @motlab/cli && motlab setup</code>
[Demo](#watch-the-demo) · [Install](#install) · [Quick start](#quick-start) · [Speed](#speed) · [How it works](#how-it-works) · [Docs](#documentation) · [FAQ](#faq) · [Roadmap](ROADMAP.md)
@@ -45,7 +45,7 @@ https://github.com/user-attachments/assets/522d1db2-a0bd-43bd-84b7-9f071f224854
You need Node 24 or newer, Google Chrome or Chromium, and ffmpeg with ffprobe on PATH. Python 3 is optional and only used by the skills' helper scripts. Blender is optional too, for the asset skill's main 3D path.
```bash
-npm install -g @staryone/motlab
+npm install -g @motlab/cli
motlab setup
```
diff --git a/docs/install-for-agents.md b/docs/install-for-agents.md
index 0299d08..06fe9ea 100644
--- a/docs/install-for-agents.md
+++ b/docs/install-for-agents.md
@@ -19,12 +19,12 @@ Ask which they want. npm is simpler for using motlab; a clone is for working on
With npm, pick the skill target as in step 3, then:
```bash
-npm install -g @staryone/motlab
+npm install -g @motlab/cli
motlab setup --skill <target> --dry-run
motlab setup --skill <target>
```
-`motlab setup` takes the same skill options as the installer and runs `motlab doctor` at the end. If `motlab` is not found after the npm install, show the user `npm prefix -g` and ask before changing their PATH. To update later, `motlab update` prints the two commands (`npm install -g @staryone/motlab@latest`, then `motlab setup --update`). Then skip to step 4.
+`motlab setup` takes the same skill options as the installer and runs `motlab doctor` at the end. If `motlab` is not found after the npm install, show the user `npm prefix -g` and ask before changing their PATH. To update later, `motlab update` prints the two commands (`npm install -g @motlab/cli@latest`, then `motlab setup --update`). Then skip to step 4.
## Get the repository
diff --git a/docs/install.md b/docs/install.md
index 45d9d94..53ed8bb 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -30,7 +30,7 @@ python -m pip install -r skills/motlab/requirements.txt
## From npm
```bash
-npm install -g @staryone/motlab
+npm install -g @motlab/cli
motlab setup
```
@@ -97,7 +97,7 @@ node bin/motlab.js doctor
Then 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 @staryone/motlab` 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 may not with nvm for Windows, 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.
@@ -110,7 +110,7 @@ motlab update
From npm, `motlab update` asks npm for the newest version. If there is one, it prints the two commands that get it:
```bash
-npm install -g @staryone/motlab@latest
+npm install -g @motlab/cli@latest
motlab setup --update
```
@@ -141,7 +141,7 @@ With `--link`, the skills update with `git pull` alone, but run the installer an
motlab uninstall
```
-It stops the viewer and removes the launcher (`~/.local/bin/motlab`, and `motlab.cmd` on Windows), the two skill folders in every agent folder they were installed in, `~/.motlab/` (where the installer put things, the viewer's recent projects and its log) and the encoder timings (`%LOCALAPPDATA%\motlab` on Windows, `~/.cache/motlab` elsewhere; with `MOTLAB_CACHE_DIR` only the timings file). It lists everything and asks first; `--yes` skips the question and `--dry-run` only lists. A skill installed with `--link` is removed as a link, and what it points to stays. It leaves the clone, because it runs from there: delete that folder afterwards. From npm there is no launcher to remove, and `npm uninstall -g @staryone/motlab` removes the engine and the command afterwards.
+It stops the viewer and removes the launcher (`~/.local/bin/motlab`, and `motlab.cmd` on Windows), the two skill folders in every agent folder they were installed in, `~/.motlab/` (where the installer put things, the viewer's recent projects and its log) and the encoder timings (`%LOCALAPPDATA%\motlab` on Windows, `~/.cache/motlab` elsewhere; with `MOTLAB_CACHE_DIR` only the timings file). It lists everything and asks first; `--yes` skips the question and `--dry-run` only lists. A skill installed with `--link` is removed as a link, and what it points to stays. It leaves the clone, because it runs from there: delete that folder afterwards. From npm there is no launcher to remove, and `npm uninstall -g @motlab/cli` removes the engine and the command afterwards.
## Check the machine
diff --git a/install.js b/install.js
index e9f92e6..934fec2 100644
--- a/install.js
+++ b/install.js
@@ -10,7 +10,7 @@
// node install.js --dry-run print what would happen and change nothing
// node install.js --update the skills again where they went last time (what `motlab update` runs)
// node install.js --skills-only only the skills: no npm ci and no launcher (what `motlab setup` runs after
-// `npm install -g @staryone/motlab`, where npm made the command)
+// `npm install -g @motlab/cli`, where npm made the command)
//
// Where the skills, the launcher and --link went is kept in ~/.motlab/install.json for --update. It never installs
// Chrome, ffmpeg or Python; it says how to get them.
diff --git a/package-lock.json b/package-lock.json
index f4342fc..cd72991 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "@staryone/motlab",
+ "name": "@motlab/cli",
"version": "0.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "@staryone/motlab",
+ "name": "@motlab/cli",
"version": "0.2.0",
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 9189454..79ebce9 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "@staryone/motlab",
+ "name": "@motlab/cli",
"version": "0.2.0",
"description": "Video as code: canvas scene pages rendered frame by frame in headless Chrome with WebCodecs, a project format with audio, a web viewer, and an agent skill that builds the scenes.",
"license": "MIT",
diff --git a/skills/motlab/SKILL.md b/skills/motlab/SKILL.md
index 1ed0f99..6d02a64 100644
--- a/skills/motlab/SKILL.md
+++ b/skills/motlab/SKILL.md
@@ -27,7 +27,7 @@ your own work) and `motlab events` are fine. Render only if the user asks for it
`motlab` is a command on PATH. Run `motlab --help` once at the start: it lists the commands and prints the engine
folder (its README, the `example/` project and `src/page/footage.js`).
-If `motlab` is not found, ask the user how they installed it. From npm (`npm install -g @staryone/motlab`), npm's
+If `motlab` is not found, ask the user how they installed it. From npm (`npm install -g @motlab/cli`), npm's
global folder (`npm prefix -g`) is probably not on PATH; show them that and ask before changing PATH. From a clone (the
folder with `install.js` and `bin/motlab.js`), run `node install.js --skill none` there; it puts the command on PATH.
If they have neither, follow `docs/install-for-agents.md` from https://github.com/staryone/motlab. Until the command is on PATH, call