Edit on val.town ↗

Get notified when someone stars your GitHub repo

GitHub doesn't email you when someone stars your repo, and the marketplace apps that do want an OAuth grant. This template is one cron-triggered val that polls the GitHub API for your repo's stargazers every hour, remembers who it has already seen in blob storage, and emails you whenever someone new shows up. It uses GitHub's public keyless API, so there is nothing to sign up for — no tokens, no env vars.

Stargazers come back from the API oldest-first, so the val checks the last two pages — enough to cover about 100 new stars between runs.

  1. Remix this template — click the Remix button in the top right corner.
  2. In config.ts, set REPO to your repo, e.g. "yourname/yourrepo".

The first run seeds the list of current stargazers without emailing; after that, each new star triggers an email to your Val Town account address.

Last updated