{"repo":"hash-anu/snkv","free":true,"listed":false,"github":"https://github.com/hash-anu/snkv","clone":"git clone https://github.com/hash-anu/snkv.git","description":"SNKV — a lightweight key-value store focused on simplicity, security and performance file based database , written using sqlite's b-tree directly. Now supports vector HNSW , Join the discussion: https://discord.gg/EUb4Y5qE","language":"C","stars":79,"topics":["b-tree","kv-store","snkv","acid-transactions","delete-rollback-jounal","wal-journal","argon2id","database","ttl","unum"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"SNKV A simple, crash-safe embedded key-value store SNKV — a simple, crash-safe embedded key-value store --- What is SNKV? SNKV is a lightweight, ACID-compliant embedded key-value store built directly on SQLite's storage engine — without SQL layer. The idea: bypass the SQL layer entirely and talk directly to SQLite's storage engine. No SQL parser. No query planner. No virtual machine. Just a clean KV API on top of a proven, battle-tested storage core. SQLite-grade reliability. KV-first design. Lower overhead for read-heavy and mixed key-value workloads. --- Quick Start Single-header integration — drop it in and go: C/C++ API Reference: hash-anu.github.io/snkv/api.html --- TTL — Native Key Expiry SNKV has built-in TTL (Time-To-Live) support. Keys expire automatically — no background thread, no cron job. Expiry is enforced lazily on access and can be bulk-purged on demand. TTL is supported on both the default store and on column families. Expired keys are lazily deleted on get() and exists() — consistent results without a background thread. --- Encryption SNKV has built-in at-rest encryption. Every value is encrypted with XChaCha20-Poly1305; passwords are stretched with Argon2id. All existing APIs work transparently on encrypted stores. Cryptographic details: XChaCha20-Poly1305 per value · Argon2id KDF (64 MB, 3 iterations) · 40-byte overhead per value · encryption key wiped from memory on close · wrong password returns KVSTORE AUTH FAILED / raises AuthError . --- Vector Search ","default_branch":null,"files":null,"tree":[],"storefront":"/r/hash-anu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hash-anu/snkv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}