Skip to content

rssfetch

A simple RSS feed fetcher and parser built with Elysia.js and Bun.

A free instance is hosted at: rssfetch.vercel.app. Feel free to use it!

  • This project can be directly deployed to Vercel with no additional configuration needed.
  • Click the button below to deploy:

Deploy with Vercel

  • Docker images are available on GHCR.
  1. Install dependencies:

    Terminal window
    bun install
  2. Start the server:

    Terminal window
    bun start

    The server will start on port 3000 by default.

Endpoint: GET /

Query Parameters:

ParameterTypeRequiredDescriptionDefault
urlstringYesThe URL of the RSS feed to fetch.-
typestringNoSort order for articles: latest or oldest.latest
countnumberNoThe number of articles to return.1
stepnumberNoThe offset for pagination (items to skip).0

Example Request:

Fetch the latest 3 articles from an RSS feed:

Terminal window
curl "http://localhost:3000/?url=https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml&count=3"

Example Response:

{
"title": "NYT > Top Stories",
"description": "The New York Times: Top Stories",
"link": "https://www.nytimes.com",
"articles": [
{
"title": "Example Article Title",
"link": "https://www.nytimes.com/2024/01/01/example.html",
"description": "Brief description of the article content.",
"pubDate": "Mon, 01 Jan 2024 12:00:00 GMT"
}
// ... 2 more articles
]
}