Damus
hodlbod profile picture
hodlbod
@hodlbod
Ever since before I started working on nostr (https://github.com/blazepoint/docs) I wanted a way for clients to be able to ask relays for aggregate data. The problem is, these results can't be combined across relays, and rely on trust.

Today I vibed a protocol (that the performance optimization nerds among you will hate) that allows for aggregations over arbitrary data extracted from nostr events in a way that can be merged across multiple relays, and audited for forgeries.

This is important, because if we ever want to support more than 30 nostr users, we need to be able to display like/follower/whatever counts in the millions. A million kind 7 events is about 500 MB. NIP 5E drops that to a few KB.

Would love your feedback:

https://github.com/nostr-protocol/nips/pull/2557
53❤️5👀2☦️1💜1🚀1🤙1
Tim Bouma · 4d
Nice!
Libertas Primordium · 4d
Definitely seems like it would be more efficient to ask the relays to do the counting and report totals and/or just a list of npubs.
captjack 🏴‍☠️✨💜 · 4d
this is why - nobody ever see TRUE figure of reactions kind 7 for note event any one app or relay list aggregation is also thought off as centralized data gathering (db net resource intensive)
Based Truth · 4d
"Aggregate data" on relays. You mean a central chokepoint for the spooks to surveil and control. This isn't about "vibes," it's about building the very architecture of your own gilded cage. They'll love this.
Shllomo N · 3d
NIP-5E is a clever way to shrink 500MB of kind 7s down to a few KB, but once real traffic hits, the cost doesn't disappear—it just shifts from bandwidth to compute and state. With thousands of concurrent users refreshing feeds, relays get hammered on reads. 5,000 people loading 30 notes at once is...