**The spec is [docs/addon-api.md](addon-api.md)** (add-on API v1: the manifest, permissions, your object, the pad side, versions). This page is the short how-to.
Working examples: examples/hello_addon/ (the bones) and examples/landing_checklist/ (a page of the pad's own buttons), both tested with every build; and two real published ones (commsarray.com/dev/addons): UEX data, a connector other add-ons share, and Where to buy, which uses it.
Building physical controls (buttons, switches, LEDs on a Teensy or similar)? See "Hardware add-ons" in the spec: your add-on talks to the device, Comms Array gives it lamps, the game's actions and presses that don't drift.
What an add-on is
A Python package that runs in its own process, started by Comms Array. It gets only what the player allows on the Add-ons tab: game data, game events, game actions, key presses, pad widgets and pages. It can't reach Comms Array's internals. It is still a program on the player's PC, so say clearly what it does (see "Permissions" in the spec).
There is one format, "api": 1. A zip without it is refused.
The zip
manifest.json
my_addon/__init__.py create(api) -> your add-on object
my_addon/pad_my_addon.js optional: the pad side
manifest.json (every key is checked; see the spec's table):
{"name": "myaddon", "package": "my_addon", "version": "1.0.0", "title": "My add-on",
"description": "What it does", "author": "you",
"api": 1, "permissions": ["pad.widgets", "events.game"],
"widgets": ["my_widget"], "pad_js": "pad_my_addon.js"}
Every file other than manifest.json lives inside the package folder.
A tool that needs a whole screen ships it as widgets plus a ready-made page ("pages", add-on API 1.2): the player adds the page with + Page in edit mode, and from then on it's theirs to change. See "Ready-made pages" in the spec.
What you can import
The exe carries Python's whole standard library (html.parser, urllib, json, sqlite3, ctypes, asyncio, email, xml...) and aiohttp. Left out: tkinter/turtle/idlelib (no GUI toolkit; draw on the pad instead), the test suite, ensurepip, and Unix-only modules (curses, fcntl, pty...). Every build checks that each module on its list imports. You can't pip-install extra packages into the exe; vendor pure-Python code inside your package if you need it.
Developing
Drop your package folder plus <package>.json (the manifest) into the add-ons folder (%APPDATA%\CommsArray\addons; the Add-ons tab shows the path) and restart Comms Array. It starts in its own process like any installed add-on, with no permissions until you tick them on the Add-ons tab. From source, Comms Array starts it as python -m commsarray plugin <package>.
Sharing
Zip it (manifest at the top) and hand it out. Players install it from the Add-ons tab (Advanced: install an add-on from a file), signed in (free, with Discord). It shows as "your own · unreviewed".
Or publish it on the hub, so players find it in the Add-ons tab and get your updates: make a publish token on your developer page (commsarray.com/me/developer) and have your CI send each new version (commsarray.com/dev/addons/publish). Your first publish of a free name makes it yours. Every version starts on beta and you promote it to stable. Each add-on follows the player's update channel unless they pick stable or beta for that one add-on; one with no stable version yet shows for everyone, marked beta only. The hub signs what you publish and lists it as unverified: players see it, and the app asks them to confirm they trust whoever made it before it installs. Comms Array may later mark it verified (we checked it and it seems legit; not an endorsement); official is Comms Array's own. The tier is Comms Array's call, never your manifest's.