@bordiko/cli
v0.1.2
Published
Bordiko game dev CLI: create a game, play it locally (sandbox), compile to WebAssembly (no Docker), and publish to the marketplace.
Downloads
373
Readme
@bordiko/cli
Build and ship Bordiko board games from your own repo — no monorepo, no services, no Docker.
npm create @bordiko/game my-game # scaffold a game project
cd my-game && npm installThen, from your project:
| Command | What it does |
|---|---|
| bordiko dev | Local sandbox in the browser: play every seat, fill seats with bots (step / auto-play), hot-reload on save, preview a custom ui.html, and inspect the redacted per-seat state, legal moves, and move log. |
| bordiko build | Compile your game to a sandboxed WebAssembly module (dist/<id>.wasm). Auto-downloads the Javy compiler on first run — no Docker. |
| bordiko publish | Publish to the registry. Needs REGISTRY + ADMIN_TOKEN (or --registry / --token). |
| bordiko create <name> | Scaffold a new game project. |
The scaffold wires these to npm scripts, so npm run dev, npm run build, and
npm run publish:game work out of the box.
How a game is built
bordiko build bundles your game + @bordiko/sdk (the guest boundary) with esbuild,
then compiles that to WASI with Javy — the same pipeline the platform uses, so the
output is byte-identical to what the registry validates and the game host runs.
Requires Node 22.6+. Full docs: https://bordiko.com/developers
