# Product

Kokumi is the analytics you read. It counts people and AI agents at the Cloudflare edge, on the account you deploy it to.

This page is the whole product. Each block is one feature from the registry, and the badge is that feature's status. The same badge is used everywhere else on the site.

The line under the name says what the feature is for. The note under that says what exists today. A Planned badge means it is not shipped.

## See

What reached the site: people, agents, and requests a page script never sees.

### People vs agents at the edge

Status: Live

Every page, .md twin and llms.txt request counted at Cloudflare's edge, split into people, verified agents, claimed agents, unconfirmed browsers.

Slice 1 counts. classify.rs.

### AI traffic

Status: Live

Which AI agents read you, verified against operators' published IP lists, and which AI tools sent people over.

GET /api/v1/citations, kokumi citations, and the Dashboard Per-Page Read vs. Cited ledger ship with verified vs. claimed quarantine and .md twin rollup.

### Dashboard

Status: Live

One screen per site: people today vs usual, top pages, sources, agents.

Self-hosted Cloudflare Worker in dashboard/: counts, posts, health, privacy, proof export, and CLI parity.

https://github.com/mackenziebowes/kokumi/pull/1

### Read time and scroll

Status: Partly live

How long each page was in view and how far people scrolled.

Stored on raw view rows. No per-page summary route yet.

### Data health alerts

Status: Live

Speaks up when the page beacon breaks, like the Nov 25 outage.

/api/v1/health classifier canary, free-plan limit guards, and kokumi health.

### Privacy

Status: Live

Zero cookies, raw IPs dropped by default (RAW_IP_OPT_IN=false), daily rotating SHA-256 salt, and unlinked geo_hits.

Enforced in src/privacy.rs; verified via GET /api/v1/privacy.

## Know what worked

Whether a post, a link, or an action on the site amounted to anything. Post scorecard is live, and it does not learn posts by crawling a sitemap.

### Page to page clicks and tool use

Status: Live

Which internal links people follow and which on-site tools they use.

/internal, /links and /tools routes.

### Post scorecard

Status: Live

Each post's day 1, 7 and 30 against your own median.

The page script sends an optional label (post, product, or offer), title, and publish time. Kokumi stores that as its own record and joins day 1, 7, and 30 onto existing path counts. A page that sends nothing stays a page.

### Campaign links

Status: Live

First-party /go/x/slug redirects, 5-field UTMs, preview-bot isolation, and cookie-free _k landing joins.

GET and POST /api/v1/campaigns, /go/:channel/:slug, kokumi campaigns, kokumi link add|list|archive, and Dashboard Campaigns view.

### Goals

Status: Live

Mark a form sent, a page reached or a tool used as a goal, with its source.

POST and GET /api/v1/goals with idempotency keys and kokumi goal add.

### What moved digest

Status: Planned

An email or Slack note sent only when something changed vs your usual.

Only an outside routine today, not in Kokumi.

## Plug in

How you read the rows, and how a site is run. Use only what the badge marks Live.

### Read API

Status: Live

JSON routes for counts, hits, views, links, internal clicks and tools, behind a read token.

/api/v1 with a bearer read token.

### CLI and agent skills

Status: Live

JSON CLI plus read and onboarding skills so your assistant can install and query Kokumi.

15 live commands in cli/: JSON envelopes, read and onboarding skills, cost guards.

### Public share links

Status: Planned

A read-only board you can drop in a post or a client report.

Needs a separate read-only share token.

### Many sites, one deploy

Status: Planned

Run every site from one deploy and one dashboard.

Today: one Worker, database and token per site.

### Umami and Plausible importer

Status: Live

Bring your history with you when you switch.

Umami and Plausible CSV and JSON importer via kokumi import and POST /api/v1/import.

### One-click deploy

Status: Planned

A Deploy to Cloudflare button and one script tag.

Today: wrangler deploy plus schema steps in the README.

### Self-hosted & open source

Status: Live

MIT-licensed Rust Worker + D1 on your own Cloudflare account at $0 SaaS cost.

Deploy with wrangler and D1 via /docs/self-hosting.

### Hosted Kokumi

Status: Needs a decision

Managed cloud hosting.

Does not exist. Waitlist only until decided.

## How a request is counted

Collection runs on your Cloudflare account. The Worker is Rust. The database is D1. Hosted Kokumi does not exist, so there is nothing to log into.

Page, .md, or llms.txt → Worker → D1 edge row
Page script → Beacon → D1 reader row
D1 → Read API → Self-hosted dashboard Worker

- The edge. A request for a page, a markdown twin (.md), or llms.txt hits the Worker. The Worker counts that request, then serves the file.
- Who asked. The caller is labeled verified agent, claimed agent, unconfirmed browser, or unrecognised. Verified means the IP is on the operator's published list. The user-agent string alone does not verify anyone. The edge row keeps no IP, no user-agent text, no cookie, and no id.
- People. A page script sends a beacon when JavaScript runs. That beacon is the person count. Reader views drop raw IPs by default (RAW_IP_OPT_IN=false), compute a daily UTC rotating salted key, and detach city totals into geo_hits. A reader can be forgotten.
- One site, one database. Edge counts and reader views are written to D1. Today that is one Worker, one database, and one read token per site.
- The read API. JSON routes return counts, hits, views, links, internal clicks, and tools to a caller that sends the read token. The self-hosted dashboard Worker in dashboard/ draws those totals server-side so the token stays off the page.

## Routes

- [AI traffic](/features/ai-traffic)
- [People vs agents at the edge](/features/edge-analytics)
- [Dashboard](/features/dashboard)
- [Read API](/features/api)
- [Privacy](/features/privacy)
- [Post scorecard](/features/post-scorecard)
- [Campaign links](/features/campaign-links)
- [What moved digest](/features/digest)
- [Goals](/features/goals)
- [Data health alerts](/features/data-health)
- [Many sites, one deploy](/features/multi-site)
- [Public share links](/features/share-links)
- [CLI and agent skills](/features/cli)
- [Umami and Plausible importer](/features/import)
- [Read time and scroll](/features/reading)
- [Page to page clicks and tool use](/features/journeys)
