Esc
Documentation
On this page

Adapters and plugins are built from the same few blocks: resources, actions, pages, stores, jobs, signals, and components. The names match in both SDKs, but they run in different places and follow different rules. This page explains each block once and shows where the SDKs differ.

What each block is#

  • Resource: a read of data, with an input and a refresh policy. Pages and components bind to a resource to show its data
  • Action: a command that changes something, with a validated input. Running one is a deliberate act that DSUI can check against the caller’s permissions
  • Page: a route that composes components into a screen
  • Store: state that a page, an adapter, or a plugin keeps, optionally across restarts
  • Job: background work that runs on a schedule or in response to events
  • Signal: a typed event with a payload. Signals go to DSUI’s event log, which people and plugins can read
  • Component: a reusable piece of interface. DSUI ships 33 builtin components, and you can add your own

Keep reads in resources and changes in actions, so DSUI can cache, refresh, and authorize them correctly.

Where the SDKs differ#

BlockIn an adapterIn a plugin
ResourcedefineResource. Bound to a servicedefineResource, read through the host
ActiondefineAction. Runs against one servicedefineAction, plus procedures that carry their own permission
PagedefinePage. Rendered for each servicedefinePage, with navigation entries, slots, and overlays
StoredefineStore, scoped to the adapter or a pagedefineStore, plus private SQLite storage and migrations
JobdefineJob. Runs once for every configured servicedefineJob, with durable queueing and onSignals triggers
SignaldefineSignal. Emitted from jobs and actionsRegistered in the plugin, and read from the event log
ComponentdefineComponentdefineComponent

Some blocks exist in only one SDK:

  • Adapters only: connection methods, health checks (healthReport, reachabilityCheck, scoreChecks), and HTTP routes (defineRoute)
  • Plugins only: configuration, lifecycle hooks, slots and overlays, authentication and authorization, and host capabilities for reading services and other plugins

Where to read more#