Plugin SDK
Build a plugin that adds pages, navigation, background jobs, settings, and sign-in to a whole DSUI installation.
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#
Build your first plugin
Write, load, and run a small plugin, with a page and a procedure.
Choose adapter or plugin
Check that a plugin is the right kind of extension.
What a plugin is made of#
| Part | What it does | Page |
|---|---|---|
| Pages and navigation | Add screens and links, and Settings entries | Pages and navigation |
| Slots and overlays | Add content to the host interface | Slots and overlays |
| Resources | Offer reads of data | Resources |
| Actions and procedures | Offer validated operations | Actions and procedures |
| Jobs | Run durable background work | Jobs |
| Signals | Publish and read events | Signals and events |
| Stores and storage | Keep JSON state and SQLite data | Stores and storage |
| Host capabilities | Read services and plugins, and check permissions | Host capabilities |
| Providers | Sign people in, and limit what they can do | Authentication and authorization |
| Secret providers | Read credentials from a secret manager | Secret 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.