Repository navigation
Plugins
A plugin is a YAML file that tells the engine how to log into a tracker, which requests to make, how to read the stats from the responses, and what to show on the tracker card. Every integration uses exactly one plugin, by its pluginId.
- Managing plugins: editing, testing, creating and deleting plugins from the UI, and the life of an override
- Plugin updates: how the official plugins are downloaded on every start
- Writing a plugin: how to tell which kind of site a tracker is (UNIT3D, its own JSON API or plain HTML) and how to read its stats
- Plugin reference: every key of the plugin YAML, plugin bases and the version rules
| Kind | Badge | Where it comes from | Stored in | Changed by |
|---|---|---|---|---|
| Official | Official v1.2.0 |
The trackarr-plugins repository (the files in its plugins/ folder) |
<Data__Directory>/plugins/official/ |
Only the startup download |
| Override | Edited (base v1.1.0) |
Created when you save changes to an official plugin; it records the official version it was based on | <Data__Directory>/plugins/overrides/ |
Only you, from the UI. The download never touches it |
| Custom | Custom v1.0.0 |
Created with New Plugin, with an id that is not an official id | <Data__Directory>/plugins/custom/ |
Only you, from the UI. The download never touches it |
When an id has more than one file, the override wins over the custom plugin, which wins over the official one. A state.json file next to the three folders records the installed official versions, each override's base, and the last download result. The app reads the plugins from disk on every use, so a saved plugin takes effect immediately.
Other badges:
- Outdated: your override is based on an older official version than the one installed. A banner on every page links to the review screen, and it cannot be dismissed.
-
Orphan: your override's official plugin was removed from
trackarr-plugins. The override keeps working. -
Deprecated: an official plugin was removed from
trackarr-plugins, but an integration still uses it, so the cached copy keeps working. - Incompatible: a newer official version needs a newer trackarr. The app keeps the last compatible version and tells you which trackarr version to update to.
- A custom plugin whose id was later published as an official plugin keeps working and hides the official one; a notice explains it.
A plugin file has these top-level keys:
-
pluginId,displayName: the id integrations use (it must equal the file name) and the label shown in the UI -
version,schemaVersion,changelog: the plugin's semver version, the YAML format it uses (1, or2withextends; required in custom plugins) and its release notes -
extends: a plugin base whose keys the plugin inherits, such asunit3d(trackarr 0.5.3 and later) -
fields: form inputs required to configure an integration -
customFields: optional tracker-specific inputs beyond the shared integration fields -
http: shared base URL and headers -
steps: HTTP requests and extraction rules -
mapping: how extracted values map into trackarr's stats -
dashboard: which stats should be shown on the UI card, including optionalbyteUnitSystemfor binary vs decimal byte formatting
The plugin editor checks the plugin structure as well as the YAML syntax. It completes field names and enum values, offers snippets for common blocks, and refuses to save a malformed or invalid plugin. Writing a plugin explains how to read each kind of tracker; every key is in the Plugin reference.
To validate plugin files outside the app, with the same rules the API applies on save (schema, pluginId format, engine-owned fields, version and schemaVersion), run from the repository root:
dotnet run --project backend/tools/TrackerStats.PluginValidator -- path/to/*.yamlIt prints one line per file and exits non-zero when any file is invalid. Each file name must equal its pluginId.