When you build on #purplestack none of the nostr events come *directly* from relays.

Everything rendered on screen comes from a fast local database, that a websocket pool writes too.

This means that by default all apps built with this stack are local-first and should work decently offline.

Reply to this note

Please Login to reply.

Discussion

this is the way

Would love to use nostrdb for this. One day.

just need dart bindings i guess

Yes por favor!

That said i'm surprised with the performance of SQLite with memory mapping

I think I'm still doing something wrong as it seems to go first check online before giving me any data, instead of just already serving me the local stuff straight away. Or my emulator is just slow AF.

Clearly not a query pro yet.

Hard to say which version you are running. The default source should be LocalAndRemoteSource(background: true) for the query provider, double check. Should only block on the first load and never thereafter