SnkvDB
Single-header ACID KV store using SQLite's B-Tree engine
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
I built *snkvDB* — a single-header, ACID-compliant key-value store with zero setup.https://github.com/hash-anu/snkv### Why I built thisI wanted something as simple as a hashmap, but:* persistent * crash-safe * no external dependencies * easy to drop into any C/C++ projectMost KV stores are either:* too heavy (servers, background processes), or * too low-level (you manage everything)snkvDB tries to sit in between.---### What it is* Single-header KV store (just include and use) * ACID compliant (thanks to SQLite) * No server, no config, no build system required * Works like a simple embedded database---### Under the hoodsnkvDB is built on SQLite’s storage engine (B-Tree backend), so you get:* durability * transactions * mature, battle-tested storageBut the API is simplified to a minimal KV interface.---### When to use it* Embedding storage in CLI tools or small apps * Replacing ad-hoc file storage * Lightweight persistence without running a DB server---### BenchmarksI’ve compared it with RocksDB and LMDB here: https://github.com/hash-anu/snkvTL;DR:* Faster than RocksDB for small/medium workloads * Easier to use than LMDB * Balanced read/write performance---### Trade-offs* Not for write-heavy, high-throughput workloads (RocksDB is better there) * LMDB can be faster for pure reads * This prioritizes simplicity + safety over raw performance---Would love feedback, especially on:* API design * performance * real-world use cases
HN · launched Feb 16, 2026 · 5 upvotes (top 89%) · 1 view
Niche: database management systems and engines · 162 launches, 5 in the last 7 days ▼ -17% · Explore this niche →
Category and tags
- Horizontal
- Data infrastructure
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 162 launches in database management systems and engines →
Could you build this?
Partial While it wraps SQLite's existing B-Tree implementation into a single C header, doing so requires intimate familiarity with SQLite's internal source files, paging subsystems, and memory layouts.
What it would actually take: The project extracts SQLite's internal `btree.c`/`pager.c` layer and exposes a simplified key-value API in C. The hard part is uncoupling the SQLite B-tree/pager subsystems from the SQL parser/VDBE without breaking transactional consistency and recovery logic. It requires strong C systems engineering and deep knowledge of SQLite internals.
Discussion
1 comment analyzed.
Competitors
Other products that read as similar to this one : 175 launches clear the similarity bar, closest 8 shown.
Attention rank: #166 of 176 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 107 days after the earliest competitor.
- SNKV · hn · 2026-02-24 · 36 upvotes · similarity 0.74
- Minikv · hn · 2026-01-17 · 35 upvotes · similarity 0.50
- Minikv · hn · 2026-02-03 · 71 upvotes · similarity 0.49
- yq-DB · ph · 2026-10-13 · 1 upvotes · similarity 0.47
- Turbolite · hn · 2026-03-26 · 185 upvotes · similarity 0.45
- UnisonDB · hn · 2025-11-01 · 17 upvotes · similarity 0.45
- S2-lite, an open source Stream Store · hn · 2026-01-21 · 77 upvotes · similarity 0.44
- raft-kv-store · github · 2026-10-04 · 34 upvotes · similarity 0.43
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.