Automating Feeds with FreshRSS
I said I would check it out this weekend, but I couldn't help myself and I setup FreshRSS on my Beelink SER8. While I'm not a fan of the web UI for reading through feeds, the power is the API functionality. Since it uses both the greader and fever API standards for RSS, I can use my API endpoint and credentials with an app like NetNewsWire and completely control everything from there! It gets better though 🌝
One thing I wanted with feeds is an easy way to access it via JSON or OPML. My old flow involved exporting my list as an OPML file, converting it to markdown, then updating my /feeds page with the updated info. It was exhausting tbh. Now I have a much better flow where I can add feeds to NetNewsWire, and they will immediately be accessed through the FreshRSS API. Now this API is private and requires authentication, so I built a simple proxy with Hono + Cloudflare workers so anyone can at least access the feeds with JSON or OPML!
# JSON
curl https://feeds.stevedylan.dev?format=json
# OPML
curl https://feeds.stevedylan.dev?format=opml -o feeds.opml
The JSON format makes it much simpler to work with in other applications, for instance now if I want to updated the hard-coded markdown links on my feeds page, I can just run a feeds
bash script to fetch from the API, format as markdown using jq
, then copy to clipboard. Oh yeah. It's CLEAN.
Here's some links if you want to check it out more!