I wonder if I can make nostrdb work on the web by replacing the mmap call in lmdb with malloc 🤔 the database wouldn’t be persistent between runs but it would enable a fast local relay with a multithreaded webworker note ingester within the browser. I will experiment 🧪
Discussion
Snort has a full sqlite database in a worker, it works very well
Idk does LMDB support non-memory mapped files? If it does then you could just use the FileSystem API which sqlite-wasm uses and have full lmdb in browser, that would be epic.
https://git.v0l.io/Kieran/snort/src/branch/main/packages/worker-relay
That sounds like a great idea. Carry on.
+ opfs, and then it maybe could persist between runs, no?
