Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.
Release 0.1.0: changelog, roadmap and the CI badge
StaryOnec154fecedafc
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 38cc8ad..2b4f681 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,11 +1,14 @@# Changelog-There are no releases yet. Changes are listed by date, newest first.+Changes are listed by release, newest first. The sections dated before 0.1.0 record what was built on the way to the first release.-## Unreleased+## 0.1.0 (2026-11-16)++The first release.### Added+- CI on GitHub Actions (`.github/workflows/ci.yml`): `motlab doctor` and `npm test`, the end-to-end renders among them, on `ubuntu-latest` and `windows-latest` with Node 24, the runner's Google Chrome and ffmpeg (8.0.1 from Ubuntu, 9.0.2 from Chocolatey). The runners have no GPU, so Chrome draws in software there. All 30 tests pass on both.- The viewer runs as a background server. `motlab start` starts it on 4173 (the next free port up to 4190 when something else has 4173) and returns, `motlab stop` ends it (asking it to exit, so a running export closes its Chrome), and `motlab restart` starts it again from the folder it ran in. `motlab edit <project>` now opens the project in the running viewer and ends, starting the viewer first when none runs, instead of staying in the terminal until Ctrl+C; `motlab start --foreground` is the old way. The server's output goes to `~/.motlab/viewer.log`. A stop request from another site's page gets a 403, like the viewer's other writes. Tried on Windows: start in 0.5 s, a second start says it is running, edit, restart from another folder (the menu kept the first folder), stop, edit with no viewer running, and a viewer on 4174 while another server held 4173.- `motlab uninstall` removes the launchers that run motlab, the two skill folders in every agent folder from `~/.motlab/install.json` (or the agent folders the installer knows), `~/.motlab` and the encoder timings, after listing them and asking. `--yes` skips the question, `--dry-run` only lists, and without a terminal it needs `--yes`. A linked skill is removed as a link. The clone is left. A test runs it in a made-up home folder; a junction made like `--link` does was also removed without touching its target.- `THIRD_PARTY_NOTICES.md`: the MIT licence of gl-transitions, whose shaders are copied into `src/page/transitions.js` (the MIT licence asks for its text to go with copies), and the licences of what motlab installs or loads from a CDN.@@ -67,6 +70,8 @@ There are no releases yet. Changes are listed by date, newest first.### Fixed+- Renders made while Chrome draws in software (SwiftShader, or a machine without a GPU) had shifted colours: Chrome writes such frames as full range YUV, and every file was tagged limited range, so `#30E2A8` decoded as (41, 243, 179) instead of (48, 226, 168). The range now comes from the encoder's `decoderConfig`, and ffmpeg writes it into the container and the bitstream. On a GPU nothing changes. Found by the first CI runs, reproduced and checked on the test laptop with SwiftShader. motlab's SSIM in the benchmark without a GPU went from 0.980 to 0.982 and 0.983 at 1080p, and from 0.988 to 0.991 and 0.992 at 4K.+- Scene transitions failed with "scene transitions need WebGL2" on a Linux machine without a GPU. Chrome now gets `--enable-unsafe-swiftshader`, so WebGL falls back to software there; with a GPU it changes nothing.- Two viewer tabs on one project lost notes. Each tab saved its whole list, so a note made in one tab was dropped when the other saved, and both gave their new note the same number, the second overwriting the first one's picture. A save now names the notes the tab deleted, the server keeps the rest (`mergeNotes` in `src/editor.js`, tested in `test/notes.test.js`) and moves a new note to the next free number when its number was taken, and the page takes in the file's notes after every save and on focus. Notes get an `id`; notes from before ids are matched by number. Tried with two tabs in a windowed Chrome: notes 1 and 2 from the two tabs, each listed in both after a focus change, and a delete in one tab that the other did not undo. A running viewer keeps the old code until it is started again.- A project whose scenes had different canvas sizes rendered without a word and made an MP4 that changed resolution partway through (1920x1080, then 1280x720, then 1920x1080 in the test). `motlab render` and Export now stop with an error that names the scene and both sizes. `test/render.test.js` checks it.- The render put mono audio files 3 dB lower than the viewer plays them. ffmpeg's up-mix to stereo lowers a mono channel by 3 dB on each side, while WebAudio copies it to both at full level. Mono files now go to both channels at full level in the render too. On the example project (all three files are mono) the viewer, recorded off its audio graph, and the render now differ by 0.02 dB instead of 3.0 dB. Renders of existing projects with mono files get 3 dB louder. `test/render.test.js` checks the level.diff --git a/README.md b/README.mdindex 2fa24be..e8a8c83 100644--- a/README.md+++ b/README.md@@ -12,6 +12,7 @@ A video engine where every scene is code, and an agent skill that writes the sce[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)+[](https://github.com/staryone/motlab/actions/workflows/ci.yml)[](LICENSE)[](package.json)@@ -165,7 +166,7 @@ Footage is decoded inside the page with Mediabunny, so a scene can cut and trim<br>-> The Chrome paths and the Metal flag are in the code, but no render has run there yet. Everything so far was built and measured on one Windows laptop.+> Not tested properly yet. CI runs the tests, the end-to-end renders among them, on an Ubuntu runner, but no real video has been made on Linux, and nothing has run on macOS (the Chrome paths and the Metal flag are in the code). Everything else was built and measured on one Windows laptop.</details>diff --git a/ROADMAP.md b/ROADMAP.mdindex d8e7179..8635ed1 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -10,16 +10,15 @@ What is not built, what has not been tested, and ideas that came up while using- The viewer on a VPS with a domain. That needs security in front of it, or access only through Tailscale, which is also worth considering. From there, work could be run remotely on the personal laptop (when it is on) or on the VPS (when there is one).- Custom GLSL transitions from a file in the project. A transition as a layer over the cut (a swish of shapes) already exists as the asset skill's `transition.js`, but each of the two scene pages has to draw its half by hand; `project.json` has no option for it.- A cut list that splits one recording over several scenes by section, with captions placed from a transcript. `cuts.js` has the time map (`toOut`), but each section page still picks its part of the list by hand.-- Continuous integration. The end-to-end test needs Chrome, ffmpeg and ideally a GPU.- Moving or resizing a note's box after it is drawn. Today the note has to be deleted and drawn again.- Clearing done notes in one go. They fold under Done, but `selection.json` keeps every one until it is deleted by hand.## 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.-- macOS and Linux, including `motlab update` there. The Chrome paths and the Metal flag are in the code, but no render has run there.+- 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. The benchmark ran with Chrome drawing on SwiftShader on the test laptop (1080p and 4K, in `docs/rendering.md`), but not on a machine that has no GPU, such as a cloud server, and not with a 3D (WebGL) scene.+- 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.- Footage filmed on a phone (variable frame rate and HEVC were tested with files made by ffmpeg), and HEVC on a Chrome that cannot decode it.- Scene transitions between scenes of different sizes in the viewer, and in a normal Chrome window. The render refuses scenes of different sizes.- The cut voice from `cut_pauses.py` on a real person's take. The whole-take test used Windows text to speech.diff --git a/docs/install.md b/docs/install.mdindex e59f054..c889a71 100644--- a/docs/install.md+++ b/docs/install.md@@ -138,5 +138,5 @@ WindowsmacOS and Linux-- The code has the macOS and Linux Chrome paths and uses ANGLE on Metal on macOS, but neither system has been tested yet. Reports are welcome.+- The code has the macOS and Linux Chrome paths and uses ANGLE on Metal on macOS. On Linux, CI runs the tests and their end-to-end renders on an Ubuntu runner with Google Chrome and the distribution's ffmpeg; no real video and no install with `install.js` have been tried there, and macOS has not been tested at all. Reports are welcome.- A machine without a GPU should still render through Chrome's software drawing and software H.264 encoder, only slower. On the Windows test laptop with Chrome drawing on SwiftShader, the benchmark scene took 2.8 times as long at 1080p and 4.5 times at 4K ([rendering](rendering.md#without-a-gpu)). A machine with no GPU at all has not been tested.