Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 4
Generated: 20:46:23
A first draft of a crazy idea, a framework for a multi-threaded web app framework. If nostr web apps were built like this then they would only make a single relay connection for all open tabs and all open tabs would sync profiles / events / follow lists. No idea how far ill get but this does look possible... 🤔 image
2025-12-08 14:30:41 from 1 relay(s) 1 replies ↓
Login to reply

Replies (4)

The idea is the bulk of the apps nostr logic (connections, event storage, subscriptions) are handled in a service worker so that the main rendering thread in the tabs don't lock up so much. also in theory this should be more efferent since the service worker can handle the signature verification and duplicate events from multiple relays
2025-12-08 16:25:18 from 1 relay(s) ↑ Parent 1 replies ↓ Reply
IndexedDB is the reason I'm looking to make multiple threads. getting sick of it freezing the main thread. but its built-in to all browsers so it makes sense to use it as a default Then maybe have an option to detect and use the local nostr-relay-tray or a SQLite WASM database
2025-12-08 16:39:20 from 1 relay(s) ↑ Parent Reply