Docs / README

Kitty Desktop

Source: desktop/README.md

Kitty

Kitty Desktop

Electron app for opening a gamecomposer.yml project (one of the showcase templates or your own file) and managing its sandboxes through the Kitty SDK and the shared Python API.

Release downloads and the other install channels are in Get Kitty. The v0.2.0 desktop assets are coming with the tag; until then, run from source below.

Development setup

From the repository root:

uv venv && uv pip install -e .        # or: python3 -m venv .venv && .venv/bin/python -m pip install -e .
npm --prefix sdk ci && npm --prefix sdk run build
npm --prefix desktop ci
npm --prefix desktop start

The app finds its Python interpreter on its own, in this order: GAMECOMPOSER_PYTHON, the repository .venv, then python3 / python on PATH. It uses the first one that can import yaml, jsonschema and gamecomposer. If none can, the Project view shows one message with the exact install command and a Check again button.

What it does

  • Project: pick one of the 10 templates listed in templates/README.md, or Open file… for any manifest. The manifest is validated by the Python API and parsed by the SDK.
  • Sandboxes: one row per service in the manifest, with status pill, CPU/RAM, port or URL, health and last action. Up / Stop / Logs / Down per row or for all rows, and a detail panel with the config and a log tail. Status is Unknown until a real status result arrives, and up shows Starting until a status check confirms. The player URL opens in the system browser (loopback only).
  • Errors name the cause and the next step. For example, when Kiri is missing: "Install and start Kiri, make sure the kiri command is on PATH, then press Refresh status."

Multiple sandbox instances

Each project can have several independent instances. Use New instance to start another copy of the same manifest; each instance receives its own Kiri containers, save/user-data directories, and host port. Sandboxes are rebuilt from Kiri's labels when the app opens, so closing the app does not stop them. A row's Up, Stop, Logs, and Down actions target that row's service and instance; the toolbar actions target the displayed instances. The matching CLI commands are kitty --new up and kitty -i ID down; kitty ls --json lists all Kiri-managed instances. See ../docs/instances.md for the identity and listing contract.

Checks

npm --prefix desktop run check   # syntax check of every source and script
npm --prefix desktop test        # bridge, IPC handlers, interpreter discovery, templates, sandbox model, renderer

QA without touching containers

npx electron scripts/qa-launch.cjs (from desktop/) runs the real app, but refuses up, stop and down with the runtime's own "Kiri CLI is required" message. status and logs still reach Kiri, read-only. scripts/capture.cjs drives that app and writes screenshots. See docs/ux-review-164.md.

Brand assets live in assets/brand/.

Back to all docs