Data and privacy
Already have:
ScopeRead-only privacy ledger inspection
Done gatekokumi privacy --table --format md
Markdown twin:/docs/data-and-privacy.mdllms.txtLive demo
Every claim below is auditable directly against schema.sql and kokumi privacy --table --format md. Zero cookies, zero localStorage, zero third-party ad pixels.
Core privacy mechanics#
1. Daily-rotating salt: visitor keys use SHA-256(VISITOR_SALT || day || ip || ua) (truncated to 12 bytes / 24 hex) so keys expire automatically at midnight UTC without extra state.
2. Unlinked geo counts: country, region, and city are aggregated into geo_hits (day, country, region, city, n) rather than joined onto individual views rows, with RAW_IP_OPT_IN off by default.
What Kokumi keeps and what it omits#
Table synced from privacy-rows.ts (inspect live Worker output with kokumi privacy --table --format ts).
| Stream | Keeps | Omits |
|---|---|---|
| Edge counts | One total per day, path, and kind of file (a page, a markdown twin, or llms.txt), one tag, the referring host, and who asked: a verified agent, a claimed agent, an unconfirmed browser, or unrecognised. | No IP, no user-agent text, no cookie, and no id. An agent is checked against the operator's published IP list during the request. That IP is not stored. The check is not by network or ASN. |
| Same-site clicks | The day, the page, the page on this site it came from, and a count. The source is a path only: no host, no query, and no fragment. | Nothing about the person. |
| Beacon totals | The day, the path, one tag, the referring host, and a count, added when the page script runs. This is the people total. | No IP, no user-agent text, no cookie, and no id. This is not a row about one reader. |
| Reader views | The day, path, referrer host, tag, device class (phone or desktop), short screen/language labels, time in view, scroll depth, and a 12-byte daily UTC rotating SHA-256 visitor key. Raw IP is stored only when RAW_IP_OPT_IN=true (false by default). | Zero cookies, zero user-agent text, and zero raw IP by default (RAW_IP_OPT_IN=false). The key uses SHA-256(VISITOR_SALT || UTC day || IP || UA) so identifiers expire every UTC midnight without extra cleanup jobs. |
| Geo totals (geo_hits) | Unlinked daily city, region, and country totals (day, country, region, city, n). | No visitor key, no IP, no path, no timestamp, and no foreign link back to reader views. |
| Component events | The page-load id, the day, the path, the component, where it sat, and what happened (seen, clicked, opened, closed, played, copied, or submitted), with a count and a time. | No new id, no IP, and no cookie. The row joins back to the reader view. |
| Tool calls | When a site uses a Kokumi tool: the day, the time, the tool, the public site name that was typed, the outcome, the verdict, the Turnstile result, who called, the visitor key, and the country. | No IP. The IP is used only to rate-limit the call, and it is not written on the row. |
Regenerating your site's own privacy notice#
Export your deployment's exact live ledger in Markdown or TypeScript straight from the CLI.
sh
READ
kokumi privacy --table --format md
kokumi privacy --table --format ts > src/content/privacy-rows.tsExpectexit 0Live privacy ledger printed from Worker