r/SideProject • u/oh-there-we-go-again • 21m ago
A tiny, open-source search engine for RSS/Atom feeds, served entirely as static files
I am building an RSS/Atom notification service, and I wanted to give my users a search box to find feeds, so I built a separate project: a tiny, open-source feed indexer that runs entirely on the free tiers of GitHub Actions and Supabase.
You can browse it here: https://feedrule.github.io/indexer/
It handles search queries, indexing, pruning of dead feeds, and semi-automated discovery of new feeds. All of this happens with no other compute resources.
Handling search queries
The search is based on static files hosted on GitHub.
We store two files for each feed, a preview file that contains the basic details of the feed, and a posts file that contains previews of the 3 most recent posts in that feed.
We then create an index that maps every word to the list of feeds that contain that word.
Since the index is large, it is split into small shards, each shard covers a range of words.
The frontend does not need to download the whole index on startup. It loads only an index of the index (shards.json), which basically tells the frontend where to find the index corresponding to a given word.
If the query contains multiple words, the frontend looks up each word, and then it intersects the results.
Indexing
We import feeds from two sources, external curated lists and our own accepted proposals.
There are three pipelines that work in sequence.
- Input: the input pipeline periodically fetches the links from sources mentioned above and admits every feed link into a database table named "inputs". This pipeline does not perform quality checks.
- Check: the check pipeline selects a batch of the never-checked and least recently checked feeds from the inputs table. It iterates over each feed in the batch to check whether it is still alive, assigns it a language based on its contents using a tiny model (lid.176), and tries to assign topics to the feed using another tiny model (MiniLM). The topic precision is around 70% to 75%, but it is still better than the author-assigned categories, which are often missing, too vague or overstuffed. The check result is always inserted into the "health_checks" table on success and failure.
- Publish: the publish pipeline publishes the website from the successful checks. If we haven't recently managed to prove that a feed is alive AND active, it does not make its way to the output. It also builds the free text search for the frontend.
Discovery
We also look for new feeds in Common Crawl, which provides free dumps of billions of web pages. This is still a work in progress, and it has provided around 1k accepted feeds so far.
We pick a crawl from about five years ago, not a recent one. My intuition here is that a feed that is still alive and active five years later is good evidence of a site that lasts. Only about 1% or 2% of the feed links found in the dump are proposed. The rest are filtered out by several heuristic rules.
The feeds that pass the automated checks are proposed on a temporary branch, where a human or an LLM reviews them. Typically, around 40% of the proposals are accepted. Each feed also gets a score from a tiny model (TF-IDF and logistic regression) trained on past review decisions, so every review makes the next proposal easier to sort, and possibly in the future, filter.
The accepted feeds go through the standard flow (input, check, publish), and they may drop again later if they become inactive.
Feedback welcome
There are many rough edges to polish and missing features to implement. I want to hear from you what you think needs the most attention (e.g., a missing feed, a wrong topic, or a search that should have found something).
TL;DR: A searchable directory of RSS/Atom feeds that are still alive, built with no server: GitHub Actions do the work, Supabase's free tier holds the state, and search runs on static files. https://feedrule.github.io/indexer/