webdefy

Docs / Architecture

Architecture

One platform on webdefy.com, built in layers. Everything runs on Cloudflare (decision ADR-002).

Layer What it does Runs on
Edge DNS, TLS, caching, redirects, security headers Cloudflare
Experience Every page on webdefy.com: the app, the AI agency, docs Astro on Cloudflare Workers
App API Reactions, Keep, sign-in, health The same Worker
Agents Research, write, check and judge moments Workers with Workflows and Queues
Pipeline Quick checks every card passes before review Python
Data The Canon, Threads, kept moments, reactions Neon Postgres with pgvector, through Hyperdrive; KV for caches
Admin Review and approve moments admin.webdefy.com, behind Cloudflare Access

How a moment goes live

  1. AI drafts the line, why it mattered, and the source.
  2. Quick checks run: 6 to 14 words, a “why” line, an https source, the year in the source, nothing before 1969.
  3. A person reads it against the source and approves it.
  4. Approved moments appear on the site within five minutes.

AI rules

Privacy by design

Shipping

Every change is a pull request with checks (types, unit tests, build, browser smoke tests, secret scan). Merging to main deploys to production.

Next: Decisions · All docs