Add an addon
Package layout, manifest entry, silent wiring points, deploy, and docs obligations for a new Dominevo plugin.
This page summarises how to add an addon. Start with the scaffolding tools
below; the add-addon skill has the full checklist.
Scaffold (recommended)
dominevo develop scaffold addon <name> --kind provider # or notifier|osd|…
dominevo develop find-example provider
dominevo develop validate <name>Nx: nx g @dominevo/nx-plugin:addon <name>. Full checklist:
dominevo develop skill add-addon (also in @dominevo/develop/skills/).
Builtin vs package
| Kind | Path | When |
|---|---|---|
| Builtin | packages/system/src/builtins/<name>/ | Kernel cannot function without it; every node; ships in @dominevo/server |
| Package | packages/addon-<name>/ | Opt-in feature; updates via Addons / dominevo deploy |
Minimal shape
packages/addon-<name>/
package.json camstack.addons[] manifest
vite.config.ts entries map (required)
src/
<name>.addon.ts BaseAddon subclass
index.ts
__tests__/
assets/ optional iconManifest must declare id, entry, capabilities[] (names only), and
execution.placement / execution.group when required.
Minimum server version
An addon that calls something added in a newer server declares the oldest
server it works with, in its package.json:
{
"camstack": {
"addons": [ { "id": "my-addon", "entry": "./dist/index.js" } ],
"requires": { "server": ">=1.2.931" }
}
}A delivery whose minimum is not met is refused with a message naming the versions. An addon that is already installed below the minimum a newer server needs is not held back: it starts, and the operator gets an alert naming the addon, the installed version and the required minimum, which clears when it is updated. So declare the real minimum (the first server that has the method you call), not a guess, and expect your addon to run against an older server until it is updated.
Secrets
A password, token or key is declared by its schema type and read from your config, never from the environment. See Secrets and the keychain.
README and CHANGELOG
Every addon package ships README.md and CHANGELOG.md at the package root,
and both names are in package.json "files" so npm pack includes them.
The hub reads the README from the registry packument and CHANGELOG.md from
the published tarball, and shows them before an install.
README.md says what the addon does, which settings it exposes, what it
requires, and where it may run (the manifest execution.placement).
CHANGELOG.md follows Keep a Changelog: a
# Changelog heading, newest section first.
Builtins that live inside @dominevo/system are not separate packages, so
this rule does not apply to them.
Silent failures (read twice)
- Cap registered in code but missing from the manifest → never offered.
- Manifest
entrywithout avite.config.tsentries key → compiles, fails at runtime. - Manifest changed but
npm run codegenskipped after a related*.cap.tsedit → routers drift. - Built locally, not deployed → hub still loads
<dataDir>/addons/@dominevo/.... - Addon imports another addon → forbidden; use
ctx.api. - New Admin page without
addon-pages-source→ invisible in the sidebar.
Deploy
dominevo deploy packages/addon-<name>
# or short name: dominevo deploy <name>
dominevo deploy <pkg> -n <nodeId> # agentUpdate the docs
If you work in the the Dominevo server repo, run the sync-docs skill when you
finish. Generated reference pages update on commit; write prose under
docs/architecture/ or docs/decisions/ only when you learned or decided
something worth recording.
Worked repository
A single addon and a three-addon bundle, with package.json, runners, tests, and publish steps, are in Addon examples (github.com/dominevo/addon-examples).
Then
- Build an integration for a device, service, or exporter instance
- Add a capability if you need a new contract
- Device identity and Device capabilities for providers for a device provider
- Secrets and the keychain
- Moving bytes between addons
- Hooks into existing surfaces
- Examples from core addons
- Addon examples
Architecture for plugins
Kernel vs addons, capabilities, registries, and process boundaries — what a plugin author must not violate.
Build an integration
Device integrations, service connections, and exporters — each one a typed instance record, with secrets, test, and a migration when the stored shape changes.