Updater check-in metrics: daily active installs via the worker (#111 Phase 2) - #120
Draft
shellen wants to merge 1 commit into
Draft
Updater check-in metrics: daily active installs via the worker (#111 Phase 2)#120shellen wants to merge 1 commit into
shellen wants to merge 1 commit into
Conversation
Phase 2 of #111. The updater manifest is now served via pullread.com/api/updater/latest.json, which records one row per (day, salted IP hash) in D1 and 302-redirects to the GitHub manifest — daily actives and uniques without telemetry: no raw IP, no UA, no version stored, and counting failures never block the redirect. - tauri.conf.json updater endpoints: worker URL first, GitHub second as fallback so a worker outage never blocks updates - /api/stats reports updater_checkins_by_day (30 days) - metrics-snapshot records daily uniques/totals to data/metrics.csv Deploy ordering: `wrangler deploy` the worker BEFORE cutting the release that ships the new endpoint (harmless before; the endpoint just redirects). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AdXEsWQTadb9qbTQjLkMqn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of #111.
GET /api/updater/latest.json— records one row per (day, salted-IP-hash) in D1, then 302-redirects to the GitHublatest.json. Uniques ≈ daily active installs. Privacy: only an HMAC of the IP (existingHMAC_SECRET), no raw IP/UA/version; a D1 failure never blocks the redirect (update delivery is the contract).tauri.conf.jsonupdater endpoints: worker URL first, GitHub URL kept second as fallback — a worker outage cannot block updates. The updater already follows redirects (the GitHub URL itself redirects to the asset)./api/statsgainsupdater_checkins_by_day(last 30 days); the weekly metrics snapshot records uniques/totals intodata/metrics.csv.Deploy ordering after merge:
cd worker && npx wrangler deploybefore cutting the release that ships the new endpoint (deploying early is harmless — the endpoint just redirects).Draft — hold for the next release train; do not merge or deploy this week.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AdXEsWQTadb9qbTQjLkMqn