Spec v1
An open catalog format for self-hosted apps.
An app is a folder with an automaton.json. A catalog is a GitHub repository with a catalog.json that lists apps, each pinned to one commit. Both are plain JSON with published schemas, so any platform can read them, and one catalog can serve more than one platform.
Schemas
The contract is the schema
https://automaton.monster/schemas/automaton.schema.json: the app manifest.https://automaton.monster/schemas/catalog.schema.json: the catalog index.
Both are JSON Schema 2020-12. Automaton's own catalog build and the official catalog are checked against them in CI.
Validate a file with any JSON Schema tool, for example:
pip install jsonschema curl -sO https://automaton.monster/schemas/catalog.schema.json jsonschema -i catalog.json catalog.schema.json
automaton.json
The app
Required: name. A catalog app also needs summary (one line). Everything an app needs to run sits under application:
- Build and run:
build(image, command, outputDirectory),runtime(image, command, port, user, update), orcomposefor a small multi-container app. - Health:
health.pathanswers 2xx when the app is ready;startupTimeoutSecondsbounds the start. - Storage:
storage.dataDirectoryandmountssurvive redeploys; everything else is replaced. - Settings and secrets: named values delivered as environment variables. Secrets are never stored in the manifest.
- Permissions:
permissionsare requests. A manifest or catalog never grants one; an administrator approves each on the installing server.
Unknown fields are allowed and tools must keep them, so a newer manifest is never damaged by an older tool.
{
"name": "Hello",
"summary": "A page that greets you.",
"application": {
"runtime": { "image": "node:22-slim", "command": { "executable": "node", "arguments": ["server.mjs"] }, "port": 8080 },
"health": { "path": "/health" },
"storage": { "dataDirectory": "data" },
"permissions": ["notify:email"]
}
}catalog.json
The catalog
Required at the top: schemaVersion (1), repo (owner/name) and apps. Each entry has id, name, summary, category, folder, commit and minServerVersion; permissions, publisher, icon and screenshots are optional.
- Pinning:
commitis the full SHA of the last commit that changed the folder. An install reads exactly those files, so what was listed is what runs. - Versioning:
schemaVersionchanges only for a breaking change. New optional fields do not change it; readers ignore fields they do not know and refuse a higher major version. - Safety:
folderis a relative path without.or..;minServerVersionlets an older server show an entry without Install.
{
"schemaVersion": 1,
"repo": "example-org/team-tools",
"apps": [{
"id": "adminer", "name": "Adminer", "summary": "Manage a database from the browser.",
"category": "Developer tools", "folder": "tools/adminer",
"commit": "0123456789abcdef0123456789abcdef01234567",
"minServerVersion": "0.2.200", "permissions": []
}]
}Adopt it
Start from a Docker Compose file
The Automaton CLI turns a compose.yaml into an app folder, drops what the platform does not use (restart policies, host port mappings) and refuses what it cannot run safely (build contexts, host mounts):
automaton import-compose compose.yaml --out my-app --name "My App"
Scope of v1: the app and catalog format. Converters to other platforms' formats and a governance process are later work. Read the reference implementation in GitHub; send corrections as issues.