The publication, paragraph by paragraph

Find something you read.

Search a project name, a detail, or a topic you half remember.

5 articles shown from 50 published articles. Results link to source passages.

engineering

How I Built First-Party Analytics for a Personal Blog

The Cloudflare Workers and D1 architectureThe Blog Worker owns HTTP routing and static delivery. The analytics package owns the meaning of a page observation. D1 stores source-aware facts. The stats service aggregates them but cannot reinterpret them into people, reads, or verified agents.Open passageThe Cloudflare Workers and D1 architectureThe boundary also prevented a concrete dependency leak. My first shared StatsResponse export pulled Worker-only D1 types into the browser's TypeScript program. Moving the public contract to a browser-safe contracts entry point restored the direction: the blog consumes analytics vocabulary without importing analytics infrastructure.Open passageThe Cloudflare Workers and D1 architectureBlog Worker -> eligibility policy -> metadata minimization -> traffic classification -> daily client identity -> observation repository Stats request -> query parser -> UTC window policy -> aggregate query service -> zero-filled time series -> shared public response contractOpen passage

engineering

Building Blog Analytics: What the Numbers Can Prove

Building Blog Analytics: What the Numbers Can ProveBuilding the analytics on Cloudflare Workers and D1 taught me three distinctions:Open passageCorrect totals can still break productionD1 row reads measure query work, not audience size. Caching avoids recalculation on hits. Other database work and unmetered retries remain additional; missing cost metadata stays unknown.Open passageCount the event you can observeI moved collection to the HTTP response boundary. The Worker serves the page, checks the response, and records an eligible delivery in D1. Worker-first routing puts the collector in that path, including for clients that never run JavaScript.Open passage

engineering

Bot Detection Without JavaScript: What My Blog Measured

Agent names, signatures, and request purposeIn the saved cohort since the verifier launched, through September 5 UTC, D1 contains nine requests with a stored verified result:Open passageMethod, limits, and revision historyD1 observations, private Worker logs/traces, and Cloudflare RUM are separate collections. A field absent from D1 may exist in operational diagnostics. The published evidence contains selected observations and reviewed aggregates, not access to the private Cloudflare account. Stored signature results are not independent re-verification, and inferred zone matches are not shared-ID joins. No verified count of distinct…Open passageComparing edge page views with a script counterSource Page events / loads Client or visit metric D1 browser-UA class, seven UTC days ending September 2 1,209 578 daily client identifiers Cloudflare Web Analytics, its rolling seven-day dashboard window 113 52 visitsOpen passage

engineering

Cloudflare Turnstile: What Kept Breaking My Signup Form

Put the business boundary in the code…values, not measured safe thresholds. The shared budget remains inside one D1 transaction. Moving its check into an in-memory object would let concurrent Workers admit against separate counts. The transaction reserves before the external call; a subscriber-write failure rolls back admission. A fresh native D1 control admitted once from forty-eight concurrent admission calls for one address, alternating signup and…Open passageProve the outcome after verificationThe new browser, provider and D1 controls above were a later engineering iteration. The completed Inbox cycle remains its own dated production result; it does not certify every subsequent revision. Native dummy-key success, source delivery, Worker activation and a completed subscription each need their own receipt.Open passageGlossary…November 5 Pacific / November 6 UTC Sequential transactional admission D1 batch Checked November 5 Pacific / November 6 UTCOpen passage

Results are passages to inspect, including related material. They do not confirm that a remembered topic appears here. Interactive queries run in your browser. Submitting the plain search form sends its query in the URL to this site.

Dispatch

GK-001

A note when there is signal.

Engineering records, failed experiments, and the life around the work.

Latest articles