AI Focus

keyless browser proxy

Shipping a browser demo or client-side web app against paid APIs normally forces an ugly choice: either expose a static secret in public JavaScript (where anyone can steal it) or make every visitor paste their own API key. Binding short-lived signed session tokens to the caller’s Origin and counting calls in an edge quota ledger lets pure frontend apps call downstream capabilities safely without shipping static keys.

Hypothesis

Origin-verified short-TTL HMAC-SHA256 tokens tracked in an edge SQLite quota ledger allow public pure-frontend web apps to invoke metered capabilities without shipping static secrets in JS or requiring visitors to paste API keys.

What confirms it: Same-origin requests succeed cleanly within quota (200), while missing origins, tampered HMAC tokens, or exhausted quotas fail deterministically (401 / 403 / 429) against QuotaLedger.

What falsifies or bounds it: Spoofed non-browser Origin scripts abuse public anonymous quotas quickly without proof-of-work, Turnstile, or passkey identity binding.

Origin-verified Worker proxy issuing ephemeral HMAC-SHA256 session tokens enforced against a SQLite Durable Object QuotaLedger (401/403/429) with zero static client keys. Open keyless browser proxy full screen ↗

What this lab tests

Keyless Browser Proxy (GitHub) replaces static client API secrets with origin-verified HMAC-SHA256 ephemeral tokens enforced against a Cloudflare Durable Object SQLite QuotaLedger across 401, 403, and 429 boundaries.

Open questions

  • How well do per-IP + per-Origin quotas hold up compared to attaching lightweight WebAuthn or Turnstile challenges before minting ephemeral tokens?
  • Can Cloudflare Workers no-store ephemeral token minting generalize into a drop-in proxy template for every /labs/ demo?

Iteration log

  • — Deployed origin-verified HMAC-SHA256 broker + SQLite Durable Object QuotaLedger (401/403/429 tests).
  • — Updated / Cache-Control to must-revalidate and added complete code blueprint at top of page.
  • — Enforced fail-closed 403 rejection on missing Origin/Referer headers, reordered the proxy workbench above setup code, added pure-DOM syntax highlighting across JS/SQL/JSON/wire views, hardened 700px embed layout, and routed static assets through the Worker with no-cache headers.

Primitives tested: Cloudflare Workers, Durable Objects SQLite, Origin Verification, HMAC-SHA256 Ephemeral Tokens.

This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.

More in delegated authority & keyless execution

Connected labs

← delegated authority & keyless execution · All labs