Sponsors API is a GitHub Sponsors server for displaying your current sponsor avatars in your project Readme. It looks like this:
We build and publish a minimal docker image via GitHub Actions. See Packages docker pull ghcr.io/majodev/sponsors-api:<tag>
.
The following environment variables are supported:
GITHUB_TOKEN
the (classic!) GitHub API token (the'read:org'
scope is required)PORT
the server port (defaults to3000
)URL
the url to your endpoint such ashttps://sponsors.mranftl.com
(optional)CACHE_TTL
the cache TTL (go duration, sponsors are cached for an hour by default (1h
))
Visit the /markdown
path for the markdown to copy/paste into readmes.
{
"login": "your_username",
"sponsors": [
{
"login": "sponsor_username",
"url": "sponsor_picture.png",
"type": "User" // or "Organization"
},
[...]
]
}
List in the following format:
<type> <login> <url>
Serves a minimal HTML with sponsors images + links to the sponsor profiles. Mostly useful for debugging.