Skip to content

No. 01

Briefing · Field Guide

How to run a small AI news site on Cloudflare for ~$2/month

The full stack behind aihk.si: a static Next.js export on Cloudflare Workers, daily briefings drafted with the DeepSeek API, and what it actually costs to keep online.

Filed
Reading time
5 min read
Topics
  • Cloudflare
  • DeepSeek
  • Static Sites
  • Indie Publishing

The stack at a glance

aihk.si is a Next.js 16 static export. The build output (./out) is served by a Cloudflare Worker using Workers Static Assets, on the aihk.si and www.aihk.si domains. A second Worker, api.aihk.si, serves the REST API, RSS/JSON/ICS feeds, and a remote MCP server. There is no origin server to patch, no database to back up, and no per-request compute bill.

One thing this stack does not include: the $120-a-month Singapore VPS that also lives under this project. It serves a separate subdomain (perpetua.aihk.si) and is not part of the news site’s cost at all.

What the $2 actually buys

Hosting is effectively free: Cloudflare’s free tier covers the Workers and the static assets. The domain, aihk.si, cost ¥43.17 (about $6.48) for a one-year registration. The only recurring cost is the DeepSeek API, which drafts the five daily summaries. At the official deepseek-chat price of $0.28 per million input tokens and $0.42 per million output tokens, a day of short summaries costs a few cents — roughly $1 to $2 a month.

Total running cost: about $2 a month, or roughly $24 a year plus the domain renewal.

Why static

A static export removes the usual failure modes of a small site. There is no server process to crash, no database connection pool to exhaust, and no CMS to keep patched. Cloudflare serves the pages from its edge network, so a traffic spike from a shared link costs nothing extra and slows nothing down.

The trade-off is a build step. Every content change — a new briefing, a corrected typo — needs a fresh build and deploy, which takes a few minutes through GitHub Actions. For a site that publishes once a day, that is a fair price.

What it takes to pay for itself

At a planning figure of about $3 per thousand pageviews from display ads, roughly 700 pageviews a month covers the $2 running cost. The first $100 AdSense payout — the minimum threshold — would need about 20,000 to 33,000 cumulative pageviews. The honest timeline is content first, ads second: a site needs a body of original work before an ad review will pass.

That is the bet this site is making: keep the costs near zero, publish original work for Hong Kong builders every day, and let the audience arrive before the ads do.

Matched by category and shared topics.