From a0a2d31e570b56921fbb90a1250a6c3e45338335 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Jul 2026 08:53:38 +0000 Subject: [PATCH 01/10] feat: add GitHub release download stats page Add a grev-inspired download statistics page at /usage/downloads/ for jbangdev/jbang, fetched client-side from the GitHub Releases API. - Separates version.txt (the update-check asset) into its own chart so its very high count no longer skews real installer download figures. - Plots releases on a real time x-axis (published_at) instead of evenly spaced release tags, so bursts and quiet periods read honestly. - KPI tiles, per-release table, pre-release and log-scale toggles, and localStorage caching to stay within the GitHub API rate limit. - Uses the validated data-viz palette with light/dark support. - Link to the new page from the usage and leaderboard pages. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_015XaDPKfY8vpnfgR9jo7L7Y --- content/download-stats.html | 483 ++++++++++++++++++++++++++++++++++++ content/leaderboard.html | 1 + content/usage.html | 3 +- 3 files changed, 486 insertions(+), 1 deletion(-) create mode 100644 content/download-stats.html diff --git a/content/download-stats.html b/content/download-stats.html new file mode 100644 index 00000000..f25b1169 --- /dev/null +++ b/content/download-stats.html @@ -0,0 +1,483 @@ +--- +title: JBang Download Stats +tagline: GitHub release download statistics for jbangdev/jbang +link: /usage/downloads/ +layout: splash +--- + +{| +
+

JBang Download Stats

+ +

+ Live download statistics for + jbangdev/jbang + GitHub releases, fetched straight from the + GitHub Releases API + in your browser (inspired by grev). +

+ +

+ Two things are done differently here: + version.txt is separated out — it is the tiny file + JBang downloads on every + update check, + so its count dwarfs real installs and would otherwise skew the picture — and the + x-axis follows real time (each release sits at its actual publish date), + not evenly spaced release tags, so bursts and quiet periods show honestly. +

+ +
Loading release data from GitHub…
+ + +
+ + + + + + +|} diff --git a/content/leaderboard.html b/content/leaderboard.html index bea4f77c..bb32ab65 100644 --- a/content/leaderboard.html +++ b/content/leaderboard.html @@ -74,6 +74,7 @@

JBang Usage Leaderboard

This is a work in progress. The data is collected from the JBang version checking here.

+

See also the GitHub release download stats (installers vs. version.txt update-checks, over time).

The data is updated once a day. It will show data for maximum last 3 months, starting from 2024-10-19.

% is calculated as unique per approximate location info used for the http request. Meaning if the same approximate area makes multiple requests using the same version/country it is counted only once.

NOTE: The data is an approximation. This is not seeing all invocations, just those that reach the version check endpoint. Meaning nothing behind proxies, nothing that runs jbang very fast (as in no time to do an update check) or just don't do an update check. The total count is unknowingly higher - thus just use this as a interesting data point - mainly for fun!

diff --git a/content/usage.html b/content/usage.html index 6a8554fe..19556f9c 100644 --- a/content/usage.html +++ b/content/usage.html @@ -21,7 +21,8 @@

JBangUsage

version checks done by JBang users the last 90 days.

-

You can find some other fun stats in the Leaderboards.

+

You can find some other fun stats in the Leaderboards + and GitHub download stats.

From 981296ae43c42db036abc2f2985b100faa54644f Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Sat, 11 Jul 2026 11:08:08 +0200 Subject: [PATCH 02/10] fix: use category axis for charts so bars are visible The time axis with 244 releases made bars 0.0004px wide (sub-pixel, invisible). Switch to category axis with version tag labels and auto-skip ticks for readability. --- content/download-stats.html | 63 +++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/content/download-stats.html b/content/download-stats.html index f25b1169..5bc23ebb 100644 --- a/content/download-stats.html +++ b/content/download-stats.html @@ -213,7 +213,7 @@

Per-release detail

- +