tj / sponsors-api

GitHub Sponsor avatar listings in your Readme.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sponsors API

Sponsors API is a GitHub Sponsors server for displaying sponsor avatars in your project Readme. It looks like this:

Deploying

Deploy to host which supports HTTP, for example using Apex Up or Heroku. The following environment variables are supported:

  • GITHUB_TOKEN the GitHub API token (no scopes are required)
  • PORT the server port (defaults to 3000)
  • URL the url to your endpoint such as "https://sponsors.myhost.com" (optional)

Usage

Visit the /sponsor/markdown path for the markdown to copy/paste. Sponsors are cached for an hour by default, tweak with the -cache-ttl flag.

About

GitHub Sponsor avatar listings in your Readme.md

License:MIT License


Languages

Language:Go 100.0%