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: v2View 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
- 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
- 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