{"id":15651165,"url":"https://github.com/alexellis/sponsors-functions","last_synced_at":"2026-03-07T06:03:16.874Z","repository":{"id":43968332,"uuid":"239129711","full_name":"alexellis/sponsors-functions","owner":"alexellis","description":"GitHub Sponsors webhook receiver and Discord forwarder","archived":false,"fork":false,"pushed_at":"2025-04-15T12:04:25.000Z","size":158,"stargazers_count":33,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T17:51:11.052Z","etag":null,"topics":["github","hmac","nodejs","openfaas","sponsors","webhooks"],"latest_commit_sha":null,"homepage":"https://github.com/sponsors/alexellis/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexellis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["alexellis"]}},"created_at":"2020-02-08T12:35:11.000Z","updated_at":"2025-04-15T12:04:08.000Z","dependencies_parsed_at":"2024-10-03T12:38:29.534Z","dependency_job_id":"7b975f5d-337c-4983-850d-e83cab327ac7","html_url":"https://github.com/alexellis/sponsors-functions","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alexellis/sponsors-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexellis%2Fsponsors-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexellis%2Fsponsors-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexellis%2Fsponsors-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexellis%2Fsponsors-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexellis","download_url":"https://codeload.github.com/alexellis/sponsors-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexellis%2Fsponsors-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","hmac","nodejs","openfaas","sponsors","webhooks"],"created_at":"2024-10-03T12:37:16.577Z","updated_at":"2026-03-07T06:03:16.856Z","avatar_url":"https://github.com/alexellis.png","language":"JavaScript","funding_links":["https://github.com/sponsors/alexellis","https://github.com/sponsors/alexellis/","https://github.com/sponsors"],"categories":[],"sub_categories":[],"readme":"# sponsors-functions\n\nGitHub Sponsors webhook receiver and Discord forwarder, written in Node.js\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![OpenFaaS](https://img.shields.io/badge/openfaas-serverless-blue.svg)](https://www.openfaas.com)\n\nThis function is hosted on [faasd](https://github.com/openfaas/faasd).\n\nSubscribe to my Insiders Updates by Sponsoring me via GitHub:\n\n* 🐳 [Sponsor now](https://github.com/sponsors/alexellis/) \n* ⭐️ Show support and [Star OpenFaaS](https://github.com/openfaas/faas)\n\n## Usage\n\nThis function receives and validates a webhook from [GitHub Sponsors](https://github.com/sponsors) using the [node12 template](https://github.com/openfaas/templates/) from [OpenFaaS](https://github.com/openfaas/).\n\nEach message is verified using the [crypto library](https://nodejs.org/api/crypto.html) and HMAC.\n\nMessages that pass HMAC are then sent over to a secret webhook URL and appear in Discord\n\nIt is triggered by any event from [GitHub Sponsors](https://github.com/sponsors/alexellis)\n\nThere'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.\n\n![Example](https://user-images.githubusercontent.com/6358735/74099171-b4a17580-4b18-11ea-8fd9-7139b6a4a05c.png)\n\n## Deployment\n\nYou can pick between [self-hosted OpenFaaS](https://github.com/openfaas/faas) or [OpenFaaS Cloud](https://github.com/openfaas/openfaas-cloud).\n\n### With OpenFaaS Cloud\n\n* Fork the repo\n\n* [Add OpenFaaS Cloud integration to your repo, the community cluster](https://github.com/openfaas/community-cluster) is free to use for hosting.\n\n* Create a channel and add an [incoming webhook integration on Slack](https://api.slack.com/messaging/webhooks)\n\n* Create the webhook on GitHub for your URL and enter a webhook secret\n\n* Seal your own secrets, change `alexellis` for your own username.\n\n ```sh\n export WEBHOOK=\"\"\n export SLACK=\"\"\n\n faas-cli cloud seal --name alexellis-sponsors \\\n  --literal webhook-secret=$WEBHOOK \\\n  --literal slack-url=$SLACK\n ```\n\n* Fire a test event from your sponsors page\n\n### With OpenFaaS or faasd\n\nYou can also host a simpler version of OpenFaaS and deploy the function there:\n\n* [OpenFaaS on Kubernetes](https://docs.openfaas.com/deployment/#kubernetes-recommended-for-production-and-for-work)\n\n* [OpenFaaS with containerd (faasd)](https://docs.openfaas.com/deployment/#faasd-with-containerd)\n\nSee also: [SponsorshipEvent](https://developer.github.com/v3/activity/events/types/#sponsorshipevent)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexellis%2Fsponsors-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexellis%2Fsponsors-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexellis%2Fsponsors-functions/lists"}