Plugin SDK
A ludex plugin is a Python package that exports one Provider instance from the ludex.providers entry-point group. The core never provides or endorses content: every store, metadata service and extra command comes from a plugin, and the bundled ones (steam, epic, heroic, local, shortcuts, rawg) use the same API as yours. Their source under packages/core/src/ludex/sources/ is a set of small, real examples.
| Page | What it covers |
|---|---|
| Quick start | A working plugin in two files, installed and imported |
| Capabilities | Every hook a provider can declare, with its signature and rules |
| Commands and views | Your own ludex <plugin> <command> commands, and pages in the GUI |
| Packaging and testing | Entry points, installing, versioning, offline tests, rules every plugin follows |
The model
- A
Providerdeclares what it can do by filling fields. At least one capability is required, and the core calls only what is declared.Provider.capabilitieslists them. - Capabilities:
owned(fetch),installed,search,metadata,match,cover,launch,install,playtime,running,actions,acquire,commands,views. - Only a provider with
fetchcan have accounts. Users add an account for it, thenludex importstores whatfetchreturns in the local SQLite library. - The core calls hooks from its own threads and connections. Your code never touches the database directly, except through the functions in
ludex.libraryfrom a command. - Network access belongs only in plugins, and only in the hooks that document it.
Compatibility
API_VERSIONis currently3. It changes only when an existing field changes meaning. Adding a capability field is compatible and does not change it, so a plugin written for an older core keeps working, and a plugin that uses a newer field needs a core that has it (the capabilities page names the version for the recent ones).- A provider whose
api_versiondiffers from the core's is skipped, with the reason shown byludex providers. - Do not declare
ludexas a dependency. If you must, declareludex-core; the copy that gets installed is ignored in favor of the running one. - A broken plugin never breaks ludex: it is skipped and reported, and the rest keep working.
Where the contract lives
The docstrings of ludex.plugins and ludex.library are the source of truth. These pages explain them; when they disagree, the docstrings win.