Dev.to
7/23/2026

The original title is: "I built a serverless URL shortener for $4.68/year (total)"
Original: I built a serverless URL shortener for $4.68/year (total)
Short summary
A complete serverless URL shortener built entirely on Cloudflare's free tier for $4.68/year (domain only). A single Worker handles redirects via Workers KV reads in under 10ms, while a Durable Object with embedded SQLite tracks click counts using ctx.waitUntil() to avoid adding latency. The admin dashboard is inline HTML with zero dependencies.
- •Single Cloudflare Worker serves redirects, REST API, and admin dashboard with zero runtime dependencies
- •Durable Object with SQLite provides transactional click counting; ctx.waitUntil() keeps it off the hot path
- •Separate .link domain isolates reputation risk from the main brand domain
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



