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.
What can a plugin add?
Section titled “What can a plugin add?”- 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.
What can a plugin reach?
Section titled “What can a plugin reach?”A plugin is WebAssembly: code that runs inside nori, not on its own. It reaches only what nori hands it.
| Resource | What the plugin may use |
|---|---|
| The internet | Only the addresses it names, through nori’s own connection |
| Your network | Only when it asks for devices on your network |
| Bluetooth | Only the devices it names |
| Files | None of yours: a small store of its own, and a cache it declared |
| Your server | Only 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.
What does nori check before it installs?
Section titled “What does nori check before it installs?”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.
How do updates work?
Section titled “How do updates work?”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.
Do plugins use more battery?
Section titled “Do plugins use more battery?”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.