What I learned trying to rank all of Nostr
- Why I built Lode, and why I stopped
- Most of the river is not for humans
- Almost half of the readable content comes from the Fediverse
- Freshness fools the numbers
- What ranked well, and what did not
- Building the app
- Why it stopped, and what you can take
Why I built Lode, and why I stopped
Nostr is full of good content, but most clients show it in time order, from the people you already follow. Finding the gems takes work. Lode was my attempt to fix that: a full-screen feed, one item at a time, where each next item is the best Nostr can show you, ranked by a server that learns from how you scroll.
I built it in a day, from one evening to the next. It works end to end on my laptop: a server collects events from public relays into Postgres, ranks them, and feeds a Flutter app. It runs nowhere else, because hosting that server costs more than I want to spend on an experiment. The code is now public and paused. This is what I learned building it.
Most of the river is not for humans
Most of what relays carry was never meant to be read. Over a 30-day backfill from 11 relays, Lode stored 16.7 million events and turned away 24.9 million more, because their author had already posted 300 that day. The most active humans I found stayed under about 230 a day; machines posted thousands.
On 2 December, 168 authors posted 94% of all top-level notes: random strings, encrypted payloads, presence heartbeats. Apps publish WebRTC signaling and encrypted messages as kind 1 notes. That machine output was 5% of top-level content even after the cap.
A daily cap per author does not stop a patient attacker. One phishing campaign linking a single domain posted 498,000 top-level notes from 2,001 keys, each key staying under the cap: 16% of all the content I held. Its notes mix Latin letters with Cherokee and Greek ones that look alike (“ᎩΟur Ꮪolana wallet”), which also fools language detection.
So the first job of a global feed is not ranking, it is deciding what counts as content. Cheap checks went a long way: a daily cap per author at ingestion, dropping machine payloads, and two signals for the ranker, look-alike letters and how often items linking the same domain get engaged with.
Almost half of the readable content comes from the Fediverse
Over three days, posts bridged from Mastodon and other ActivityPub servers by Mostr made up about 45% of the notes Lode could show. Outside English, they are most of what exists: 90% of Dutch posts, 86% of German, 70% of Japanese, 55% of French.
Native Nostr users gave them only 2.8% of their engagements, and follow few of them: bridged accounts are 1.1% of what people follow. At equal exposure, people engaged with a human Mastodon author about as much as with a native one.
Freshness fools the numbers
Public reactions on Nostr mostly measure what people’s clients showed them, not what they like. I learned it by testing rankers on public reactions, since Lode never had users of its own.
The test replays a week of Nostr. Each engagement (a reaction, repost, zap, quote, comment or highlight) becomes a case: the engaged item is hidden among 999 others from the same three days, and a ranker scores if it puts that item in its top 10. Replies do not count, since a reply can be a disagreement and reply spam inflates them.
The first results flattered “newest first”: it found the engaged item in 40.5% of cases. That is not taste. People react to notes minutes old because their clients show the newest first. When I scored each of the 999 others at the moment it was as old as the engaged item, “newest” fell to 0.9%, no better than random.
The second trap is where the 999 come from. Drawn from everything published, they are mostly bots, and the test mostly measures junk filtering. Drawn only from items someone else engaged with, and scored at the same age, they leave nothing to measure but taste. Any offline evaluation of a Nostr ranker needs both corrections, or it grades the client the reactions came from.
What ranked well, and what did not
A model that learns how to combine signals beat every single signal by a wide margin. In the hardest test, gradient-boosted trees over 16 features found the engaged item in two cases out of three.

Lode offline evaluation, run of 2026-12-03 on 30 days of Nostr.
One idea from the design, meant to make Lode fair to creators, failed. I wanted to score engagement against the author’s reach, so that five likes for an author with 20 followers beat fifty for one with 50,000. On its own, that ranker came second to last, at a quarter of raw popularity. Yet the linear model learned a milder form of it: once it knows an author’s average engagement (weight +0.99), more followers count against them (-0.60).
Spam failed without a moderation layer, as the design hoped. The models learn what people engage with, and people do not engage with phishing. Look-alike letters got a negative weight (-0.48), and the engagement of other items linking the same domain a positive one (+0.41).
The offline score is also optimistic. Replayed through the actual feed server, the engaged item competes with about 1,900 candidates per request, drawn from seven sources. There the trees put it in the top 10 for 25% of engagements, and for 2 to 4% when the viewer is a newcomer known only by their device language. A newcomer’s first page is still the hard part.
Building the app
The app is built with Flutter on dostr, my Dart Nostr packages. Three notes from building it:
- No sign-up. The app makes a keypair at first launch and signs every request to the server with NIP-98, so the server needs no accounts. It suggests a backup (a NIP-49 ncryptsec, or a plain nsec) after the third like, once the account has something to lose.
- Relay lists are full of dead ends. Many NIP-65 lists start with paid, private or dead relays. A like goes to four relays at a time until one accepts it.
- Kind 1 is not Markdown. A single
*or_is an emote, a kaomoji or part of a name, and>starts a greentext. Notes only get bold, links, inline code and headings; articles (NIP-23) get full Markdown.
Why it stopped, and what you can take
Lode stopped at the server bill. A global feed has to ingest every relay without pause (16.7 million events kept in 30 days, after the cap), embed the content and retrain its ranker every 15 minutes. My laptop handled that for a test; hosting it for real users is a monthly cost I chose not to pay for an experiment.
The code is public at github.com/nogringo/lode. These parts need no ranking server:
- The text checks in
server/src/lode/texts.py: look-alike letters, machine payloads, content warnings and language. A cheap spam filter for a relay or a client. - The offline evaluation, with negatives scored at the same age, for anyone testing a feed algorithm on public reactions.
- The Flutter feed: full-screen notes and articles, the video player pool, NIP-98 requests and key backup.
Lode never became a product. It did show me what Nostr looks like from the inside, and what a feed has to get right before ranking even starts.
Write a comment