Avatar
jleger2023
597b42de56a9e0c19ee2d0cde5797dd58d48ce8dd25c732b4c873af11161f9fd
#Bitcoin 25+ year dev NostrGram (Nostr client): https://nostrgram.co/ YouTube: https://youtube.com/@regardingbitcoin Substack: https://jonathanleger.substack.com

Ok NostrGram users (should I call you NGs, kind of like OGs -- or is there a better acronym/name? Give me your suggestions in the replies!)

I'm about to dive into the code that should greatly improve the efficiency and performance of both the Following and *especially* the Friends+ feed. My goal is to allow Friends+ to load notes from a graph of up to 10,000 connections rather than the current limit of 2,000. I think I can do it.

Will report back when I have something to show.

πŸ™ for the ⚑ -- and a very **BIG** πŸ™ to the person who sent the 133k ⚑ just now!

FYI to save load on the NostrGram database server, only the relays that respond first are getting added to the note records now. So if you don't see your relay in the list of relays in the Note Info (or below the note if you have that enabled in settings), it doesn't necessarily mean it didn't get the note, just that it responded more slowly.

The nice side benefit of this is that you can see which relays are responding fastest because they'll be the ones shown in the relay list. Good info to have when deciding which relays to use.

Ok it should work now, though it will be slow. Following counts are at the point where it's time to revamp the way both the Following and Friends+ feeds are loaded, so I'll be working on that immediately.

It might still have a memory issue. I'll take a look. It's working for me and should be limiting results if you follow a lot of people.

It's been available for quite a while. Just click the mute icon (red πŸ”‰) on their profile.

Got lots of building done today. Now it's time for bed. I have a busy day tomorrow but will try to get some building done tomorrow evening. Lots on the to-do list. Goodnight all. πŸ›Œ

NOSTRGRAM TECHIE UPDATE - NOTE RELAY LIST

For those like me who love the technical details, you can see the JSON structure of any note plus the list of relays it was seen at by clicking the ellipsis in the note actions list and then clicking Note Info.

However, if you want the list of relays to be shown beneath the notes in the feeds, there's a new option in Settings (βš™οΈ) that's off by default: "Show relay list beneath note actions"

It's near the bottom of settings. Enable it and you'll see the list of relays beneath the notes (with paid relays prefixed by a πŸ’²).

Try it out at https://nostrgram.co/

Already in NostrGram? Refresh the page to get the update.

Ah ok. Let me give it some thought and see what I can do. I know mobile users need a better solution than password entry.

I'm not familiar with Teams so I'm afraid I wouldn't know how to help.

Since cutting out the most spamming relays, the NostrGram database load dropped so much that I was able to double the number of relays that it's indexing without affecting performance at all. That guarantees even better relay coverage when you use Nostrgram. #[1]

I've been thinking of a secure way to do this. Is there a reason you're not using a Nip07 extension? Mobile?

πŸ‘€πŸ€― THE MOST SPAMMING NOSTR RELAYS LIST

I put together a list of the most spamming relays to see if any particular relay(s) are the biggest source of the spam issues. As it turns out, there are 4 that are by far the worst offenders.

What I did was take the number of posts over the last 24 hours to the relay (as indexed in NostrGram) and divided that by the number of users for that relay. I keep stats on how many users each relay has, and rebuild those stats a couple of times a day.

As it turns out, the worst offenders BY FAR are:

**relay, post count (24 hrs), user count, posts/user (24 hours)**

wss://relay.nostr.bg, 74892, 6544, 11.4

wss://nostr-relay.digitalmob.ro, 65063, 194, 335.4

wss://nostr.drss.io, 56028, 467, 120

wss://nostr.einundzwanzig.space, 36742, 453, 81.1

Since paid relays are the most likely to reflect how often real people post on average, I checked the average of all the paid relays in terms of posts per user per day. They average 1.2 posts per user per day (the Damus relay also averages about 1.1 per day).

**The top 4 worst offenders average 140 posts per user per day.** 🀯

I am removing those 4 relays from NostrGram indexing effectively immediately, and I recommend you remove them from your read/write list as well to prevent performance issues on whatever client you use.

s/o to #[0] for suggesting I put together some metrics

I've been thinking about how to crowdsource funding for the continual development of NostrGram and it's hardware costs (which will be rising soon as Nostr grows in popularity -- 150gb in bandwidth used so far this month!). I'm thinking of doing something like a Patreon where people can support the project and get a badge on their profile (if they want) showing their support, along with a higher priority for feature requests, that kind of thing.

If you are willing to support NostrGram in this way, what kind of benefits would be nice to have for doing so? I'm all for value-for-value, so those willing to pony up even a few dollars a month/year in support of the project certainly deserve some preferential treatment and priority.

I want to keep all the features free for everyone if at all possible. Some folks simply can't afford it. I get a lot of traffic from a lot of countries.

One sat won't cover the costs of high performance servers required to handle the load public relays will eventually be up against. The question is, how does a cheap/basically free relay raise money if it's not the client and can't push the fundraising message in front of the users? Then there's the spam problem. If a solution is forthcoming I'm all in favor. It's just a tough problem.

For the time being most people writing to paid relays also write to the public ones, and multiple clients read from paid and public (just not on Global), so new folks who are only using public relays will still be seen and interacted with. But the public relays need to figure out the spam problem or they won't last. It's a tough problem to be sure (I battle with it to keep NostrGram's database from being overloaded by it) but unless a solid solution is forthcoming they'll get buried in spam.