Local backups, saving space, access to you data offline.

Let's say you use 10 apps and each app uses 1gb of space.

If those 10 apps used the local relay they would all just use 1 gb.

Local relays could also implement something to be used as a proxy relay reducing the number of connections an app needs to make

Reply to this note

Please Login to reply.

Discussion

Is there a mechanism for a client to indicate an event can be flushed from the relay?

Not at the moment

ndk supports the use of client or server-side caches. It currently stores every event it receives and begins flushing older(?) events when it reaches a configurable limit of 10,000.

I think a cache adapter for a local relay would be nice. It could simply look for a local relay on localhost:4869 and use that if it exists; optionally fallbacking to the in-browser dexie adapter.

What do you think nostr:npub1zuuajd7u3sx8xu92yav9jwxpr839cs0kc3q6t56vd5u9q033xmhsk6c2uc nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft?

Thanks for your work on both this and Amber btw