FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrouseblogRSS
Public
Like
blogRSS
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/24/2023
README.md

Val Town Blog RSS Feed

View live at: https://stevekrouse-blogRSS.web.val.run

This val returns an RSS feed of the Val Town Blog.

Architecture

  1. Fetch and parse the HTML of https://blog.val.town – @stevekrouse.valTownBlogJSON.
  2. Create an RSS string out of that array of blog objects – @stevekrouse.valTownBlogRSS.
  3. Expose an endpoint that returns that RSS, with appropriate content-type and cache headers – this val, @stevekrouse.blogRSS

Notes

  • This is very inefficient. It refetches and re-parses blog.val.town on every single request, modulo some caching via the headers. It would be much more efficient to cache the results of fetching and parsing the Val Town blog, and then only re-fetch it every 10 minutes or so.
  • Instead of fetching and parsing HTML from super.so, we could get this same data from Notion's API, with a val like @stevekrouse.notionGetDatabase.

Migrated from folder: Archive/blogRSS

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.