Docs / REGISTRY
Registry, library and sandbox creation
Source: docs/REGISTRY.md
Public registry (separate repo)
Templates, consoles, games and controllers live in their own repository,
EnzoVezzaro/game-composer-registry,
which is managed and released separately from this app. Everything is listed in one index.json, with one
kind field per entry. Its README documents the entry format, and its tools/validate.py and CI check every
change.
The app reads the index from a pinned commit:
- commit
ecdb90a49a0a7e5115421c53731a61543dde1f9a(tag2026.11.29) - index SHA-256
75f02abd8e527f2c637a7f65f9105623c1cf71b4be41b9a446c9dcea62a2c830
What the registry holds at the pinned commit:
Hosting rule for that repo only: a game binary is stored there only when its upstream license clearly allows
redistribution (8-Bit Table Tennis, MIT). Pocket Bugs (MIT) is linked by pinned upstream URL and SHA-256
instead of being re-hosted. Covers and icons are generated placeholders. Kitty itself does not bundle or link
commercial ROMs, BIOS files or firmware; you can load any game file from your own computer.
| Kind | Count | Notes |
|---|---|---|
| Templates | 10 | NES and SNES sandboxes |
| Consoles | 15 | JSNES (NES) and 13 EmulatorJS cores: NES (fceumm, nestopia), SNES (snes9x, plus the original EmulatorJS SNES entry), Game Boy and Game Boy Color (gambatte, mGBA), GBA (mGBA), Atari 2600 (Stella), Master System (SMS Plus), Neo Geo Pocket and WonderSwan (Mednafen), Virtual Boy (Beetle VB) |
| Games | 38 | Open-licensed homebrew. Bundled only when the upstream license allows it, otherwise pinned by upstream URL and SHA-256 |
| Controllers | 14 | A pad per platform, Xbox-style and PlayStation-style gamepads, a phone pad (QR) and the keyboard |
Built in, not in the registry: the N64 console (gopher64 1.2.4), its pad and the example game Tortimer.
The app adds them from gamecomposer/local_catalog.py, because the N64 image is built from
examples/n64 in this repo.
Pinning
The pin is two constants in gamecomposer/registry.py: REGISTRY_COMMIT and REGISTRY_INDEX_SHA256.
The default index URL is
https://raw.githubusercontent.com/EnzoVezzaro/game-composer-registry/<REGISTRY_COMMIT>/index.json
and every file path in the index is relative to the same commit. The client rejects an index whose SHA-256 does
not match the pin, and a file or upstream download whose size or SHA-256 does not match its entry. To move the app
to a new registry release:
- Take the commit SHA from the registry repo (a commit, never a branch).
curl -sL https://raw.githubusercontent.com/EnzoVezzaro/game-composer-registry/<sha>/index.json | shasum -a 256- Update both constants, run the Python suite (
tests/registry), and note the change inCHANGELOG.md.
The SDK exposes the same rule as registryIndexUrl(commit).
Using another index
Set GAMECOMPOSER_REGISTRY_URL to another index (https:// or file://), for example a local checkout of the
registry repo while you work on it:
GAMECOMPOSER_REGISTRY_URL=file:///path/to/game-composer-registry/index.json kitty registry ls
A non-default URL is not checked against the pinned index digest (files still are), and the built-in N64
entries are not added to it.
From the command line
kitty registry ls [--kind console|game|controller|template] [--platform gba]
kitty registry search mednafen
kitty registry show ejs-gba-mgba
kitty registry platforms
kitty registry refresh # fetch again and update the offline cache
Every command takes --json and prints {state, message, url, version, count, entries} (show prints entry,
platforms prints platforms). Offline, the cached index is used and the notice goes to stderr. Exit code 1
means the registry is unreachable with nothing cached, 2 means a bad id or an invalid index.
Contributing entries
Contributions go to the registry repo, not here. Open a pull request on
game-composer-registry: add the entry and its files,
rebuild index.json with tools/build_index.py, run tools/validate.py, and include the license notice for
each game under licenses/. Only freely redistributable homebrew is accepted, and consoles must not need a BIOS.
When a registry release is tagged, a pull request here bumps the pin (see Pinning).
To add or change a game, console or controller, open an issue or pull request at
EnzoVezzaro/game-composer-registry.
Include the licence and a pinned HTTPS URL with SHA-256 for every asset, and only re-host a binary when its
licence allows redistribution. New entries need a real Kiri session as evidence before they move out of the
local registry-staging/ area; the format and the evidence bar are in
REGISTRY-EXPANSION.md. App and CLI install channels are in INSTALL.md.
Entry shapes the client understands
All kinds have kind, id, name, files (each {path, size, sha256}) and optional version, publisher,
description, license, tags, verified. The client also checks these fields when they are present:
| Kind | Fields |
|---|---|
console |
platform, model, emulator {name, version, source {url, sha256}}, core (EmulatorJS core id), supportedControls, buildContext, manifest (service fragment), icon |
game |
platform, consoles (console ids), rom {fileName, bundled, path or https url, sha256, size}, licenseFile, sourceUrl, cover |
controller |
buttons, defaultMapping {platform: {button: target}}, keyboardFallback, targets, layout, virtual |
template |
consoles (platform ids), manifest, uses, assets, icon |
An entry's platforms are its platform, a template's consoles, or a controller's defaultMapping keys
(entry_platforms() in Python, entryPlatforms() in the SDK). Discover's platform filter, Settings >
Controllers & input and kitty registry ls --platform all use that rule. Settings picks a default controller per
platform: a dedicated pad first, then a generic gamepad, then the phone pad.
Python modules
| Module | Job |
|---|---|
registry.py |
Fetch index.json, verify, cache in the user cache folder, fall back to the cache offline (state: "offline", message Offline, showing cached catalog). Content-addressed blob cache for files. |
registry_cli.py |
The registry subcommands above. |
local_catalog.py |
Adds the built-in N64 console, pad and game to the default catalog. |
preview.py |
preview(kind, id) returns what the UI shows (services, consoles, resources, ports, controls, assets, sizes, licenses, manifest text, validation) without creating anything. validate_text() returns inline errors [{path, message}]. compose() builds a manifest from console + game + controller. |
library.py |
"My consoles", "My games", controllers. Users can add any game file or folder from their own disk, with no license check. The file is copied into the user data folder, hashed with SHA-256 for integrity, and never uploaded. Title, console, cover, favorite, last played and notes are editable. |
sandboxes.py |
create_from_template / create_from_parts stage a named project in <data>/sandboxes/<slug>/, validate it with core.load, then move it into place. They start it only with start=True, which hands off to the normal up path. save_manifest validates, keeps a .bak, and saves. |
api.py |
request(operation, payload) / request_json(...) give a JSON envelope {ok, data} or {ok: false, error} for the desktop app. |
Data folder: GAMECOMPOSER_DATA_DIR, else ~/Library/Application Support/Game Composer (macOS),
%APPDATA%\Game Composer (Windows), $XDG_DATA_HOME/game-composer (Linux).
Cache: GAMECOMPOSER_CACHE_DIR, else the platform cache folder.
Tests: tests/registry/test_registry.py uses a fake in-memory registry and needs no network.
tests/registry/test_registry_expanded.py checks the expanded entry shapes and the CLI against
tests/registry/fixtures/expanded-index.json, a trimmed copy of the public index.
The .log files in tests/registry/ are dated evidence from the earlier v1.0.0 pin; a fresh
live check of the current 2026.11.29 pin is recorded in REPORT.md.

