@xavatech/create-xara-game
v1.0.2
Published
Start a game for Xara chats: an empty page with the Xara game SDK and the coding-assistant skill.
Readme
@xavatech/create-xara-game
Starts a game for Xara chats: an empty page built with @xavatech/xara-game-sdk, and with the game skill installed, so a coding assistant can turn your description into the real game. Outside the app, a bar switches which player's phone the page is.
npx @xavatech/create-xara-game word-chain --name "Word Chain" --players 2-4
cd word-chain
npm run dev| Option | |
| --- | --- |
| --name | The game's name, as players see it. Defaults to the folder's name. |
| --description | One line about the game. |
| --players | 2, or a range like 2-4. Defaults to 2. |
| --xara-games <dir> | For Xara's own games. Creates the game inside that xara-games checkout instead of the current folder. |
Xara's own games
Name the folder xara-<game> and pass --xara-games:
npx @xavatech/create-xara-game xara-word-chain --name "Word Chain" --players 2-4 --xara-games path/to/xara-gamesRun it from any folder, including inside xara-games with --xara-games .. The game is created at games/word-chain in that checkout and registered there as a submodule whose remote is github.com/xavatech/xara-word-chain. Nothing is created in the folder you run it from. It is added to games.json and built into site/word-chain/. With the site served at GAMES_URL, run the backend's Game seeder to list it. Then create the GitHub repo and push.
Change the starter
template/ is copied as is, after these are replaced: __PATH__, __NAME__, __DESCRIPTION__, __PLAYERS__. template/gitignore becomes .gitignore, because npm leaves .gitignore files out of packages. template/.cursor/skills/build-xara-game/SKILL.md is a copy of the skill in xara-game-sdk. Keep them the same.
npm publish