Damus

Recent Notes

semisol · 1d
they shouldn't be! the auth message is static, and a client shouldn't sign/prompt multiple times
balas profile picture
why does a relay need an auth every 30s? is this a way to alienate those that use a browser extension without auto-approve?
4💯1
semisol · 1d
nostr.land only sends auth on connect and after auth-required: because some frameworks to my knowledge expect an auth message to be sent alongside auth-required, not just at the start, unfortunately...
Laan Tungir · 1w
I've been thinking about how to define skills in Didactyl, my Nostr-based agentic system. Think OpenClaw, but better. Not your keys, not your agent. I've written a simple demo page to demonstrate ho...
balas profile picture
skills should not be addressable events, they should be simple non-editable events so we can garantee their immutability and not get rug-skilled by adding something that might turn evil later. I know editing is cool but in this case better delete and create a fresh one just to make sure we always have the right skill.
1
Laan Tungir · 1w
Hmmm, interesting. I was actually today wondering if it would make sense to... get git involved.
cloud fodder · 3w
yeah, I'll get around to it. I was trying to decide if i should use nostr:npub, or nostr:nprofile.. any thoughts on that?
elsat · 3w
nostr:npub1nmr6w7qk0ta36vxysv77jv3d5rqghfc6d8sez8240rf3gja4vsmsd2yha8 forgot to mention there are diminishing returns after 20 connections. I think your chrome testing was capped around 30?
balas profile picture
At the moment with the current state of nostr, just for outbox I agree that there are diminishing returns after about 20 or so relays, but in addition to the outbox relays, the app still needs to open more connections to find replies. Turns out chrome is fine, it was Brave Shields preventing more connections.
elsat · 3w
I had a asked the question of how much better is outbox than a static relay list two years ago. No dev was interested to answer, so I did the benchmarks to find out. Found one bug in an existing ...
balas profile picture
that's great! did you reach any conclusions on the original question?

alphaama's outbox code is pretty straightforward if you're curious. here's a quick summary:

For each author pubkey in the query, look up their declared relays (from their kind-10002 events).
Build a map of relay → list of authors that use it. Skip relays turned off.
Each author is limited to at most "outbox_max" relays (default is 3), preferring relays with the most authors.
Your own read relays are always included with all authors as a fallback.
Authors with no known relays go into a "none" bucket that get spread across all selected relays.
1
elsat · 3w
I’ll dig into alphaama. For me it’s all a learning. Here are some things from the outbox report. https://image.nostr.build/a6c4ed2c5a32e4fe64cbf94c27ac2f40dd7d0f246fbc158145a7eba57392e66b.jpg https://image.nostr.build/2409cc106a24cba31d1fcd32e494d331568ae1d93eaa55bc95b3323170791eeb.jpg https:...
Jasmine Star · 3w
It’s clearly for the person who actually enjoys reading a 50-page README for fun. For the rest of us, “exhaustive” is just a polite way of saying it’s a high-speed ticket to a nap. 😴😏
elsat · 3w
I had a asked the question of how much better is outbox than a static relay list two years ago. No dev was interested to answer, so I did the benchmarks to find out. Found one bug in an existing outbox implementation, and got some results on comparing outbox algos. It is useful for me, and I ...
elsat · 3w
Chromium on Mac
elsat · 3w
nostr:npub1nmr6w7qk0ta36vxysv77jv3d5rqghfc6d8sez8240rf3gja4vsmsd2yha8 what do you think ser https://github.com/nostrability/outbox/pull/2
elsat · 3w
Is this outbox?
balas profile picture
related but not really. It's more an issue with the browsers themselves than nostr but related because nostr needs those connections open for outbox.
created this test file: https://wip.alphaama.com/ma/ws_test.html
my results are Safari and Chrome load most (except dead ones), Chromium is hit or miss, depends if I have multiple windows using connections already I think, Brave doesn't open more than 28 connections on my system.
if you want to test in your browsers and post the results would be great!
2
elsat · 3w
Will do. I’ve been measuring outbox benchmarks of various models
elsat · 3w
From the following relay list of 100 wss://relay.damus.io wss://relay.nostr.band ...