GitHub-Stargazers-Alert
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.
Every GitHub star is intent:
- Prospects evaluating tools like yours
- Engineers solving the same problem
- Potential hires
This val turns public stars into qualified leads for you - even for repos you don’t own.
If you're only interested in getting notified about your own stargazers, you can set up a webhook in GitHub directly.
There are 2 major limitations to that:
- You can't track repos you don't own
- You can't backfill stargazers from the past - which are often incredibly valuable to startups trying to find qualified leads
This val does 2 things for you:
GitHub won’t let you set up webhooks for repos you don’t own, and the stargazers API lists results oldest -> newest (no starred_at
sorting). That means you can’t easily pull just the most recent stargazers.
So instead, we:
- Use blob storage to remember the last stargazer count
- Calculate the last page of the stargazers list
- Fetch only the most recent X users when the count changes
- Poll updates every 15 minutes (you can change this interval)
The GitHub stargazers API won’t give you email addresses. This val works around that by checking each stargazer’s past commits - commits are associated with an email address. This is technically public, but buried.
- Remix this val
- Add your
SLACK_WEBHOOK_URL
(Guide) - Add repos you want to track in
cron.ts
- Click
Run
to test - it'll auto-run every 15 minutes
- You can backfill stargazers and enrich them - which are often incredibly valuable when you're to find qualified leads!
- ENRICHMENT ENRICHMENT ENRICHMENT! Enrich stargazers with Clay to filter signal from noise
- Auto-create HubSpot/CRM records
- Post high signal ICP leads in #VIP-leads
Interested in more GTM workflows? Check out our Templates, or let me know what you want to see next :)
Cron