module.json manifest, a release archive that holds one binary and one systemd unit, and an entry in the ReCasaOS modules catalogue. Before anything is written to a box, ReCasaOS checks the archive against the rules of the contract: what it may write (/usr/bin/<file>, one unit, /etc/casaos/<file>.sample), its size, its digest, the systems and processors it supports, and the release it needs.
A module can also give the dashboard a card, as data the dashboard reads (never markup or code).
The contract for authors, with the manifest’s fields, the catalogue, the casaos module commands and what the dashboard does with a card, is docs/modules.md. A community module enters the catalogue by a pull request to ReCasaOS/modules.