Not publically accessible yet! KF Staff can point their agents at /llms.txt.
How it works
Figure 1. One event, from a page to the files the dashboard reads.
Default usage is through the client: just add the script, and Gauge will automatically send an event per pageview. Gauge can be customized to send any event desired. Gauge can be used on the client or on the server.
The request is inspected for any unsalubrious content: if found, the event is discarded.
The row is written to a D1 database table for hot events, and gently guided towards an icy Iceberg table, awaiting further refinement.
Each night our diligent friend the compactor, armed with DuckDB, scours the table, drops bots, and divides the data into a flurry of parquet cubes: days, pages, subjects, referrers, campaigns, devices, countries, downloads and searches.
The dashboard is created by you, dear reader! Or better said, your browser: you directly access the parquet cubes. "Won't that force me to load oh so much data?", you ask. Not at all! Through the magic of HTTP range requests we only ever load a small slice of the data. How clever!
Figure 2. What the Worker keeps from one request.
Gauge does not store any cookies. Repeat visits will not be tracked. Gauge distinguishes between raw views and unique visits purely by examining whether the Referrer Header matches the current host.
Figure 3. One night’s compaction: rows become daily counts.
No private data is collected, but even less private data ends up in the Parquet cubes! It only holds raw counts, any single event is only stored in the Iceberg.
An example
A dashboard as staff see one, over four months of made-up traffic to a journal. It reads its cubes the same way, from /assets/example/. Pick a range, filter the lists, drag across the chart, or click a row to follow it.