Count installations that run: the update check goes through the site
The programs (desktop, Android) ask https://chess.vrubel.xyz/api/update for the latest release instead of GitHub, with a random id of the installation (made once, kept in the settings), the version and the platform; the site passes GitHub's answer on and keeps one row per installation and day (no IP; the country of the address). Without the site the programs ask GitHub, uncounted; with the update check off nothing is sent. /stats shows installations that ran today, in 7 and 30 days, in all and new ones, by platform and version. The texts about the update check and the site's privacy line say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
04bd7c08a1
commit
1edbbda368
30 changed files with 284 additions and 44 deletions
|
|
@ -67,6 +67,19 @@ not run JavaScript never appear as visitors. Every row is classified:
|
|||
No IP is stored: visitors are told apart by a hash of IP and user agent with a salt that
|
||||
lives only in memory and changes every day.
|
||||
|
||||
## Installations
|
||||
|
||||
The programs (desktop and Android, from 1.0.1) check for updates through `GET /api/update?install=<id>&version=<v>&platform=<p>`
|
||||
instead of GitHub: the answer is GitHub's latest release (the fields the programs read:
|
||||
`tag_name`, `html_url`, `assets[].name/browser_download_url/size`), and the call is counted
|
||||
in the `launches` table — one row per installation and local day: the random id the
|
||||
program made up, its version, platform (`windows`, `macos`, `deb`, `rpm`, `arch`, `aur`,
|
||||
`appimage`, `flatpak`, `tarball`, `source`, `android`, `android-noengine`) and the country
|
||||
of the address (the address is not kept). The local network is not counted. `/stats`
|
||||
shows installations that ran today, in 7 and 30 days, in all, and new ones in 7 days, by
|
||||
platform, and the versions of the last 7 days. A program that cannot reach the site asks
|
||||
GitHub (uncounted); one with the update check turned off is not counted.
|
||||
|
||||
## Development
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue