FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo

charmaine

GitHub-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
/
README.md
Code
/
README.md
Search
7/31/2025
Viewing readonly version of main branch: v183
View latest version
README.md

GitHub Stargazers Alert

Turn public stars into private leads 🔎

Find out who's showing intent in your space - track competitors’ GitHub repo stargazers and get notified in Slack.

Group 1 (14).png

Why do we care about stargazers?

GitHub repo stargazers are one of the most reliable public intent signals in developer communities:

It's an especially great place to find:

  1. Prospective customers evaluating solutions
  2. Devs solving similar problems
  3. Potential hires!

And unlike most intent signals, stars are free, public and can be captured in real-time.

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 backfill stargazers from the past - which are often incredibly valuable to startups trying to find qualified leads
  2. You can't track repos you don't own

What this val does

This val does 2 things for you:

  1. 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, which is public but buried.

  2. 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
    • Run this val every 15 minutes via cron so you have the latest and greatest :)

This is a great way to get notified about new stargazers across many repos - regardless of whether you own them or not. You can then optionally push these into Slack, Clay, or your CRM.

Try it

  • Remix this val, and add your SLACK_WEBHOOK_URL to your environment variables on the left sidebar (Guide)
  • Configure the repos you want to track in cron.ts. Click Run, or 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!
  • Enrich new stargazers with Clay to auto-score ICP leads
  • Auto-create HubSpot/CRM records
  • Alert high signal leads in #VIP-leads (More guides coming soon.)
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.