> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recasaos.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Write a module

> A module is a repository with a module.json manifest, a release archive and a catalogue entry; docs/modules.md is the contract.

A module is an optional component in a repository of its own: a `module.json` manifest, a release archive that holds one binary and one systemd unit, and an entry in the [ReCasaOS modules catalogue](https://github.com/ReCasaOS/modules). 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](https://github.com/ReCasaOS/CasaOS-Install/blob/main/docs/modules.md). A community module enters the catalogue by a pull request to ReCasaOS/modules.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.