Worker setup
RSS, Hacker News and Web Browser can use a small server of your own, the rss-opds Worker, on Cloudflare's free plan. Tick the apps you use: the steps and what to type on the reader follow from that.
| App | What the Worker does for it | Without it |
|---|---|---|
| RSS with CommaFeed | Everything: your CommaFeed lists and articles as short plain text, full text, star, read, tags | Only feeds on the reader |
| RSS, feeds on the reader | Full text for articles whose feed carries only a summary, and feeds too large for the reader to fetch | Feeds work; articles show what the feed carries |
| Hacker News | The linked article as text, through a full-text service | Lists and comments work; an article shows its address as a QR code |
| Web Browser | Any web page as text, with its links and pictures, and the list of a page's links | Searching works; a page shows its address as a QR code |
Why a Worker at all?
- The reader takes at most 128 KB per download and has little memory. Feeds and web pages come as full HTML; the Worker turns them into short plain text and pages the lists.
- Your keys stay off the reader: the CommaFeed API key and the full-text services' tokens are Cloudflare secrets. The reader only knows the Worker's address and a token or password of its own.
- Full text: feeds often carry only a summary. The Worker asks a full-text service, falls back to the feed, and keeps the result for a day.
- It also serves an OPDS catalog of your feeds to the reader's own library, KOReader and others. It costs nothing and only you use it.
Already have a Worker? Update it
When an app's release notes ask for it (for example the [URL] links in RSS and Hacker News, or
Web Browser's Links on this page), bring your Worker up to date. Only its code changes: your keys, token
and the settings on the reader stay as they are.
- Set up in a terminal: in the folder you cloned, one line at a time:
git pull npm install npx wrangler deploy
- Set up in the Cloudflare dashboard (from your own copy, a fork, of rss-opds on GitHub): open your fork on GitHub and press Sync fork, then Update branch. Cloudflare builds and deploys it by itself; you can watch it under your Worker's Deployments. If nothing happens, start a deploy there.
- Check: open your Worker's address with
/healthat the end, such ashttps://commafeed-opds.yourname.workers.dev/health. It should sayok.
More detail, including what to do if you changed wrangler.toml, is in the
Worker's README.
-
Which apps will use it?
-
Accounts you need.
-
Your choices. The reader signs in to the Worker with a path token (typed once in each app) or with a user name and password.
You choose the password when the command below asks for it; it is not entered on this page.
-
Deploy. In a terminal, one line at a time. Each
secret putasks for its value: paste it and press Enter.wrangler loginopens the browser to sign in to Cloudflare.At the end
wrangler deployprints your Worker's address, such ashttps://commafeed-opds.yourname.workers.dev. Prefer the dashboard to the terminal? The Worker's README has that way too. Already have a Worker from before? See Update it above. -
On the reader. Paste the address
wrangler deployprinted:First check it: open the health check; it should say
ok. Then type these on the reader (each field opens the keyboard):Keep the token like a password: anyone with it can read your feeds through the Worker. A new token is a
secret put OPDS_TOKENaway.