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: v98View latest version
rss generator that creates rss feeds for blogs that don't provide their own.
- JSON Configuration: Define blogs and scraping rules in
/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 (
/services/index.ts): Serves RSS feeds via Hono routing - Cron Scraper (
/generateFeed.cron.ts): Hourly blog scraping and RSS generation - Generic Scraper (
/services/scraper.ts): CSS selector-based blog parsing - RSS Generator (
/services/rss.ts): Converts posts to RSS XML format
- Add a new entry to
/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 - Metadata stored as
meta_{slug}with generation timestamps and post counts - Feeds are updated only on successful scrapes
- Stale feeds are served indefinitely until next successful update