Repository navigation
B116: automatic active count - #75
Merged
Merged
Conversation
Once a day while NODE is in use, installed copies send one request with NODE's version, the OS and whether it is the first count this week and this month. No id, pages, addresses or keywords. On by default, said on the welcome screen and in the 0.11.0 notes, off in Settings → Help. The share Worker stores one empty object per count (no address), deletes them after 400 days, and serves the counts with a token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011V7Bv7WZ9Q92MZoNWYwevQ
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.
B116. Automatic active count, in 0.11.0 before the tag.
What NODE sends
{ "v": "0.11.0", "os": "mac", "w": true, "m": true }.wandmsay whether this is the first count this week and this month. That's how weekly and monthly users get counted without any id.npm startand test runs send nothing, unless a test setsNODE_ACTIVE_API.Where it's said (on by default, no prompt, as the backlog row says)
The server (the share Worker, same Cloudflare account)
POST /api/activechecks the shape and stores one empty R2 object:a/<day>/<os>/<version>/<marks>/<random>.GET /api/active?days=30gives counts per day (by OS and version), per ISO week and per month. It needs a token: add a repository secretNODE_STATS_TOKEN(any long random text) and the deploy workflow sets it on the Worker. Without it, nobody can read the counts.worker/).Tests
test/active-count-demo.js(npm run test:active, intest:unit).test/share-worker-demo.js.test/e2e/55-active-count.js(11 checks), in both CI e2e lists.test:unit, and e2e 01, 20, 23, 40 and 41 still pass.Generated by Claude Code