Architecture for plugins
Kernel vs addons, capabilities, registries, and process boundaries — what a plugin author must not violate.
Kernel and addons
The hub runs a kernel (processes, transport, registries) plus addons.
User-visible features — camera providers, detection, notifications, Admin UI —
are addons. You extend Dominevo by shipping an addon package (or a builtin
inside @dominevo/server when the kernel cannot boot without it).
Capabilities are the only API
Addons never import each other. Cross-addon calls go through ctx.api to a
capability defined in packages/types/src/capabilities/*.cap.ts. The
manifest declares that you provide a cap by name; behavioural metadata
(kind, defaultActive, mode) lives only in the *.cap.ts.
After any cap change: npm run codegen, then publish/deploy the packages that
carry the new router.
Process model
- Default: one addon = one process.
- Co-location only via a shared
execution.group, and only for the cases the kernel allows (never device providers or frame-rate data planes just to save RAM). - Crashes respawn the runner; there is no in-process hot-reload of business logic.
Bytes and frames
- Cross-addon bytes use
ctx.peerBytes(tickets), not base64 fields on cap methods and not private HTTP servers. See Moving bytes between addons. - Frames do not cross process boundaries at frame-rate; media is fetched compressed / by handle when needed.
Where your code runs after edit
Editing packages/<addon>/src and rebuilding dist/ does nothing on the
live hub until you dominevo deploy that package (or install from the
registry). Framework packages travel inside @dominevo/server — those need a
server update.