FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
kaleidawave
kaleidawaveGitHubStarsToDiscord
Unlisted
Like
1
GitHubStarsToDiscord
Home
Code
2
README.md
C
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Sends a message to a Discord channel at an interval with a running count of the number of GitHub stars a GitHub repository has.

See the Discord documentation for generating a webhook address here. Remember to store it as a secret environment variable (named here as DISCORD_WEBHOOK_URL) so that others cannot find your URL and post unwanted messages to your channel!

See the documentation on scheduling and https://crontab.guru/ to configure how often the updates are posted.

image.png

Extension ideas 💡

  • Record the difference in stars (using persistent storage to store data between runs)
  • Print the value of the open_issues_count field to track the number of issues on the GitHub repository
  • Look at the GitHub events API and for example print new and closed pull requests in the span of a week
Cron
  • main.tsx
Code
README.md
C
main.tsx
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.