Skip to content

How plugins work

A plugin is a small program that adds to nori, such as a service to play from or a sound. It runs in a sandbox: it can do only what it declared, and nori shows you that list before you install it. Plugins run on Android, the desktop app and the terminal app.

From a repo to your device
  • a service to play from, such as YouTube Music or SoundCloud
  • a sound in nori’s sound chain
  • controls for Bluetooth headphones
  • speakers on your network, listed beside your devices
  • a lyrics service, a scrobbler or notification buttons
  • rows in nori’s menus and sheets, in nori’s own look
  • values such as the crossfade or the playback speed

A plugin never writes your settings. It lays its values over them, and turning it off brings nori’s own values back.

A plugin is WebAssembly: code that runs inside nori, not on its own. It reaches only what nori hands it.

ResourceWhat the plugin may use
The internetOnly the addresses it names, through nori’s own connection
Your networkOnly when it asks for devices on your network
BluetoothOnly the devices it names
FilesNone of yours: a small store of its own, and a cache it declared
Your serverOnly with permission, and never your password

nori signs a plugin’s requests to your server itself. A plugin that runs too long or crashes fails only that call, and nori starts it fresh for the next one.

nori shows What it may do: everything the plugin declared, from the addresses it reaches to the settings it changes. It refuses a package that does not match the checksum its repo lists. It also refuses one built for another version of nori’s plugin interface, or one that changes a setting nori does not have.

A plugin repo is a list file that anyone can host. nori’s own repo is always there. Updates come at most once a day, each plugin from the repo it came from.

The first signed version you install pins its author’s key. After that, nori installs only versions signed with that key. A plugin you install from a file has no signature.

With no plugin on, nothing of the plugin system runs: nori does not even start its plugin engine. A plugin’s timers wait while music plays with the screen off, unless it is casting. A plugin that changes the sound needs the samples, so it pauses offload.

Plugins lists nori’s plugins, how to install them and how to turn them off. To write one, see Plugins in the developer docs.