MCPcopy Index your code
hub / github.com/alexellis/sponsors-functions

github.com/alexellis/sponsors-functions @0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.2 ↗ · + Follow
0 symbols 0 edges 1 files 0 documented · 0% updated 14mo ago0.0.2 · 2025-04-15★ 33
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sponsors-functions

GitHub Sponsors webhook receiver and Discord forwarder, written in Node.js

License: MIT OpenFaaS

This function is hosted on faasd.

Subscribe to my Insiders Updates by Sponsoring me via GitHub:

Usage

This function receives and validates a webhook from GitHub Sponsors using the node12 template from OpenFaaS.

Each message is verified using the crypto library and HMAC.

Messages that pass HMAC are then sent over to a secret webhook URL and appear in Discord

It is triggered by any event from GitHub Sponsors

There's a switch statement on each event, which sends send a "pretty" string such as Person X just sponsored you, or Person X cancelled their sponsorship including an appropriate emoticon for the action taken by the user.

Example

Deployment

You can pick between self-hosted OpenFaaS or OpenFaaS Cloud.

With OpenFaaS Cloud

```sh export WEBHOOK="" export SLACK=""

faas-cli cloud seal --name alexellis-sponsors \ --literal webhook-secret=$WEBHOOK \ --literal slack-url=$SLACK ```

  • Fire a test event from your sponsors page

With OpenFaaS or faasd

You can also host a simpler version of OpenFaaS and deploy the function there:

See also: SponsorshipEvent

Core symbols most depended-on inside this repo

Shape

For agents

$ claude mcp add sponsors-functions \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page