A daily crypto news summary with no server and no database

· 3 min read

This weekend I built Crypto News Daily: a page that summarizes the last 24 hours of crypto news every morning, with a link to every source.

It has no server and no database, and it costs nothing to run. Here’s how it works.

1. Collect the sources

Most news sites still publish an RSS feed, a plain list of their latest articles with a title, link and date. I put ten of them in a sources.json file: CoinDesk, Cointelegraph, Decrypt, CryptoSlate and a few more.

Adding a new outlet is just another entry in the config, no code changes. Each source can also list the junk to strip out, like newsletter signups or “You may also like” links, so it doesn’t end up in the summary.

2. Scrape the last 24 hours

The feeds only contain headlines and maybe a one-line teaser, so for every article from the last 24 hours the scraper downloads the page itself and pulls out the main text with trafilatura.

One surprise: a few sites block requests coming from cloud servers like GitHub’s. The same scraper works fine from my laptop. I didn’t try to get around it. If a site doesn’t want to be scraped, that’s its call, so the job just warns me and moves on with the rest.

3. Summarize with OpenRouter

The 40 newest articles go to a free model on OpenRouter (I wrote about why I like it in my last post). The prompt is strict:

  • Use only the numbered articles provided, no outside knowledge.
  • Group the news into topics, most important first.
  • Cite every claim like [3], so each fact links back to its article.

Free models get rate-limited, so I give OpenRouter a list of fallback models to try in order. And if the answer comes back without a single citation, the job refuses to publish it. A summary I can’t verify is worse than no summary.

4. Run it on a cron job

A GitHub Actions workflow runs every morning: scrape, summarize, build the page, deploy it to Cloudflare Pages. Then it exits.

The lesson here: GitHub doesn’t promise to run scheduled jobs on time. Mine was set for exactly 06:00, which is when everyone else’s jobs run too, and one day it still hadn’t run by lunchtime. Now it runs at an odd minute (05:17) with a backup at 09:17 that does nothing if today’s summary is already up.

5. Add the API keys to GitHub

The workflow needs three secrets: the OpenRouter key and a Cloudflare token plus account ID for deploying. They live in the repo’s Settings → Secrets and variables → Actions, never in the code. The Cloudflare token only has one permission, editing Pages, so even if it leaked it couldn’t touch anything else.

6. Keep only the last 10 days

The site shows the last 10 days, with a button for each.

The AI I was building this with suggested a database for the archive. I asked why not just JSON files. Each day is a single file of about 8 KB, so the whole archive is under 100 KB.

So the site is the storage. Every run downloads the current archive from the live site, adds today’s file, drops day 11 and redeploys. If the download fails, the run fails instead of publishing an empty archive.

Wrapping up

A handful of RSS feeds, one free LLM and a cron job is enough for a useful daily tool. The interesting decisions weren’t about AI at all. They were about what to leave out: the server, the database and the sites that didn’t want to be scraped.

← All posts