@boozybats/genex
v0.4.1
Published
CLI for the Genex game-engine editor: create a project, sync scripts, and open the editor in your browser.
Downloads
72
Maintainers
Readme
@boozybats/genex
CLI for the Genex game-engine editor. Scaffolds a project folder, syncs your local TypeScript scripts to a shared server, and opens the editor in your browser.
Quick start
Start a new project:
npx @boozybats/genex create ./my-gameThat command:
- Creates a project on the hosted Genex server.
- Writes
gameDefinition.json,scripts/,engine-types.d.ts,tsconfig.jsonand a starter.claude/skills/reference dump into./my-game. - Opens the editor at
https://genex-pi.vercel.app/?projectId=.... - Watches the folder — every save in your IDE hot-reloads in the editor; every edit in the editor is mirrored back to disk.
Press Ctrl+C to stop watching.
Continue an existing project
Re-attach to a project you've already scaffolded:
npx @boozybats/genex edit ./my-gameThis requires ./my-game/.genex.json to already exist (created by the first
genex create). It re-attaches to the same server-side project, opens the
editor, and starts watching. Running genex create in the same folder also
re-attaches, so the two commands are interchangeable when the project already
exists — edit simply errors out cleanly if there's nothing to attach to.
Install globally (optional)
npm install -g @boozybats/genex
genex create ./my-gameSelf-hosting
If you run your own Genex server + editor, point the CLI at them:
genex create ./my-game \
--server https://my-server.example.com \
--editor https://my-editor.example.comOr via env vars:
export GENEX_SERVER=https://my-server.example.com
export GENEX_EDITOR=https://my-editor.example.com
genex create ./my-gameRequirements
- Node.js ≥ 18.17
- A modern browser
License
MIT
