A lightweight backend proxy for serving my Substack RSS feed to my personal website.
I built this so I could query my Substack RSS feed and display blog posts on my personal site. I ran into CORS issues calling the RSS feed directly from the browser, so I needed a backend to route the API call through. This service is hosted on Render under as free-tier service, which means it will sleep when idle. The first request after a period of inactivity has a ~45 second cold start. One future improvement is to redesign or migrate this service to avoid that latency.
- Python
- Flask
- Deployed via Render
- Clone the repo
- Create & activate a virtual environment (Optional)
- Install dependencies
pip install -r requirements.txt - Run the app entrypoint
- Hit the endpoint via a request from the browser or curl/Postman
GET /api/substack - returns the proxied RSS feed for the substack url given in the app.py variable url
- This service is hosted on Render
- The
render.yamlfile provides a basic python runtime that installs dependencies and starts the appapp.py
- Get rid of any downtime for the backend service and ensure it responds immediately whenever someone views the blog page of my site.
- Add more error handling and testing around any API calls.
- Add additional endpoints for other features.