This is a code sample for how to create a plugin for SPR. Also see https://github.com/spr-networks/spr-sample-plugin for a plugin with a UI
Check the api docs for information about how plugins work
docker compose build
export SUPERDIR=/home/spr/super/ #path where super is
docker compose up
The plugin can export API extensions over a unix socket to the API.
- configure the plugin in the UI or
- Update the
configs/base/custom_compose_paths.json
to add the plugin. It is expected to be relative from thesuper/
directory, for exampleplugins/test/docker-comopse.yml
SPRBus is our event bus where the API can send events. dcThe sample includes commented code for how to use it.