Development
Setting up the repository to work on Werker's code, and its commands. To use Werker, read getting started.
Setting up
Requires Node 24.15+ and pnpm 12. The repository pins the pnpm version
in package.json.
pnpm install
pnpm dev pnpm dev starts Postgres in Docker. Add provider keys to a root .env (see .env.example) or through Admin → Connections.
Commands
pnpm dev # Postgres, migrations, dev seed, web (http://localhost:5230) and worker
pnpm dev:site # the public site (http://localhost:5232); needs no database
pnpm dev:seed # dev user [email protected] in workspace-a, connections for keys in .env, and the sandbox at WERKER_SANDBOX_HOST
pnpm db:reset # wipe the local database, then rebuild it (migrations and dev seed)
pnpm check # formatting, linting, package boundaries, Svelte, and TypeScript (changes nothing)
pnpm format # format the repository and apply lint fixes
pnpm test:unit # boundary checks, package, browser, and Node tests
pnpm test:postgres # database tests, on a throwaway Postgres container (needs Docker)
pnpm db:schema # regenerate packages/db/schema.sql from the migrations
pnpm eval:images # with a worker running: does planning pick a sandbox image that has what the work uses
pnpm build # production build of the web app and the public site
pnpm start # production: set up the database, then run the built web app and the worker Install Chromium before running browser tests for the first time:
pnpm --filter @werkerai/app exec playwright install chromium CI installs the browser and runs pnpm check, pnpm test, pnpm test:postgres, pnpm db:schema --check, pnpm build, pnpm docs:index and pnpm docs:lint.
Reading the docs
pnpx @wiki0/cli ui . from the root of the repository opens the
engineering docs and the site's docs in a browser.