FastHand Studio · Product

FastyDiscord

Work happens on GitHub and conversation happens in Discord, and the two never meet. FastyDiscord closes that gap: it watches your repositories and posts every push, pull request, release and issue into a Discord channel — plus a weekly report you can read in one minute.

It runs entirely serverlessly on Vercel and Supabase, reads private repositories through a GitHub App, and never needs a bot process left running.

TypeScript · Vercel · Supabase · GitHub App · Discord

What it does

Four guarantees, no bot server

Every GitHub event either reaches your channel once or is provably dropped. Here is what the code promises, one card each.

Every event, public and private

Pushes, pull requests, releases, issues and repository changes are tracked across every repository your GitHub App installation can see — private ones included.

Plain language: A GitHub App is a bot identity you install on your own repos. It asks for scoped, read-only permissions, so it can read activity without ever holding your personal password.

GitHub App · read-only

No process to keep alive

There is no always-on bot sitting on a server. GitHub posts events to a Vercel function, and Discord calls the same app when someone types a slash command.

Plain language: Discord's HTTP interactions mean the bot only runs when a command is used — no permanent connection to keep open, no VPS to babysit.

Vercel Functions · HTTP interactions

Nothing gets posted twice

Every GitHub delivery id is recorded, and selected events carry a unique external id. Retries and duplicate webhooks are detected and dropped before they reach your channel.

Plain language: Idempotent: handling the same event a second time produces no extra output, because the app recognises the delivery id it already processed.

webhook_deliveries · dedup

A weekly report, every Friday

Activity totals, per-repository summaries, top contributors, code-change stats and a GitHub-style contribution heatmap land in a dedicated channel at 07:05 UTC (1:05 PM Bangladesh time).

Plain language: pg_cron is Supabase's built-in scheduler. Using it (with pg_net) triggers the report at an exact minute, avoiding the loose execution window of Vercel Hobby Cron.

5 7 * * 5 · pg_cron option

  1. 1GitHub sends a signed webhookA push, pull request, release or issue.
  2. 2A serverless function relays itNo bot process runs; the function wakes for each event.
  3. 3Discord shows the messageIt arrives whether or not anyone is at a desk.
Figure 1 — the arrangement this product assumes: events enter the relay as signed webhooks, no process waits on them, and the channel gets the message whether the desk is occupied or not.

See the flow →

How it works

One path: GitHub event to Discord message

Follow a single push from the moment GitHub sends it to the moment it appears in your channel. The same request travels through five small, inspectable steps.

FastyDiscord event flowGitHub sends an event to the webhook endpoint; the endpoint verifies the signature, drops duplicates, stores the event in Supabase, and posts the update to Discord.GitHubPOST /api/github/webhookDedupe + storeSupabase PostgreSQLDiscord channelpush · pull request · release · issueverify X-Hub-Signature-256webhook_deliveries lookupactivity rows · weekly aggregatesupdate webhook · weekly webhook

Figure 2 — A GitHub event enters at the top, passes signature checks and duplicate detection, is stored in Supabase, and leaves as a Discord message.

The same flow, in words

  1. 1GitHub sends an eventA push, pull request, release or issue fires a webhook to your deployed Vercel domain.
  2. 2The signature is checkedThe endpoint recomputes X-Hub-Signature-256 with your webhook secret and rejects anything that doesn't match.
  3. 3Duplicates are droppedThe delivery id is looked up in the webhook_deliveries table; if it is already there, processing stops.
  4. 4The event is storedActivity rows land in Supabase PostgreSQL, which is also what the weekly report aggregates.
  5. 5Discord receives the updateA formatted message is posted to your activity channel; slash command answers come back through the interactions endpoint.

Read the endpoints →

How to use it

Five endpoints, five slash commands

The whole surface area is this: a handful of HTTP endpoints for GitHub, Discord and the scheduler, and the commands your team types in Discord.

HTTP endpoints

METHODPATHWHAT IT DOES
POST/api/github/webhookReceives every GitHub event. Verified with X-Hub-Signature-256.
POST/api/github/syncRebuilds the repository catalog. Protected by Bearer CRON_SECRET.
POST/api/discord/interactionsHandles slash commands. Verified with Ed25519 signatures.
GET/POST/api/cron/weeklyGenerates and publishes the weekly report.
GET/api/healthHealth check.

Trigger the initial sync

After your first deploy, one authenticated call populates the repository catalog. Replace YOUR-DOMAIN and YOUR_SECRET with your Vercel domain and the CRON_SECRET you set.

sync — first run only
curl -X POST "https://YOUR-DOMAIN.vercel.app/api/github/sync" \
  -H "Authorization: Bearer YOUR_SECRET"

Discord slash commands

  • /stats

    Development activity totals over the tracked repositories.

  • /contributors

    Who contributed, and how much.

  • /repositories

    Browse the repositories currently being tracked.

  • /weekly

    The weekly development report, on demand.

  • /repo

    Activity for one specific repository.

See the weekly report →

The weekly report

Every Friday at 07:05 UTC

One message a week tells the whole team what happened: totals, per-repository summaries, top contributors, code-change stats and a contribution heatmap — with an optional AI summary on top.

What is in it

Activity totals, repository-level summaries, top contributors, lines changed and a GitHub-style heatmap of the week.

Optional AI summary

Point it at an OpenAI-compatible, Anthropic or Cloudflare Workers AI endpoint and the report gains a plain-language summary. If the AI call fails, the report still publishes with a fallback message.

Runs exactly once

The report is idempotent on the week start date, so Vercel Cron and the optional pg_cron job can both be active without producing duplicates.

Plain language: idempotent means running the same job twice is safe — the second run recognises the week is already reported and stops.

How to get it →

How to get it

Clone it, or download the ZIP

FastyDiscord is designed to be deployed by you, into your own Vercel and Supabase accounts, with your own GitHub App and Discord application.

Grab the code

Deploy in five steps

  1. 1Create the databaseMake a Supabase project and run supabase/migrations/0001_init.sql.
  2. 2Create the GitHub AppRead-only access to Contents, Issues, Metadata and Pull Requests; subscribe to the events you want. Set the webhook URL to https://YOUR-DOMAIN.vercel.app/api/github/webhook.
  3. 3Create the Discord applicationSet the Interactions Endpoint URL to https://YOUR-DOMAIN.vercel.app/api/discord/interactions and make two channel webhooks — one for activity, one for the weekly report.
  4. 4Register the slash commandsCopy .env.example to .env.local, fill it in, then run npx tsx scripts/register-discord-commands.ts.
  5. 5Deploy and syncImport the repo into Vercel, set the environment variables, deploy, then POST to /api/github/sync once to populate the catalog. Later installs refresh it automatically.

Environment variables

The full list lives in .env.example in the repository. Every secret below is a placeholder — generate real values in your own accounts and never commit them.

.env.local — placeholders only
SUPABASE_URL=https://YOUR-PROJECT.supabase.co
SUPABASE_SERVICE_ROLE_KEY=YOUR_SECRET
GITHUB_APP_ID=12345
GITHUB_APP_PRIVATE_KEY=YOUR_SECRET
GITHUB_WEBHOOK_SECRET=YOUR_SECRET
DISCORD_PUBLIC_KEY=YOUR_SECRET
DISCORD_APPLICATION_ID=YOUR_SECRET
DISCORD_BOT_TOKEN=YOUR_SECRET
DISCORD_UPDATES_WEBHOOK_URL=YOUR_SECRET
DISCORD_WEEKLY_WEBHOOK_URL=YOUR_SECRET
CRON_SECRET=YOUR_SECRET

AI keys are optional and only needed for weekly AI summaries. GITHUB_INSTALLATION_IDS is optional and restricts processing to specific installations.

Stack and licence →

Stack and licence

Serverless from end to end

Small, boring, inspectable pieces — and one honest caveat about the licence.

Language
TypeScript throughout — application logic, webhook handling, formatting, stats.
Runtime
Vercel Serverless Functions. vercel.json schedules the weekly run at 5 7 * * 5.
Data
Supabase PostgreSQL: activity records, delivery ids, weekly reports; migrations in supabase/migrations.
Integrations
GitHub App (read-only) for events; Discord webhooks and HTTP interactions for delivery.

Licence: the repository does not publish a licence file yet, so no licence is claimed here. Watch the README for an update before you reuse the code commercially.