This is a super simple API that can create badges for your Flarum extensions READMEs.
This is hosted on my home internet on a Raspberry Pi, so 100% uptime is not guaranteed (though it should come pretty close!).
If you want to suggest a new badge, open an issue and explain clearly what the badge could contain/show.
The documentation in this README is not exhaustive. Please read the documentation found below for all possible badges, options, and information.
This badge shows whether your extension is compatible with the latest version of Flarum.
Make a call to https://flarum-badge-api.davwheat.dev/v1/compat-latest/<vendor/package>
(replacing <vendor/package>
with your extension's package name).
Example badge for FoF/Formatting
:
Normal people don't need to do this. This is for development purposes only.
- Create a
.env
file:
# .env
EXTIVERSE_TOKEN=<your Extiverse API token>
BASE_URL=<URL to the API root (no trailing slash>
PORT=<optional port to run on; defaults to 3000>
- Install deps && start the Express server:
yarn
# In one terminal...
yarn dev
# In another terminal...
yarn start
npm i -g pm2
yarn build
yarn pm2:watch