FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo
charmaineGitHub-Stargazers-Alert
Public
Like
GitHub-Stargazers-Alert
Home
Code
4
README.md
C
cron.ts
github.ts
slack.ts
Branches
1
Pull requests
Remixes
History
Environment variables
1
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.
Sign up now
Code
/
Code
/
Search
README.md

GitHub Stargazers Alert

Turn public stars into private leads 🔎

Group 2 (8).png

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.

Why not use GitHub's webhooks?

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:

  1. You can't track repos you don't own
  2. You can't backfill stargazers from the past - which are often incredibly valuable to startups trying to find qualified leads

What this val does

This val does 2 things for you:

1) Track competitors' stargazers

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)

2) Get stargazer emails

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.

Try it!

  • 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

Next steps

  • 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
  • cron.ts
Code
README.md
C
cron.ts
github.tsslack.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.