🇺🇸 EN
•
•
1 min read
•
102 views
Building an Edge Blog with Cloudflare Workers and D1
How I designed and deployed a lightning-fast, 100% serverless personal blog running entirely at the edge without fixed infrastructure costs.
Why Cloudflare Workers and D1?
When rebuilding my personal website (britoprado.com.br), my main goals were:
- Sub-millisecond Edge Delivery: Serve content worldwide close to readers with zero cold-starts.
- Zero Maintenance Costs: Leverage Cloudflare generous free tier (5M D1 reads/day).
- Dynamic yet Lightweight: SQLite SQL queries directly inside edge workers for views tracking, search, and admin capabilities.
The Stack
- Cloudflare Workers: Distributed JavaScript/TypeScript runtime.
- Cloudflare D1: Edge-native relational database.
- Hono: Ultra-fast, lightweight web framework.
- Tailwind CSS & Highlight.js: Clean typography and code highlighting.
Welcome to my corner on the internet!
BP
Guilherme Brito Prado
britoprado.com.br