Add a single feed endpoint to a Hono app that serves RSS, Atom, and JSON Feed automatically.
Replace hand rolled feed XML that breaks on special characters or wrong date formats.
Serve feeds with correct ETag and 304 caching behavior without writing it yourself.
Pin fixed routes like rss.xml or feed.json when a project needs one specific format.
| otnc/hono-feed | 8thpark/geode | codeweb-dev/spark-ui | |
|---|---|---|---|
| Stars | 25 | 25 | 25 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | — |
| Complexity | 2/5 | 2/5 | — |
| Audience | developer | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Hono app, hono itself is a peer dependency.
hono-feed is a small library that adds correct RSS, Atom, and JSON Feed output to Hono, a lightweight web framework used for building APIs that can run on Cloudflare Workers, Deno, Bun, and Node. Serving a feed looks simple at first, but there are a lot of small rules to get right: each date needs the exact format its spec expects, text needs to be escaped so special characters do not break the XML, repeated requests should be answered with a 304 response when nothing changed, and different readers ask for different formats through the request's Accept header. hono-feed handles all of that so a developer only has to describe the feed once. The README compares this to two common alternatives. Writing the XML by hand is fragile: a title containing an ampersand or a less than sign breaks the output, and JavaScript's built in date formatting does not match what RSS actually requires. Using a general feed building library fixes the escaping and dates, but that kind of library only hands back a plain string, leaving content negotiation, ETag and 304 handling, and correct headers as separate work. hono-feed's own serveFeed function returns a ready made HTTP response instead, with all three feed formats supported and chosen automatically based on what the requester asks for. The library has zero runtime dependencies beyond Hono itself and is built only on Web Standard APIs, so the same code runs unchanged across Cloudflare Workers, Vercel Edge, Deno, Bun, and Node without needing Node specific built ins or compatibility flags. A typical use is to define a Feed with a title, link, and items, then pass it to serveFeed inside a single route, which then replies with RSS by default, or Atom or JSON Feed depending on the client's request. Separate fixed routes like rss.xml, atom.xml, and feed.json can also be set up if a project wants to pin a specific format rather than negotiate it. The full README is longer than what was shown.
A small library that adds spec correct RSS, Atom, and JSON Feed responses to Hono apps, handling format negotiation, caching headers, and escaping automatically.
Mainly TypeScript. The stack also includes TypeScript, Hono.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.