Dewei Zhai

2026-05-10

The cheap stack: how this site is built

Cloudflare Pages + Astro + DeepSeek. What it costs, what it doesn't, and why I chose each piece.

The whole site — including the AI agent — runs for roughly the cost of the domain. Here’s the inventory:

PieceServiceWhy
Static pagesCloudflare PagesFree tier, fast, easy DNS
Serverless endpointsCloudflare WorkersSame account, same billing
Vector searchCloudflare VectorizeFree tier covers a personal site
Lead captureCloudflare D1SQLite-on-the-edge, free
LLMDeepSeek (via Gateway)~10× cheaper than frontier models
Anti-abuseCloudflare TurnstileFree, drop-in CAPTCHA replacement

The interesting choice is DeepSeek instead of a frontier model. For an agent whose job is “answer factual questions about a real person, grounded in their writing,” DeepSeek-V3 is more than good enough. The cost difference matters because chat agents on personal sites get probed by bots more than read by humans.

I’ll write a longer post on the prompt design and the RAG pipeline once it’s been running long enough to have something interesting to say.


想聊聊?和我的助理辩一辩,或者给我留个言