Public
Like
rss-generator
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v52View latest version
A generic RSS feed generator that creates RSS feeds for blogs that don't provide their own. Uses a JSON manifest to configure scraping rules for any blog, making it easy to add new sources without writing code.
- JSON Configuration: Define blogs and scraping rules in
/backend/blogs.json - Automated Scraping: Cron job runs hourly to scrape configured blogs
- RSS Generation: Converts scraped posts to valid RSS XML
- Feed Serving: Access feeds at
/rss/<slug>.xml
- HTTP API (
/backend/index.ts): Serves RSS feeds via Hono routing - Cron Scraper (
/backend/cron_generateFeeds.ts): Hourly blog scraping and RSS generation - Generic Scraper (
/backend/scraper.ts): CSS selector-based blog parsing - RSS Generator (
/backend/rss.ts): Converts posts to RSS XML format
- Neynar Blog:
/rss/neynar.xml- https://artivilla--442b5b3e6f9511f08f640224a6c84d84.web.val.run/rss/neynar.xml
- Add a new entry to
/backend/blogs.jsonwith CSS selectors - The cron job will automatically pick it up on the next run
- Feed will be available at
/rss/<your-slug>.xml
GET /- Interactive status dashboard showing all feeds and their last successful generation timesGET /rss/<slug>.xml- RSS feed for a specific blogGET /feeds- JSON list of available feeds (legacy)GET /status- JSON status of all feeds with metadata
- Uses Val Town Blob Storage with single key per feed:
rss_{slug}.xml - Feeds are updated only on successful scrapes
- Stale feeds are served indefinitely until next successful update