Skip to content

How plugins work ​

Every feature in ReliaForge is a plugin. This page explains the four rules that govern how plugins load, talk to each other, expose UIs, and read configuration.

Anatomy of a plugin ​

A plugin is either a local directory or an installed Python package containing a manifest.json file. The manifest tells ReliaForge:

  • its unique id, SemVer version, and api_version ("v1");
  • the Python class to load (entrypoint, e.g. "plugin:Plugin");
  • which Python services it exports (capabilities) and which peer plugins it depends on (dependencies);
  • whether it ships a browser UI bundle (frontend.ui_mode = "esm").

Run state vs upstream health ​

The backend starts plugins in dependency order and stops them cleanly on shutdown. The console shows two distinct statuses so you can tell a broken plugin apart from a downed upstream target:

FieldMeaning
Run staterunning, stopped, or error (tracks the plugin inside the Python process)
Healthhealthy or degraded (reports whether the upstream target such as Proxmox or Argo CD is reachable)

API routes and optional console views ​

Every running plugin mounts its FastAPI router under /api/v1/plugins/{plugin_id}.

  • API-only plugins work immediately via curl, CI scripts, or bots, and appear in the console's Plugins page for status and start/stop control.
  • Full-stack plugins also set frontend.ui_mode = "esm" in manifest.json. The backend serves their compiled JS/CSS from /api/v1/plugins/{plugin_id}/ui/*, and the console mounts their sidebar routes and overview widgets automatically.

Sharing Python services across plugins ​

Plugins running in the same backend process can share typed Python objects directly without extra HTTP hops. For example, ops_audit registers ops_audit.writer and ops_audit.reader; sibling plugins (proxmox, kubernetes, gitops_argocd, observability) declare ops_audit as an "optional": true dependency and call context.try_get_service(...) so they still start cleanly if auditing is disabled.

Configuration and secrets ​

Plugin configuration comes strictly from environment variables prefixed with RELIAFORGE_<PLUGIN_ID>_ (validated by each plugin's PluginSettings Pydantic model).

  • Control which plugins load with RELIAFORGE_PLUGIN_PATHS, RELIAFORGE_PLUGIN_ENTRY_POINTS, RELIAFORGE_ENABLED_PLUGINS, and RELIAFORGE_DISABLED_PLUGINS.
  • The console displays field names, types, and non-secret defaults only. Live values and secrets never leave the backend. See the backend's plugin settings guide for code examples.

Released under the MIT License.