Public
Email yourself when someone stars your GitHub repo
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

How do I get notified when someone stars my GitHub repo?

This val polls the GitHub API for your repo's stargazers on a schedule, remembers who it has already seen in blob storage, and emails you whenever someone new stars the repo. It uses GitHub's public keyless API, so there is nothing to sign up for — no tokens, no env vars.

Setup

  1. Remix this val.
  2. Edit config.ts and set REPO to your repo, e.g. "yourname/yourrepo".
  3. That's it. main.ts runs hourly. 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.

Files

  • main.ts — the cron job: fetch stargazers, diff against blob state, email new ones.
  • config.ts — the repo to watch.

Notes

  • The keyless GitHub API allows 60 requests per hour per IP, and this val uses up to 3 per run — the hourly schedule keeps usage low.
  • Each run checks the last two pages of stargazers, which covers up to about 100 new stars between runs.