FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
tmcw

tmcw

devstats

Public
Like
4
devstats
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
2
History
Environment variables
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
main.tsx
https://tmcw--cadf2a0025dc11f09d0b569c3dd06744.web.val.run
README.md

Developer Statistics

This val lets you post statistics from your GitHub Actions runs to build charts of change over time.

We do this by having a step at the end of our actions run like this:

- name: devstats run: | curl -X "POST" "https://tmcw-devstats.web.val.run/" \ -H 'Authorization: Bearer ${{ secrets.DEVSTATS_TOKEN }}' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $"{ \"name\": \"node_modules_kb\", \"value\": $(du -sk node_modules | awk '{print $1}') }"

And setting a DEVSTATS_TOKEN value, which could be any short random value, both in Val Town environment variables and as a secret in your GitHub Actions configuration.

Currently the name you attach to a statistic can be anything, and the value is expected to be a number.

HTTP
  • main.tsx
    tmcw--cadf2a0025dc11f09d0b569c3dd06744.web.val.run
Code
README.md
H
main.tsx
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.