kitty-game-composer 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kitty_game_composer-0.2.0/LICENSE +21 -0
- kitty_game_composer-0.2.0/PKG-INFO +80 -0
- kitty_game_composer-0.2.0/README.md +272 -0
- kitty_game_composer-0.2.0/docs/pypi/README.md +47 -0
- kitty_game_composer-0.2.0/gamecomposer/__init__.py +5 -0
- kitty_game_composer-0.2.0/gamecomposer/api.py +342 -0
- kitty_game_composer-0.2.0/gamecomposer/catalog_db.py +236 -0
- kitty_game_composer-0.2.0/gamecomposer/catalog_seed.py +215 -0
- kitty_game_composer-0.2.0/gamecomposer/cli.py +183 -0
- kitty_game_composer-0.2.0/gamecomposer/config.py +225 -0
- kitty_game_composer-0.2.0/gamecomposer/core.py +370 -0
- kitty_game_composer-0.2.0/gamecomposer/desktop.py +200 -0
- kitty_game_composer-0.2.0/gamecomposer/game-compose.schema.json +200 -0
- kitty_game_composer-0.2.0/gamecomposer/input/__init__.py +124 -0
- kitty_game_composer-0.2.0/gamecomposer/instances.py +179 -0
- kitty_game_composer-0.2.0/gamecomposer/library.py +550 -0
- kitty_game_composer-0.2.0/gamecomposer/local_catalog.py +145 -0
- kitty_game_composer-0.2.0/gamecomposer/preview.py +157 -0
- kitty_game_composer-0.2.0/gamecomposer/registry.py +343 -0
- kitty_game_composer-0.2.0/gamecomposer/registry_cli.py +136 -0
- kitty_game_composer-0.2.0/gamecomposer/runtime.py +742 -0
- kitty_game_composer-0.2.0/gamecomposer/sandboxes.py +386 -0
- kitty_game_composer-0.2.0/gamecomposer/sdk.py +42 -0
- kitty_game_composer-0.2.0/gamecomposer/staging_catalog.py +60 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/PKG-INFO +80 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/SOURCES.txt +30 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/dependency_links.txt +1 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/entry_points.txt +6 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/requires.txt +2 -0
- kitty_game_composer-0.2.0/kitty_game_composer.egg-info/top_level.txt +1 -0
- kitty_game_composer-0.2.0/pyproject.toml +52 -0
- kitty_game_composer-0.2.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Enzo Vezzaro
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kitty-game-composer
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Kitty, the game composer: declare a retro game session in one gamecomposer.yml and run it on the local Kiri runtime
|
|
5
|
+
Author: Enzo Vezzaro
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/EnzoVezzaro/game-composer
|
|
8
|
+
Project-URL: Documentation, https://github.com/EnzoVezzaro/game-composer/blob/main/docs/user-guide.md
|
|
9
|
+
Project-URL: Changelog, https://github.com/EnzoVezzaro/game-composer/blob/main/CHANGELOG.md
|
|
10
|
+
Project-URL: Issues, https://github.com/EnzoVezzaro/game-composer/issues
|
|
11
|
+
Project-URL: npm SDK, https://www.npmjs.com/package/@kitty-game-composer/sdk
|
|
12
|
+
Keywords: kitty,game-composer,emulation,homebrew,retro-games,sandbox,kiri,cli,manifest
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
17
|
+
Classifier: Operating System :: MacOS
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Topic :: Games/Entertainment
|
|
26
|
+
Classifier: Topic :: System :: Emulators
|
|
27
|
+
Requires-Python: >=3.10
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: PyYAML<7,>=6
|
|
31
|
+
Requires-Dist: jsonschema<5,>=4.18
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<img src="https://raw.githubusercontent.com/EnzoVezzaro/game-composer/main/docs/readme/hero.png" alt="Kitty, the game composer: a pixel tuxedo cat with lime headphones on a console, over voxel cubes" width="100%" />
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
# kitty-game-composer
|
|
39
|
+
|
|
40
|
+
The command-line core of [Kitty](https://github.com/EnzoVezzaro/game-composer), the game composer. You describe a retro game session in one `gamecomposer.yml` (emulator, game, controls, resources, saves) and the `kitty` command validates it and runs it in a Linux sandbox through the local [Kiri](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/architecture.md) runtime.
|
|
41
|
+
|
|
42
|
+
Every asset is pinned by URL and SHA-256, and the player listens on `127.0.0.1` only. Kitty does not bundle or link commercial ROMs, BIOS files or firmware; you can load any game file from your own computer, and the registry lists only games whose licence allows redistribution.
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
> **Not published on PyPI yet** — `kitty-game-composer` returns 404 today. Until it is published, install from source using the steps in [Get Kitty](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md).
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pipx install kitty-game-composer
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Plain `pip install kitty-game-composer` inside a virtual environment works too. You need Python 3.10 or newer. To launch games you also need the Kiri CLI running and on `PATH` as `kiri`; validating a manifest does not.
|
|
53
|
+
|
|
54
|
+
There is also a thin npm launcher, `@kitty-game-composer/cli`, that finds this package and runs it. It is not published on npm yet either, and it does not install Python for you.
|
|
55
|
+
|
|
56
|
+
## Use
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
kitty config # validate gamecomposer.yml, print normalized JSON
|
|
60
|
+
kitty up # check digests, build the guest on Kiri, open the player
|
|
61
|
+
kitty --file examples/snes/gamecomposer.yml up # a specific manifest
|
|
62
|
+
kitty ps
|
|
63
|
+
kitty logs nes
|
|
64
|
+
kitty down # remove containers, keep saves
|
|
65
|
+
kitty ls --json # every Kiri-managed instance
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`up --new` starts a second copy of the same manifest and `-i ID` addresses it. Exit codes: `0` ok, `1` runtime error, `2` bad input or manifest.
|
|
69
|
+
|
|
70
|
+
## Links
|
|
71
|
+
|
|
72
|
+
- [Get Kitty / install guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md)
|
|
73
|
+
- [Repository and desktop app](https://github.com/EnzoVezzaro/game-composer)
|
|
74
|
+
- [Registry](https://github.com/EnzoVezzaro/game-composer-registry) — contribute games, consoles and controllers there
|
|
75
|
+
- [User guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/user-guide.md)
|
|
76
|
+
- [Manifest spec](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/GAMECOMPOSER-SPEC.md)
|
|
77
|
+
- [TypeScript SDK on npm](https://www.npmjs.com/package/@kitty-game-composer/sdk)
|
|
78
|
+
- [Releases](https://github.com/EnzoVezzaro/game-composer/releases) · [Changelog](https://github.com/EnzoVezzaro/game-composer/blob/main/CHANGELOG.md) · [Issues](https://github.com/EnzoVezzaro/game-composer/issues)
|
|
79
|
+
|
|
80
|
+
MIT licence. Emulators, games and other third-party assets keep their own licences.
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/readme/hero.png" alt="Kitty, the game composer: a pixel tuxedo cat with lime headphones on a console, over voxel cubes and a row of grass blocks" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/EnzoVezzaro/game-composer/releases/tag/v0.2.0"><img src="https://img.shields.io/badge/release-v0.2.0-b6f03c?style=flat-square&labelColor=100b18" alt="Release v0.2.0" /></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@kitty-game-composer/sdk"><img src="https://img.shields.io/npm/v/@kitty-game-composer/sdk?style=flat-square&label=npm%20sdk&color=57b8ff&labelColor=100b18" alt="npm version of @kitty-game-composer/sdk" /></a>
|
|
8
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-a77bff?style=flat-square&labelColor=100b18" alt="MIT license" /></a>
|
|
9
|
+
<img src="https://img.shields.io/badge/host-Linux-43e0c2?style=flat-square&labelColor=100b18" alt="Target host: Linux" />
|
|
10
|
+
<img src="https://img.shields.io/badge/dev-macOS-43e0c2?style=flat-square&labelColor=100b18" alt="Development host: macOS" />
|
|
11
|
+
<img src="https://img.shields.io/badge/games-bring%20your%20own-43e0c2?style=flat-square&labelColor=100b18" alt="Bring your own games" />
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="docs/readme/strip.svg" alt="Terminal line: kitty up, then manifest ok, sha-256 ok, kiri sandbox up, player on 127.0.0.1" width="100%" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
**Kitty is a desktop game composer.** You describe a retro game session in one `gamecomposer.yml` (emulator, game, controls, resources, saves) and Kitty runs it in a Linux sandbox through the local [Kiri](docs/architecture.md) runtime, then opens it in its own player window.
|
|
19
|
+
|
|
20
|
+
Every asset is pinned by URL and SHA-256, and the player listens on `127.0.0.1` only. Kitty does not bundle or link commercial ROMs, BIOS files or firmware; you can load any game file from your own computer. The registry lists only games whose licence allows redistribution.
|
|
21
|
+
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="#-get-kitty">Get Kitty</a> ·
|
|
24
|
+
<a href="#-feature-tour">Feature tour</a> ·
|
|
25
|
+
<a href="#-quickstart">Quickstart</a> ·
|
|
26
|
+
<a href="#-sdk">SDK</a> ·
|
|
27
|
+
<a href="#-how-it-works">How it works</a> ·
|
|
28
|
+
<a href="#-consoles">Consoles</a> ·
|
|
29
|
+
<a href="#-roadmap">Roadmap</a> ·
|
|
30
|
+
<a href="#-contributing">Contributing</a>
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🎮 Feature tour
|
|
36
|
+
|
|
37
|
+
All screenshots are captures of the v0.2.0 desktop app on macOS, light theme with the lime accent.
|
|
38
|
+
|
|
39
|
+
<p align="center">
|
|
40
|
+
<img src="landing/assets/screenshots/studio-home-1600.webp" alt="Kitty Studio home: a voxel island, Open file button, runtime and registry status chips, and quick-start cards for Create, Discover and Worlds" width="100%" />
|
|
41
|
+
<br /><sub><b>Studio.</b> Home base. Runtime and registry status, open projects, and a Three.js voxel island that stays still under reduced motion.</sub>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
<table>
|
|
45
|
+
<tr>
|
|
46
|
+
<td width="50%" valign="top">
|
|
47
|
+
<img src="landing/assets/screenshots/discover-1600.webp" alt="Discover view listing registry templates, consoles, games and controllers" />
|
|
48
|
+
<br /><sub><b>Discover.</b> Browse the registry: templates, consoles, games and controllers, each with its licence and size before anything downloads.</sub>
|
|
49
|
+
</td>
|
|
50
|
+
<td width="50%" valign="top">
|
|
51
|
+
<img src="landing/assets/screenshots/library-consoles-1600.webp" alt="Library view with the Consoles tab open" />
|
|
52
|
+
<br /><sub><b>Library.</b> Your consoles, games and controllers. Games can be any file from your disk; Kitty hashes it locally and never uploads it.</sub>
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td width="50%" valign="top">
|
|
57
|
+
<img src="landing/assets/screenshots/create-select-1600.webp" alt="Create flow, select stage: choosing a console, game and controller" />
|
|
58
|
+
<br /><sub><b>Create.</b> Three stages: pick a console, game and controller, configure, then review the generated manifest before launch.</sub>
|
|
59
|
+
</td>
|
|
60
|
+
<td width="50%" valign="top">
|
|
61
|
+
<img src="landing/assets/screenshots/create-review-1600.webp" alt="Create flow, review stage showing the generated gamecomposer.yml" />
|
|
62
|
+
<br /><sub><b>Review.</b> The exact <code>gamecomposer.yml</code> that will run, validated by the Python core. Nothing starts until you press Create.</sub>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td width="50%" valign="top">
|
|
67
|
+
<img src="landing/assets/screenshots/worlds-1600.webp" alt="Worlds view with one card per project and live sandbox state" />
|
|
68
|
+
<br /><sub><b>Worlds.</b> One card per project. Actions follow each sandbox's live state from Kiri, and destructive ones ask first.</sub>
|
|
69
|
+
</td>
|
|
70
|
+
<td width="50%" valign="top">
|
|
71
|
+
<img src="landing/assets/screenshots/settings-runtime-1600.webp" alt="Settings, runtime section showing detected Python and Kiri values" />
|
|
72
|
+
<br /><sub><b>Settings.</b> Shows the values Kitty actually uses, detected or yours, with Re-detect. Controllers get a live input test.</sub>
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td width="50%" valign="top">
|
|
77
|
+
<img src="landing/assets/screenshots/player-overlay-shown-1600.webp" alt="Kitty player with the overlay open: pause, save slots, volume, speed, keymap and on-screen pad" />
|
|
78
|
+
<br /><sub><b>Player, overlay on.</b> Pause and reset, save slots, volume, fullscreen, screenshot, speed, keymap, on-screen pad and gamepad status.</sub>
|
|
79
|
+
</td>
|
|
80
|
+
<td width="50%" valign="top">
|
|
81
|
+
<img src="landing/assets/screenshots/player-overlay-hidden-1600.webp" alt="Kitty player with the overlay hidden, the game filling the window" />
|
|
82
|
+
<br /><sub><b>Player, overlay off.</b> Press <kbd>H</kbd>. The game fills a window sized to a whole multiple of the console's native resolution.</sub>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</table>
|
|
86
|
+
|
|
87
|
+
Also in v0.2.0: light and dark themes with four accents (0 axe colour-contrast violations across all 16 combinations, see [the audit](docs/CONTRAST-AUDIT.md)), EN/ES copy, an onboarding tour, and a phone controller you pair by QR code on the same local network.
|
|
88
|
+
|
|
89
|
+
## ⬇️ Get Kitty
|
|
90
|
+
|
|
91
|
+
| Channel | Install / download | Status |
|
|
92
|
+
| --- | --- | --- |
|
|
93
|
+
| Desktop — macOS arm64 | [Kitty-0.2.0-arm64.dmg](https://github.com/EnzoVezzaro/game-composer/releases/download/v0.2.0/Kitty-0.2.0-arm64.dmg) | available on v0.2.0 |
|
|
94
|
+
| Desktop — Linux x86_64 | [Kitty-0.2.0-x86_64.AppImage](https://github.com/EnzoVezzaro/game-composer/releases/download/v0.2.0/Kitty-0.2.0-x86_64.AppImage) | coming with v0.2.0 assets |
|
|
95
|
+
| Desktop — Linux amd64 | [kitty_0.2.0_amd64.deb](https://github.com/EnzoVezzaro/game-composer/releases/download/v0.2.0/kitty_0.2.0_amd64.deb) | coming with v0.2.0 assets |
|
|
96
|
+
| Desktop — Linux arm64 | [Kitty-0.2.0-arm64.AppImage](https://github.com/EnzoVezzaro/game-composer/releases/download/v0.2.0/Kitty-0.2.0-arm64.AppImage) | coming with v0.2.0 assets |
|
|
97
|
+
| Desktop — Linux arm64 (.deb) | [kitty_0.2.0_arm64.deb](https://github.com/EnzoVezzaro/game-composer/releases/download/v0.2.0/kitty_0.2.0_arm64.deb) | coming with v0.2.0 assets |
|
|
98
|
+
| CLI — Python | `pipx install kitty-game-composer` ([PyPI](https://pypi.org/project/kitty-game-composer/)) | not published yet (404 today) |
|
|
99
|
+
| CLI — npm launcher | `npx @kitty-game-composer/cli --help` | not published yet (404 today) |
|
|
100
|
+
| SDK — TypeScript | [`@kitty-game-composer/sdk`](https://www.npmjs.com/package/@kitty-game-composer/sdk) on npm | published |
|
|
101
|
+
|
|
102
|
+
The [registry](https://github.com/EnzoVezzaro/game-composer-registry) is its own repo for templates, consoles, games and controllers; open an issue or pull request there to contribute, as described in [docs/REGISTRY.md](docs/REGISTRY.md). Full detail, including the from-source steps, is in [docs/INSTALL.md](docs/INSTALL.md).
|
|
103
|
+
|
|
104
|
+
[Releases](https://github.com/EnzoVezzaro/game-composer/releases) · [Changelog](CHANGELOG.md) · [Issues](https://github.com/EnzoVezzaro/game-composer/issues)
|
|
105
|
+
|
|
106
|
+
## ⚡ Quickstart
|
|
107
|
+
|
|
108
|
+
**You need:** a Linux host (or macOS as a dev host, with Kiri in its VM), Python 3.10+, and the [Kiri](docs/architecture.md) CLI running and on `PATH` as `kiri`. The desktop app also needs Node.js 18+.
|
|
109
|
+
|
|
110
|
+
### CLI
|
|
111
|
+
|
|
112
|
+
Install the `kitty` command from [Get Kitty](#-get-kitty) above or from source below. The npm launcher only finds and runs the Python CLI; it does not install Python or the CLI for you. If it cannot find `kitty-game-composer`, it prints the `pipx` command and exits. Details in [cli-npm/README.md](cli-npm/README.md).
|
|
113
|
+
|
|
114
|
+
```sh
|
|
115
|
+
kitty config # validate gamecomposer.yml, print normalized JSON
|
|
116
|
+
kitty up # check digests, build the guest on Kiri, open the player
|
|
117
|
+
kitty --file examples/snes/gamecomposer.yml up # the SNES homebrew example
|
|
118
|
+
kitty ps && kitty logs nes
|
|
119
|
+
kitty down # remove containers, keep saves
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`gamecompose` and `game-compose` still work as aliases for `kitty`.
|
|
123
|
+
|
|
124
|
+
### From source (CLI and desktop app)
|
|
125
|
+
|
|
126
|
+
The desktop builds are listed in [Get Kitty](#-get-kitty); the macOS arm64 build is available on v0.2.0, and until the Linux assets land you can run from source:
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
git clone https://github.com/EnzoVezzaro/game-composer.git
|
|
130
|
+
cd game-composer
|
|
131
|
+
|
|
132
|
+
# Python core + CLI
|
|
133
|
+
python3 -m venv .venv
|
|
134
|
+
.venv/bin/python -m pip install -e .
|
|
135
|
+
|
|
136
|
+
# Desktop app
|
|
137
|
+
npm --prefix sdk ci && npm --prefix sdk run build
|
|
138
|
+
npm --prefix desktop ci
|
|
139
|
+
npm --prefix desktop start
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The desktop app finds Python on its own: `GAMECOMPOSER_PYTHON`, then the repo `.venv`, then `python3` on `PATH`. After `source .venv/bin/activate`, the `kitty` command above is on your `PATH`.
|
|
143
|
+
|
|
144
|
+
`up --new` starts a second copy of the same manifest and `-i ID` addresses it. `ls --json` lists every Kiri-managed instance. Exit codes: `0` ok, `1` runtime error, `2` bad input or manifest. Full CLI reference: [docs/user-guide.md](docs/user-guide.md).
|
|
145
|
+
|
|
146
|
+
## 📦 SDK
|
|
147
|
+
|
|
148
|
+
The TypeScript contract for manifests and lifecycle calls is on npm as [`@kitty-game-composer/sdk`](https://www.npmjs.com/package/@kitty-game-composer/sdk) (MIT, Node.js 18+, ES modules).
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
npm install @kitty-game-composer/sdk
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
```js
|
|
155
|
+
import { parseConfig, createGameComposerClient } from '@kitty-game-composer/sdk';
|
|
156
|
+
|
|
157
|
+
const source = await (await import('node:fs/promises')).readFile('gamecomposer.yml', 'utf8');
|
|
158
|
+
const config = parseConfig(source, { sourceName: 'gamecomposer.yml' });
|
|
159
|
+
|
|
160
|
+
const client = createGameComposerClient({
|
|
161
|
+
async invoke({ operation, projectDirectory, configPath, signal }) {
|
|
162
|
+
// Delegate to your CLI, API, or runtime adapter.
|
|
163
|
+
return runtime.invoke({ operation, projectDirectory, configPath, signal });
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
await client.up({ projectDirectory: process.cwd(), services: ['nes'], instance: '1' });
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
The SDK is transport-agnostic: you bring the adapter. Details in [sdk/README.md](sdk/README.md).
|
|
171
|
+
|
|
172
|
+
## 🧩 How it works
|
|
173
|
+
|
|
174
|
+
<p align="center">
|
|
175
|
+
<img src="docs/readme/pipeline.svg" alt="Pipeline: gamecomposer.yml, then the Python validator (JSON Schema, paths, SHA-256 per asset), then the Kiri runtime (Linux sandbox, no Docker daemon), then the Kitty player on 127.0.0.1" width="100%" />
|
|
176
|
+
</p>
|
|
177
|
+
|
|
178
|
+
1. **Manifest.** The desktop app, the CLI and the SDK all work from one `gamecomposer.yml` (`apiVersion: gamecomposer.dev/v0.2`).
|
|
179
|
+
2. **Validation.** The Python core checks it against [the JSON Schema](specs/game-compose.schema.json), resolves paths inside the project, and downloads each URL source to a content-addressed cache. A digest mismatch stops the launch.
|
|
180
|
+
3. **Kiri.** Kitty calls the Kiri CLI with an argument vector (never a shell string, never `docker`). Kiri builds and runs the Linux guest; assets mount read-only and only declared save folders are writable.
|
|
181
|
+
4. **Player.** The guest serves its player on loopback and Kitty opens it in a native window. Nothing is streamed over the internet.
|
|
182
|
+
|
|
183
|
+
A manifest, trimmed:
|
|
184
|
+
|
|
185
|
+
```yaml
|
|
186
|
+
apiVersion: gamecomposer.dev/v0.2
|
|
187
|
+
services:
|
|
188
|
+
nes:
|
|
189
|
+
environment:
|
|
190
|
+
os: linux
|
|
191
|
+
build: ./examples/nes/image
|
|
192
|
+
emulator:
|
|
193
|
+
source:
|
|
194
|
+
url: https://unpkg.com/jsnes@2.1.0/dist/jsnes.min.js
|
|
195
|
+
sha256: 84946f0dae4bcf3b2dfebe84ad3bfeb1dbcb413bd9b1a69e1f45910a95fd7b41
|
|
196
|
+
game:
|
|
197
|
+
title: 8-Bit Table Tennis
|
|
198
|
+
platform: nes
|
|
199
|
+
source:
|
|
200
|
+
url: https://github.com/mike42/8bit-table-tennis/releases/download/v1.0/table_tennis_v1.0.nes
|
|
201
|
+
sha256: 05122457672f95fcf2ee518c3f37e506617725c2d031100b1b1c8b7785068ea3
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
The full file is [gamecomposer.yml](gamecomposer.yml); the format is specified in [docs/GAMECOMPOSER-SPEC.md](docs/GAMECOMPOSER-SPEC.md).
|
|
205
|
+
|
|
206
|
+
## 🕹️ Consoles
|
|
207
|
+
|
|
208
|
+
Consoles, games and controllers come from the public registry, a separate repo with its own releases and CI: [`game-composer-registry`](https://github.com/EnzoVezzaro/game-composer-registry). Kitty reads it from a pinned commit and checks every download against its SHA-256. To add a console, game or controller, open a pull request there. See [docs/REGISTRY.md](docs/REGISTRY.md).
|
|
209
|
+
|
|
210
|
+
**Public registry** (10 templates, 15 consoles, 38 games, 14 controllers):
|
|
211
|
+
|
|
212
|
+
| Platform | Emulator (core) | Homebrew games |
|
|
213
|
+
| --- | --- | --- |
|
|
214
|
+
| NES | JSNES 2.1.0, EmulatorJS fceumm and nestopia | 13 |
|
|
215
|
+
| SNES | EmulatorJS snes9x | 2 |
|
|
216
|
+
| Game Boy | EmulatorJS gambatte and mGBA | 10 |
|
|
217
|
+
| Game Boy Color | EmulatorJS gambatte and mGBA | 3 |
|
|
218
|
+
| Game Boy Advance | EmulatorJS mGBA | 6 |
|
|
219
|
+
| Atari 2600 | EmulatorJS Stella | 3 |
|
|
220
|
+
| Master System | EmulatorJS SMS Plus | 1 |
|
|
221
|
+
| Neo Geo Pocket, WonderSwan, Virtual Boy | EmulatorJS Mednafen and Beetle VB | bring your own |
|
|
222
|
+
|
|
223
|
+
Controllers: a pad per platform, Xbox-style and PlayStation-style gamepads, a phone pad paired by QR, and the keyboard. Browse it from the terminal with `kitty registry ls --platform gba`.
|
|
224
|
+
|
|
225
|
+
**Built in:** N64 through gopher64 1.2.4 (GPL-3.0) with *Tortimer* (MIT homebrew). Its image lives in [examples/n64](examples/n64), so the app adds it to the catalog itself instead of reading it from the registry.
|
|
226
|
+
|
|
227
|
+
Only BIOS-free cores are eligible. Kitty has no legal BIOS distribution path, so consoles that need one are out.
|
|
228
|
+
|
|
229
|
+
## 🗺️ Roadmap
|
|
230
|
+
|
|
231
|
+
- [x] Manifest schema, Python validation, SHA-256 checked URL sources
|
|
232
|
+
- [x] Kiri lifecycle: `config`, `up`, `ps`, `logs`, `stop`, `down`, multiple instances
|
|
233
|
+
- [x] Desktop app: Studio, Discover, Library, Create, Worlds, Settings, shared player
|
|
234
|
+
- [x] SDK on npm
|
|
235
|
+
- [x] Public registry in its own repo: EmulatorJS consoles, homebrew games and controllers per platform
|
|
236
|
+
- [ ] Installer / packaged builds for Linux
|
|
237
|
+
- [ ] Wider controller verification per browser and device
|
|
238
|
+
- [ ] Remote streaming (not started; today the player is loopback only)
|
|
239
|
+
|
|
240
|
+
Windows and SteamOS hosts are out of scope for now. The longer plan, with its gates, is in [docs/roadmap.md](docs/roadmap.md).
|
|
241
|
+
|
|
242
|
+
## 📚 Docs
|
|
243
|
+
|
|
244
|
+
| Doc | What it covers |
|
|
245
|
+
| --- | --- |
|
|
246
|
+
| [Get Kitty / install](docs/INSTALL.md) | Desktop downloads, CLI, SDK, registry and project links |
|
|
247
|
+
| [User guide](docs/user-guide.md) | Setup, manifests, lifecycle, troubleshooting |
|
|
248
|
+
| [Architecture](docs/architecture.md) | Runtime boundaries and Kiri support |
|
|
249
|
+
| [Manifest spec](docs/GAMECOMPOSER-SPEC.md) · [schema](specs/game-compose.schema.json) | The `gamecomposer.yml` contract |
|
|
250
|
+
| [Interfaces](specs/interfaces-v0.1.md) | CLI, SDK, desktop and browser boundaries |
|
|
251
|
+
| [Registry](docs/REGISTRY.md) | Registry format, library, sandbox creation |
|
|
252
|
+
| [Instances](docs/instances.md) | Instance identity and `ls --json` records |
|
|
253
|
+
| [Templates](templates/README.md) | The 10 starter manifests |
|
|
254
|
+
| [Controller verification matrix](docs/CONTROLLER-MATRIX.md) | Exactly which controller paths, engines and browsers are verified, and what is not |
|
|
255
|
+
| [Desktop app](desktop/README.md) · [SDK](sdk/README.md) | Package-level notes |
|
|
256
|
+
| [Changelog](CHANGELOG.md) | Release history |
|
|
257
|
+
|
|
258
|
+
## 🛠️ Contributing
|
|
259
|
+
|
|
260
|
+
Issues and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) for setup, the three test suites and commit style, and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Found a vulnerability? Report it privately as described in [SECURITY.md](SECURITY.md).
|
|
261
|
+
|
|
262
|
+
The one hard rule: **only contribute content you may redistribute.** Kitty does not bundle or link commercial ROMs, BIOS files or firmware; you can load any game file from your own computer, and the registry lists only games whose licence allows redistribution. Pull requests that add, link or describe how to get commercial ROMs, BIOS files or firmware will be closed.
|
|
263
|
+
|
|
264
|
+
## 💚 Support
|
|
265
|
+
|
|
266
|
+
If Kitty is useful to you, you can support its development on [Ko-fi](https://ko-fi.com/enzojuniorvezzaro) or through [GitHub Sponsors](https://github.com/sponsors/EnzoVezzaro).
|
|
267
|
+
|
|
268
|
+
## License
|
|
269
|
+
|
|
270
|
+
[MIT](LICENSE) © 2026 Enzo Vezzaro. Emulators, games and other third-party assets keep their own licences; notices sit next to each example and in the [registry's licenses folder](https://github.com/EnzoVezzaro/game-composer-registry/tree/main/licenses).
|
|
271
|
+
|
|
272
|
+
<p align="center"><img src="desktop/assets/brand/logo/kitty-head.png" alt="" width="48" /></p>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/EnzoVezzaro/game-composer/main/docs/readme/hero.png" alt="Kitty, the game composer: a pixel tuxedo cat with lime headphones on a console, over voxel cubes" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# kitty-game-composer
|
|
6
|
+
|
|
7
|
+
The command-line core of [Kitty](https://github.com/EnzoVezzaro/game-composer), the game composer. You describe a retro game session in one `gamecomposer.yml` (emulator, game, controls, resources, saves) and the `kitty` command validates it and runs it in a Linux sandbox through the local [Kiri](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/architecture.md) runtime.
|
|
8
|
+
|
|
9
|
+
Every asset is pinned by URL and SHA-256, and the player listens on `127.0.0.1` only. Kitty does not bundle or link commercial ROMs, BIOS files or firmware; you can load any game file from your own computer, and the registry lists only games whose licence allows redistribution.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
> **Not published on PyPI yet** — `kitty-game-composer` returns 404 today. Until it is published, install from source using the steps in [Get Kitty](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md).
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pipx install kitty-game-composer
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Plain `pip install kitty-game-composer` inside a virtual environment works too. You need Python 3.10 or newer. To launch games you also need the Kiri CLI running and on `PATH` as `kiri`; validating a manifest does not.
|
|
20
|
+
|
|
21
|
+
There is also a thin npm launcher, `@kitty-game-composer/cli`, that finds this package and runs it. It is not published on npm yet either, and it does not install Python for you.
|
|
22
|
+
|
|
23
|
+
## Use
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
kitty config # validate gamecomposer.yml, print normalized JSON
|
|
27
|
+
kitty up # check digests, build the guest on Kiri, open the player
|
|
28
|
+
kitty --file examples/snes/gamecomposer.yml up # a specific manifest
|
|
29
|
+
kitty ps
|
|
30
|
+
kitty logs nes
|
|
31
|
+
kitty down # remove containers, keep saves
|
|
32
|
+
kitty ls --json # every Kiri-managed instance
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`up --new` starts a second copy of the same manifest and `-i ID` addresses it. Exit codes: `0` ok, `1` runtime error, `2` bad input or manifest.
|
|
36
|
+
|
|
37
|
+
## Links
|
|
38
|
+
|
|
39
|
+
- [Get Kitty / install guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md)
|
|
40
|
+
- [Repository and desktop app](https://github.com/EnzoVezzaro/game-composer)
|
|
41
|
+
- [Registry](https://github.com/EnzoVezzaro/game-composer-registry) — contribute games, consoles and controllers there
|
|
42
|
+
- [User guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/user-guide.md)
|
|
43
|
+
- [Manifest spec](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/GAMECOMPOSER-SPEC.md)
|
|
44
|
+
- [TypeScript SDK on npm](https://www.npmjs.com/package/@kitty-game-composer/sdk)
|
|
45
|
+
- [Releases](https://github.com/EnzoVezzaro/game-composer/releases) · [Changelog](https://github.com/EnzoVezzaro/game-composer/blob/main/CHANGELOG.md) · [Issues](https://github.com/EnzoVezzaro/game-composer/issues)
|
|
46
|
+
|
|
47
|
+
MIT licence. Emulators, games and other third-party assets keep their own licences.
|