The retro arcade take on platform engineering: planets are zones, rockets are
apps, and your hero levels up by actually shipping software. This is the Claude
Design prototype served verbatim, wired to the kontract by
static/kontract-bridge.js — the game code itself is untouched.
Launched from Konstruct's Kontracts registry, it plays against your real organization: claiming a planet creates a zone, registering an app creates a real KontractApp deployment, and your hero (XP, quests, gear) persists in your Character CR across browsers and themes. Opened standalone it falls back to the original localStorage prototype.
go run main.go
# open http://localhost:8080Register this repo as a kontract theme in the Kontracts settings page. The platform builds it with kpack, serves it behind the theme infrastructure, and opens it in the Konstruct shell with your session token.
All platform calls go through static/kontract.js, which reads the auth token
from the URL fragment (passed by the Konstruct launcher) and calls the
/api/v1/kontract/* endpoints. The bridge (static/kontract-bridge.js) maps
game actions to real API calls:
| Game action | API call |
|---|---|
| Claim planet | POST /kontract/zones/{org} |
| Register app | POST /kontract/app |
| Scale replicas | PATCH /kontract/app/{org}/{name} |
| Relaunch | POST /kontract/app/{org}/{name}/redeploy |
| Save hero | PUT /kontract/character/{org} |
| Poll app status | GET /kontract/apps/{org} (every 15s) |
| List org repos | GET /konstruct-application/{org} |