Plugin files
A Volumio plugin is a folder of files. This page lists each file volumio-plugin init writes, then every field of the manifest, volumio-plugin.json.
Files
| File | Holds | Read by |
|---|---|---|
volumio-plugin.json | The manifest: id, version, type, function, permissions, system packages, hosts. See Manifest fields. | The SDK, the CI, moderators |
package.json | The npm dependencies and scripts | npm, and Volumio through the fields the build adds |
package-lock.json | The exact version of each dependency | npm, during the build |
index.js | The plugin: the class Volumio creates and calls. See index.js methods. | Volumio |
config.json | Each setting with its type and default value | Volumio, which copies it to the device the first time |
UIConfig.json | The settings page. See UIConfig.json. | getUIConfig in index.js |
i18n/strings_<language>.json | The text the user reads, one file per language. strings_en.json is required. | index.js and getUIConfig |
install.sh | A script Volumio runs as root when it installs the plugin | Volumio |
uninstall.sh | A script Volumio runs as root when it removes the plugin | Volumio |
test/ | Tests that run the plugin against a fake Volumio, test/volumio.js | npm test |
README.md | What the plugin does and how to set it up | Users, moderators |
LICENSE | The licence, MIT by default | Users, moderators |
AGENTS.md, VOLUMIO_API.md, CLAUDE.md | Instructions for coding agents. See Build with your AI agent. | Coding agents |
catalog.json | Placeholder tracks, in a music_service only | index.js of the template |
A plugin can also ship a requiredConf.json, with the same shape as config.json. Each time Volumio loads the plugin, it writes every value of requiredConf.json into the saved settings, over what the user saved.
package.json
package.json holds dependencies, devDependencies, scripts and main. main is index.js. The source never sets name, version or volumio_info: volumio-plugin package writes them, with description, license and engines.volumio, from volumio-plugin.json. Volumio reads those fields from the package.json in the package.
A plugin written before the SDK has only a package.json, with its metadata under volumio_info. It keeps working, and volumio-plugin check reads it.
install.sh and uninstall.sh
Volumio runs both scripts as root with sh, which is dash on Volumio. The shebang line is ignored.
- Use POSIX shell only. Start with
set -eu. Do not usepipefail, which dash does not have. - Install system packages only as
apt-get install -y <package>, each listed insystem.apt. - End
install.shwithecho "plugininstallend"anduninstall.shwithecho "pluginuninstallend". Volumio waits for these lines to know the script finished.
The template's install.sh:
#!/bin/sh
# Volumio runs this with sh (dash) as root: POSIX sh only, no pipefail.
set -eu
echo "plugininstallend"
Manifest fields
volumio-plugin.json is validated against the manifest schema. It takes only the fields below.
| Field | Required | Type | Value |
|---|---|---|---|
id | Yes | string | The plugin's folder name on the device. 2 to 64 letters, digits and underscores, starting with a letter or a digit. No hyphens. |
version | Yes | string | A semver version, such as 1.2.0 |
type | Yes | string | audio_interface, miscellanea, music_service, system_controller, system_hardware or user_interface |
function | Yes | string | An id from the function registry, or a new id in lowercase words joined by hyphens |
title | Yes | string | The name shown in the store and the UI. 1 to 80 characters. |
description | Yes | string | What the plugin does |
engines | Yes | object | volumio: a semver range, such as >=4.0.0 <5.0.0. api: "1", the plugin API Volumio 4 runs. |
arch | Yes | array | The architectures to build for: armhf, arm64, amd64. At least one. |
permissions | Yes | array | What the plugin does through Volumio. See Permissions. Can be empty. |
license | Yes | string | An SPDX identifier, such as MIT |
icon | No | string | A Font Awesome class, such as fa-puzzle-piece |
changelog | No | string | What changed in this version |
bootPriority | No | integer | The start group at boot, 1 to 100. Default: 100. |
network | No | array | Every host the plugin connects to, such as api.example.com or *.example.com |
system | No | object | What the plugin adds to the system. See System. |
settings | No | string | The path of a settings schema file, relative to the plugin folder |
test | No | object | credentials: the names of the test credentials the plugin needs. scenarios: the path of a test scenarios file. |
Permissions
| Permission | The plugin |
|---|---|
playback | Plays audio |
browse-source | Adds an entry to Browse |
broadcast | Sends messages to every open Volumio UI |
ui:toast | Shows toasts |
ui:modal | Opens modal windows |
aampp | Processes audio through AAMPP, Volumio's audio processing pipeline |
spectrum | Reads the audio spectrum |
plugin:<type>.<id> | Calls methods of another plugin, such as plugin:music_service.mpd |
Volumio does not enforce permissions. They tell users and moderators what the plugin does.
System
| Field | Type | Value |
|---|---|---|
system.apt | array | The Debian packages install.sh installs, each named in full |
system.services | array | The systemd units the plugin installs, such as my-daemon.service |
system.writes | array | The absolute paths outside the plugin folder that the plugin writes |
Example
The manifest volumio-plugin init writes for a music_service:
{
"id": "my_service",
"version": "0.1.0",
"type": "music_service",
"function": "web-radio",
"title": "My Service",
"description": "Plays My Service on Volumio",
"icon": "fa-puzzle-piece",
"engines": { "volumio": ">=4.0.0 <5.0.0", "api": "1" },
"arch": ["armhf", "amd64"],
"permissions": ["ui:toast", "browse-source", "playback"],
"license": "MIT"
}