Esc
Documentation
On this page

A plugin is a TypeScript package that adds features to the whole workspace. It can add pages and navigation, put content into the interface, run background work, keep its own data, and sign people in. An adapter connects one kind of service. A plugin works across the installation. See choose adapter or plugin.

A plugin is trusted code. DSUI loads it into the server process, so it can do what the server can do. Only load plugins that you trust.

You write a plugin with the @northgraindata/dsui-plugin-sdk package. Pin its exact version. The package re-exports most builtin components, so pages look like adapter pages.

Start here#

What a plugin is made of#

PartWhat it doesPage
Pages and navigationAdd screens and links, and Settings entriesPages and navigation
Slots and overlaysAdd content to the host interfaceSlots and overlays
ResourcesOffer reads of dataResources
Actions and proceduresOffer validated operationsActions and procedures
JobsRun durable background workJobs
SignalsPublish and read eventsSignals and events
Stores and storageKeep JSON state and SQLite dataStores and storage
Host capabilitiesRead services and plugins, and check permissionsHost capabilities
ProvidersSign people in, and limit what they can doAuthentication and authorization
Secret providersRead credentials from a secret managerSecret providers

Test and share#

See test a plugin to check your plugin, and release a plugin to share it. DSUI loads a plugin from a GitHub repository, a directory, or an installed package. See plugins for how people load one.