hzrd149 on Nostr: Out of all the apps and libraries I've built I'm probably most proud of the ...
Out of all the apps and libraries I've built I'm probably most proud of the applesauce-relay package.
In ~1.5k lines of code I've managed to build the cleanest API for connecting to relays, and its all stream based so its super flexible.
Also did I mention it also supports client side negentrapy sync? ( although I haven't found a use for it yet 😥 )
Released and update to applesauce-relay that allows subscription filters to be updated on the fly
https://hzrd149.github.io/applesauce/overview/relays.html#updating-filters
This allows clients create a subscription before the filters are ready and update it based on some other value that is changing ( users contacts or pubkey maybe )
Thanks to victor (npub18va…7nzf) for giving me the idea :)
Published at
2025-05-10 16:45:18Event JSON
{
"id": "35f828922fc1b7339dada46ca91a6a10b73cf14fcdf153cb51cd4f360b47bcc1",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1746895518,
"kind": 1,
"tags": [
[
"q",
"71572478a92609b030a108ad0b693bea42e2ac5f813d0062cc3368840024a97b",
"wss://nostrue.com/",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "Out of all the apps and libraries I've built I'm probably most proud of the applesauce-relay package.\nIn ~1.5k lines of code I've managed to build the cleanest API for connecting to relays, and its all stream based so its super flexible.\nAlso did I mention it also supports client side negentrapy sync? ( although I haven't found a use for it yet 😥 )\n\nnostr:nevent1qvzqqqqqqypzqfngzhsvjggdlgeycm96x4emzjlwf8dyyzdfg4hefp89zpkdgz99qyf8wumn8ghj7mn0wd68yat99e3k7mf0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qpqw9tjg79fycymqv9ppzksk6fmafpw9tzlsy7sqckvxd5ggqpy49as5x0yxh",
"sig": "782732866426f549f4b12953f528679315267b7084f151d493d619c8530c848a1c7d98800390d4e487c5036b4e67877178772446f37e5e678950947ae92305e1"
}