INTRODUCTION > INTRODUCTION
manifest.json holds the plugin's metadata. It is optional for a sideloaded plugin, but you need it for:
- version tracking (Installed / Update badges in catalogs and Plugin Hub),
- choosing where the browser UI appears (mount),
- publishing to Plugin Hub.
{
"name": "my-plugin",
"title": "My Plugin",
"description": "One line that shows under the title on the reader.",
"author": "Your Name",
"version": "1.2.0",
"mount": "settings",
"files": ["manifest.json", "plugin.js", "device.json", "README.md"]
}
FIELDS THE FIRMWARE READS > OVERVIEW
- title
Used by: reader list, web UI
Default: folder name
Meaning: Display name.
- description
Used by: reader list
Default: none
Meaning: One-line summary under the title on the reader.
- version
Used by: web UI, catalog badges
Default: none
Meaning: MAJOR.MINOR.PATCH, digits only (1.2.0, not v1.2 or 1.2.0-beta).
- author
Used by: web UI info card
Default: none
Meaning: Shown on the /plugins page.
- mount
Used by: web UI
Default: "settings"
Meaning: "settings": plugin.js renders on /plugins. "files": renders on the File Manager /files.
Only string values count. A number such as "version": 1 is ignored.
FIELDS THE FIRMWARE READS > PRECEDENCE WITH DEVICE.JSON
device.json may also contain title, description, version, author and mount. When both files have a field, device.json wins, both on the reader and on the web page.
One exception: version tracking (the "Update available" badge) reads version only from manifest.json. A plugin without a manifest.json version always looks outdated to a catalog. Keep the two versions in sync, or only put the version in manifest.json.
FIELDS THE FIRMWARE READS > VERSION COMPARISON
Versions are compared numerically, part by part: 1.10.0 is newer than 1.9.3.
- A catalog version that is not valid X.Y.Z is never offered as an update.
- An installed copy with a missing or invalid version is always offered the update.
- An older catalog version never offers a downgrade.
FIELDS ONLY PLUGIN HUB READS > FIELDS ONLY PLUGIN HUB READS
- name: Plugin id. Must equal the folder name (lowercase, digits, hyphens).
- files: Every runtime file to install, relative to the plugin folder. Nested paths like lib/api.js are allowed.
- compatibility: { "firmware_family": ["crosspoint"], "plugin_api_min": 1, "requires": ["catalog.lists"] }. Plugin Hub uses it to hide plugins the firmware cannot run.
The firmware ignores these fields. See Publishing.
SIZE LIMITS > SIZE LIMITS
The web server reads up to 64 KB of manifest.json, but the reader's catalog reads only 8 KB. Keep it small.