Developers
MIT-licensed Rust Worker plus Cloudflare D1 on your own account, with a JSON read API, 20 CLI commands, and built-in agent skills. Every request is classified at the edge and every contract is inspectable from your terminal.
Edge Rust, D1 storage, and a clean read API
Collection runs in a Rust Worker on your Cloudflare account and writes edge counts and reader beacons to D1. The self-hosted dashboard/ Worker renders totals server-side so your read token never touches browser JavaScript.
- JSON endpoints under /api/v1 return counts, hits, views, links, internal clicks, tools, goals, health, privacy, and imports behind a bearer token.
- Edge classification (src/classify.rs) splits callers into people, verified agents (against ranges/), claimed agents, unconfirmed browsers, and unrecognised.
- Privacy rules live in src/privacy.rs with zero cookies, RAW_IP_OPT_IN=false by default, and daily UTC rotating SHA-256 salts.
sh
kokumi deploy --dry-runBuilt for CLI workflows and AI coding agents
Kokumi ships a JSON CLI with structured exit codes, token-budgeted outputs, and least-privilege handover so your coding assistant can install, verify, and query analytics safely.
- Print exact command schemas or self-contained read and onboarding skills with kokumi describe.
- Preview writes safely with --dry-run and idempotency keys across init, deploy, import, and goal add.
- Drop write_token locally and verify an HTTP 403 write refusal with kokumi handover.
sh
kokumi describe --format jsonCurrent architecture boundaries
Kokumi is explicit about what is live in the repo and what is still queued, so you do not hit surprises mid-integration.
- One Worker, one D1 database, and one read token per site today; multi-site support is planned.
- Read time and scroll depth are stored in raw views without a per-page aggregation route yet; per-page AI read-versus-cited correlation is not built yet.
- One-click Cloudflare deploy, public share tokens, and native email or Slack digests are planned.