Developers Guide
AniBridge can load additional library and list providers as Python modules letting you extend the supported providers beyond those built-in.
This page covers how to install and configure third-party provider classes, as well as direct developers to resources for building their own.
Install a provider class
- Install the package into the same environment as AniBridge:
pip install <pypi-package-name> # git+https://github.com/<user>/anibridge-<provider>-provider.git # You can also install from Git
- Register the module in
config.yamlviaprovider_classes.
- Set
library_provider/list_providerto the provider namespace exposed by the module (e.g.,plex,anilist).
library_provider: xyz # Depends on what the implementation defines the namespace as
library_provider_config:
xyz:
config_key: config_value
Build your own provider
- Start by browsing the existing provider implementations: Check out the anibridge/anibridge-plex-provider and anibridge/anibridge-anilist-provider repositories for real implementation examples.
- Use the SDKs: Base classes live in anibridge-library-base and anibridge-list-base.
- Pick a namespace: Define a
NAMESPACEconstant in your provider class. This is the value that users set in their profile'slibrary_provider/list_providerfield. It should be all lowercase and unique. - Expose configuration: Accept a
config: dict | Nonein your provider__init__and document the keys (host URL, tokens, library filters, etc.). - Ship to users: Publish to PyPI or provide a Git URL. Users load the module via
provider_classesand set the namespace in their profiles.
Tip
For more details on implementing providers, see the API references: