I'm building a class in TypeScript that manages hundreds of WebSocket connections. Those sockets are Nostr relays.
Most existing Nostr pool libraries are based around finding messages from across all relays in the pool. This library does not do that, and instead focuses on the capabilities of each relay in order to avoid being rate-limited and to optimize network usage.
It is based around the lifecycle of Subscription objects. When a socket dies, it only reopens if a subscription is active. But the lifecycle of the socket itself is separate from the subscription, and a new subscription will not interrupt the state of a socket, eg if it's in exponential backoff. They merely overlap (check each other's state at key moments).
The whole thing is built on web standards. The subscription is an EventTarget, and the system makes heavy use of AbortSignal from top to bottom, greatly simplifying the codebase.
To avoid rate-limiting, it uses semaphores to limit access to each relay, so no one relay is overwhelmed by too many subscriptions. Relays can be individually configured, and it supports loading a giant config map so you can sync with a database to have granular control over relays.
Finally, it is low-level enough to build things on top of it. It requires you to provide explicit relays for each query, and it returns all messages from all relays without any signature verification or validation. Those things, while required for a functioning software, are done outside of the pool for maximum flexibility. It's a feature not a bug.
In conclusion I am building a big Nostr thing that I really need, that nobody has done before in TypeScript. You can see my progress here: https://gitlab.com/soapbox-pub/nostr-machina/-/merge_requests/1
At least it's not in Smalltalk or OCaml.
в чае тоже много кофеина. Я от чая даже ещё хуже сплю чем от кофе
Ты про Nostr? Да плевать. Под мои нужды нынешнего среза более чем.
nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6
Hello. Based on the feedback I received from you, I compiled the Nostr diagram into one page.
There are quite a lot of elements, so I'll just show you the line drawings for now. (I plan to add color once the contents are finalized)
In this illustration, the ostrich was not included in the cast. Instead, machines and robots are used to represent the internal workings of clients and relay servers. I also researched and added Zap while getting advice from various people.
What do you think of this diagram?

It's so overcomplicated that it even hurts me to look at this picture.
Российский (да и в целом) Твиттер это конечно пиздец, но интересно, что грязь там вытаскивают алгоритмы. Представил что с этими персонажами будет если их перенести в Nostr. В принципе пожалуй на вторую неделю они сделают ring of trust, ленту трендов и какую-нибудь команду кураторов против абьюза. Ну и платную подписку само собой.
It feels like the CIA can promote any shit in any field to the masses.
From programming language, to meat in burgers.
People with paranoia are having a very difficult time right now.
и предлагают ещё большую поеботину Ark которую станут хоронить через следующие два года
It's not a question of trust. Google has such a procedure, a private relay owner may or may not have it (nostr.wine seems to keep this data for six months).
Ron Kamonohashi: Deranged Detective - stupid detective #anime. A bit like Gosick.
https://media.nostr.build/av/49a18494aa8c45c9389d0f2dc5f1ef05767234d209bf23a89a6eeaa8ba3dcc51.webm
Not recommended for Sherlock fans.
Remember, a relay with NIP-50 support knows you searched for "little naked girls 5 years old" two months ago. And it'll never forget.
https://www.youtube.com/watch?v=Gj9zbmi6nHY
When I was a kid, I played both versions and didn't notice these differences at all.
#gamestr
ну его нахуй с его геоблоками на lsp, перед кем они стараются выслужиться непонятно. Ну и комиссии опять же никто не отменял, а кормить тех кто на тебя хер кладёт ну такое себе.
After hearing about channels and capacities, normal people will simply stop using LTN. In the case of Lightning, there simply can't be a more beginner-friendly solution than a custodial wallet.
You've got pretty good coverage. Your notes are distributed over a hundred relays.
I don't think it's some "smart move", I'm more convinced it's a consequence of pressure from the US authorities.
Upset by the news from Alby. Really liked their service.

