Develop
Hooks into existing surfaces
How plugins attach to Admin pages, device settings UI, notifiers, log destinations, pipeline stages, and storage — without forking the kernel.
Most plugins do not invent a new shell. They hook a collection capability or a well-known contribution surface.
| Goal | Hook |
|---|---|
| Sidebar Admin page | addon-pages-source (listPages) → /addon/<path> |
| Device settings / live cards | deviceConfig (derived UI — no hand-written contribution APIs; see Add a capability) |
| Notification delivery | Implement a notifier / notificationOutput target provider |
| Log sink | log-destination provider |
| Camera provider | Device provider + adoption + stream caps |
| Pipeline analytics consumer | Subscribe via caps / events; never import pipeline packages |
| Storage location | Storage provider + location mode rules |
| OSD / benchmark / model studio | Own addon + Admin page under Detection |
Rules that keep hooks honest
- Cap mounts never compose addon output with backend state in the router.
- Per-device aggregation walks
getBindings(deviceId)— never the global cap list (names are shared across vendors). - Resolve
(cap, device)withgetProviderForDevice, not by branching on bindingkind.
A device page section comes only from a capability bound to that device.
A type: 'widget' field returned from an addon-level settings method does not
appear on the device page. Hang the widget off a capability: a generic one the
framework derives (deviceConfig), or one your addon owns and answers itself.
A cloneable single addon and a bundle that hook log-destination and
device-provider are in Addon examples.
Then
- Examples from core addons
- Tools — product surfaces those addons expose