nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

README.md (648B)


      1 
      2 # nostrdb
      3 
      4 The unfairly fast nostr database backed by lmdb.
      5 
      6 nostrdb stores nostr events as a custom in-memory representation that enables
      7 zero-copy and O(1) access to all note fields. This is similar to flatbuffers
      8 but it is custom built for nostr events.
      9 
     10 These events are then memory-mapped inside lmdb, enabling insanely fast,
     11 zero-copy access and querying.
     12 
     13 This entire design of nostrdb is copied almost entirely from strfry[1], the
     14 fastest nostr relay. The difference is that nostrdb is meant to be embeddable
     15 as a C library into any application, and does not support full relay
     16 functionality (yet?)
     17 
     18 [1]: https://github.com/hoytech/strfry