guide
Installation
How to run the WorkLens CLI today — from a checkout, with Node.js 18 or newer and no build step — and what changes when it is published.
Last updated 2026-09-14 · Markdown
Summary
The CLI lives in packages/sdk-node and ships its engine as WebAssembly, so there is nothing to compile; it needs Node.js 18 or newer.
Node.js 18+
A checkoutno build step
worklens versionprints the engine version
How it works
- Check Node.js: node --version should print 18 or newer.
- From the repository root, run node packages/sdk-node/bin/worklens.js version. It prints the engine version and proves the WebAssembly loaded.
- Optionally run the smoke test: cd packages/sdk-node && npm run smoke.
- Run a recipe: node packages/sdk-node/bin/worklens.js bundle examples/homepage-demo.wl.json --seed 42 --out-dir my-run.
First run
node --version # 18 or newer
node packages/sdk-node/bin/worklens.js version # prints the engine versionNo install step beyond a checkout. The engine is a bundled .wasm file next to the script.
Not on npm yet
npx worklens will not find a package today. Use the path form above; this page changes the day it is published.
Common questions
Why is it not on npm?
Publication is pending. Everything here works from a checkout today, and the commands are identical once it is published — worklens in place of the path.
Windows, macOS, Linux?
All three: it is Node.js plus WebAssembly, with no native module. The website itself is developed on Windows.
Related
Generateworklens generate — recipe → data. Read from the CLI’s own header, with every option it accepts.ConfigurationEvery option the generate, prove and bundle commands accept, and what each one changes about a run. There is no config file.RuntimesWhich languages and runtimes exist today: Node.js, the browser via the studio, and the MCP server that wraps the same module.