Release Pulse is a small WordPress plugin I wrote for the ScreepT download page: it counts the downloads of every release, shows the counts publicly next to each file and gives me, in the admin, a history of when, from where and with what people download. It stores no IP addresses and sets no cookies.
- Counted links. A link points to the plugin, which counts the download and redirects to the real file. Only real GET requests count; known bots, crawlers, curl and wget are skipped.
- A whole folder, also future files. One rule makes every file of a folder countable, so a new release is counted the moment it is uploaded, with no configuration.
- Public totals. A read-only endpoint returns the counts, so a page can show “N downloads” next to each file.
- History for the admin. Hourly aggregated rows with file, system, browser, country (from the browser time zone), language and the site the visitor came from.
How it works
The plugin adds a few routes to the WordPress REST API:
/wp-json/release-pulse/v1/dl/<key>: one file, counted, then a redirect to it./wp-json/release-pulse/v1/dl/<key>?f=<file name>: any file of a folder. When the folder is on the same server, the file must really exist, so made-up names are not counted./wp-json/release-pulse/v1/downloads: public totals, as JSON./wp-json/release-pulse/v1/ping: an endpoint for desktop applications, which can send a random installation id, their version and an event (update check or update installed) to count updates per installation. ScreepT does not use it yet.
Responses are never cached, and a redirect costs one small database write. The history is aggregated per hour: one row per combination of file, system, browser, time zone, language and origin, with a counter, not one row per visitor.
Install it in five minutes
- Download the plugin from GitHub and zip the
release-pulsefolder. - In WordPress: Plugins > Add New > Upload Plugin, choose the zip, then Activate.
- Open Tools > Release Pulse and write one rule per line, then Save links:
myapp = https://example.com/files/myapp-1.0.zipfor one file, ormyapp/ = https://example.com/files/for every file of the folder. - Use the counted link in your download page:
https://example.com/wp-json/release-pulse/v1/dl/myapp?f=myapp-1.0.zip. - Open the link once: the file downloads and the admin page shows the first hit.
If the counter does not move, exclude /wp-json/ from your page cache or CDN.
Show the counts on your page
The download page can read the public totals and add the visitor’s time zone, language and referring site to the counted links. A minimal example:
var api = "/wp-json/release-pulse/v1/";
var extra = "&tz=" + encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)
+ "&lang=" + encodeURIComponent(navigator.language)
+ "&ref=" + encodeURIComponent(document.referrer ? new URL(document.referrer).hostname : "");
fetch(api + "downloads").then(function (r) { return r.json(); }).then(function (d) {
var file = "myapp-1.0.zip";
var link = document.getElementById("download");
link.href = api + "dl/myapp?f=" + encodeURIComponent(file) + extra;
link.textContent += " (" + (d.perFile["myapp/" + file] || 0) + " downloads)";
});
If your server caches JavaScript files for a long time, add a version to the script address (downloads.js?v=2) every time you change it, or returning visitors keep the old links.
Reading the numbers
Tools > Release Pulse shows a date range, a filter on the file name and a grouping: day, hour, month, hour of day, weekday, file, country, time zone, language, system, browser or origin. Every row has a bar proportional to its count, times follow the time zone of the site, and a table lists the latest downloads grouped per hour.

What it does not do
- No IP addresses, no cookies, no third-party services. The country comes from the time zone of the browser (Europe/Rome becomes Italy), so it is approximate and only available for downloads started from a page that sends it.
- The numbers are indicative: the endpoints are public, so anyone could inflate them on purpose.
- The history starts when the plugin is installed. Deleting the plugin from the admin removes its tables and settings.
Release Pulse is free software under the GPLv2 or later. Source code, issues and suggestions: github.com/AlessioMoraschini/congenial-spork.
