reader follows any site that publishes a feed and puts everything those sites write in one list, with folders, saved posts, labels, search, filter rules, push notifications and the full article behind a post's link. It runs in production at reader.sergiodxa.com as one Cloudflare Worker, signs in through the author's OpenID Connect provider and sells Free, Paid and Premium plans through Polar.
It reads every feed format in the @sdxc/* collection in one app: RSS, Atom and JSON Feed through @sdxc/feed, subscription lists through @sdxc/opml, push delivery through @sdxc/websub and articles through @sdxc/distill. The reason to read its source is the storage split underneath. Fetching belongs to a feed, reading belongs to a reader, and each is its own kind of Durable Object with its own SQLite database.
The screenshots come from the public site. The signed-in app sits behind sign-in, so its screens appear as the product drawings the marketing pages show.
The brief
A feed reader looks simple and is not. Thousands of readers follow the same popular feeds, so fetching per reader multiplies requests to publishers for nothing. Feeds publish at wildly different rates, so one polling interval is either wasteful or stale. Publishers rewrite, truncate and delete items, and some feeds list only their latest ten posts. A reader's library grows without bound, and plans have to cap it without ever deleting what someone kept. Article extraction fetches arbitrary pages from the open web, which is slow and sometimes refused. And the whole thing has to answer the moment someone opens it.
reader takes these on with two kinds of Durable Object and a small D1 database. A FeedDO exists per canonical feed and owns fetching; a UserDO exists per reader, addressed by their OIDC subject, and owns settings, subscriptions, posts, tags, saved searches and filter rules. D1 holds only the shared feed catalog and what the payment platform last said. Each object migrates its own SQLite when it boots, from database/feed-migrations and database/migrations.
One fetch for every follower
Each FeedDO fetches its document with a conditional request, parses it with @sdxc/feed whatever the format, stores its items and publishes its head: what the newest item is. Readers pull from that head. A reader opening the app compares each followed feed's head against what their own object holds, and materializes the missing posts behind the page they were already served. One fetch of a busy feed reaches everyone who follows it.

The reading queue the landing page draws is that materialized list: every post across every followed feed, which continues as the reader scrolls, narrowed to read or unread, to a search, or to both. A row can be marked read, saved or labelled, and on a phone a swipe across a row marks the post read. Read and saved marks use OptimisticToggle, so the row changes at once and the form posts behind it.

Following a feed walks its RFC 5005 archive or paged documents on a queue job, up to ten documents and 500 posts, so a new subscription arrives with history. When a feed declares itself complete, a post it stops listing leaves the reader's list too, unless they saved it.
A schedule each feed earns
A feed's polling cadence comes from its measured publishing rate. A feed posting ten or more times a day is checked every fifteen minutes, one posting a couple of times a day hourly, and so on down to daily; a feed that has published nothing in a month waits a week. The freshness page draws that ladder as a DrawnChart.

Publishers that run a WebSub hub can push between polls. The callback at /websub/:feedId/:token echoes a challenge only for a subscription the app is waiting on, and checks each delivery's signature against the secret it shares with the hub before trusting it. A reader can also ask for a check on demand, for one feed or all of them.
Each feed has its own page in the app: when it was last checked, buttons to check it now or mark it read, and how long its posts stay, chosen from named spans (Breaking at three hours, News at eighteen, Articles at three days, Essays at two weeks, Evergreen forever). For a feed that publishes about fourteen posts a day, the page suggests a shorter span so the feed never becomes a backlog.

Reading that renders before the network
A post's page in app/http/controllers/post.tsx is complete from the reader's own row: title, author, date, excerpt and the link render before anything external is asked for. On the paid plan, the article behind the link arrives through @sdxc/lazy-frame. app/services/article.ts asks a shared KV cache first and fetches the page only on a miss, and whatever comes back (an article, a refusal, a timeout or nothing) is one of five outcomes the page has copy for. The article is set in the reader's chosen face, serif or sans, with the publisher named and the original a click away.

The scheme and reading face are decided before the page paints and follow the reader to any browser they sign in on. A podcast or video attachment plays in the post's own page with the browser's player. Push notifications go through @sdxc/web-push, with a minimum gap and a quiet window decided inside the reader's object.
Limits enforced where the data lives
Search runs inside the reader's object through @sdxc/search: every word must appear in a post's title, summary or author, quoted phrases match as written, OR finds either word, and a leading - or NOT excludes one. A search can be kept and reopened.
The plan a reader is on is stored on their own object, which is where every limit meets the count it caps: feeds, saved posts and posts in all, from 25,000 posts on Free to 3,000,000 on Premium. @sdxc/authz policies in app/policies/ decide what the tier, the operational flags and an agent token's scope allow. A plan the reader is over refuses what is new and leaves what is theirs in place, and a failed payment keeps everything for a fortnight. Polar delivers to POST /webhooks/billing, which verifies the signature, records the delivery and then re-reads what the customer holds from Polar itself; a daily cron re-reads every customer, so a lost delivery is repaired within a day.
An agent surface, and your data back
POST /mcp answers the Model Context Protocol through @sdxc/mcp. An agent can read the queue, search it, list and read feeds, and with a token scoped to write, mark, keep, follow and unfollow. Tokens are minted in Settings, shown once, and run behind their own rate limit.

Subscriptions import and export as OPML, folders included, and the full export is one ZIP built with @sdxc/zip: subscriptions as OPML, kept posts with their labels as CSV, and both as JSON. The interface is in English and Spanish, resolved per request, and the help docs are built on the same docs kit as sdxc.dev.

Where to start reading
app/models/feed-store.ts— the canonical feed object: polling, WebSub and the head it publishes.app/models/user-store.ts— the reader's object, where search, limits and policies run.app/http/controllers/post.tsx— a post page complete before the article frame loads.app/services/article.ts— the article cache and its five outcomes.
