#nostr #lmdb #backed #embedded #unfairly

nostrdb

An unfairly fast embedded nostr database backed by lmdb

12 releases

0.3.4 Jun 28, 2024
0.3.3 Apr 27, 2024
0.2.0 Feb 10, 2024
0.1.6 Dec 31, 2023

#1166 in Database interfaces

Download history 94/week @ 2024-07-25 74/week @ 2024-08-01 139/week @ 2024-08-08 166/week @ 2024-08-15 112/week @ 2024-08-22 201/week @ 2024-08-29 185/week @ 2024-09-05 116/week @ 2024-09-12 204/week @ 2024-09-19 151/week @ 2024-09-26 55/week @ 2024-10-03 48/week @ 2024-10-10 78/week @ 2024-10-17 95/week @ 2024-10-24 318/week @ 2024-10-31 163/week @ 2024-11-07

662 downloads per month
Used in 2 crates (via nostr-ndb)

GPL-3.0-or-later

6.5MB
86K SLoC

C 75K SLoC // 0.1% comments Rust 9K SLoC // 0.0% comments GNU Style Assembly 754 SLoC // 0.1% comments Shell 534 SLoC // 0.1% comments Swift 270 SLoC // 0.0% comments Automake 226 SLoC // 0.1% comments FlatBuffers Schema 172 SLoC // 0.1% comments Python 75 SLoC // 0.2% comments M4 61 SLoC // 0.1% comments

Contains (static library, 175KB) nostrdb/src/bolt11/libnostrdb.a, (obscure autoconf code, 20KB) nostrdb/deps/secp256k1/configure.ac

nostrdb-rs

ci docs

nostrdb in Rust!

Dependencies

~4–12MB
~134K SLoC