frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine

https://github.com/hash-anu/snkv
4•hashmakjsn•4h ago
I built *snkvDB* — a single-header, ACID-compliant key-value store with zero setup.

https://github.com/hash-anu/snkv

### Why I built this

I wanted something as simple as a hashmap, but:

* persistent * crash-safe * no external dependencies * easy to drop into any C/C++ project

Most 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 hood

snkvDB is built on SQLite’s storage engine (B-Tree backend), so you get:

* durability * transactions * mature, battle-tested storage

But 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

---

### Benchmarks

I’ve compared it with RocksDB and LMDB here: https://github.com/hash-anu/snkv

TL;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

Comments

hashmakjsn•4h ago
A quick clarification since the title mentions SQLite:

This is not just a thin wrapper over SQLite.

The goal was to build a *minimal KV interface* (put/get/delete) that feels like a hashmap, while delegating durability + ACID guarantees to SQLite underneath.

So you don’t deal with:

* SQL * schema design * connection management

Just a simple embedded KV store in a single header.

Also happy to explain design decisions or internals if anyone’s curious

Show HN: Simple org-mode web adapter

https://github.com/SpaceTurth/Org-Web-Adapter
23•turth•1h ago•0 comments

Show HN: Maths, CS and AI Compendium

https://github.com/HenryNdubuaku/maths-cs-ai-compendium
4•HenryNdubuaku•2h ago•0 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
264•b44•23h ago•23 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
206•djkurlander•1d ago•86 comments

Show HN: GEDB – A pure-Go embedded database

3•ReturnErr•3h ago•0 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
89•gpasquero•22h ago•37 comments

Show HN: 2d platformer game built with Codex (zero code)

4•armcat•4h ago•4 comments

Show HN: Pangolin: Open-source identity-based VPN (Twingate/Zscaler alternative)

https://github.com/fosrl/pangolin
71•miloschwartz•1d ago•22 comments

Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine

https://github.com/hash-anu/snkv
4•hashmakjsn•4h ago•1 comments

Show HN: Harmonic embeddings beat random init and work frozen – no tokenizer

https://github.com/atech-hub/Wave-Coherence-as-a-Computational-Primitive
2•atech-77•5h ago•1 comments

Show HN: JeffTube

https://jmail.world/jefftube
15•dvrp•13h ago•3 comments

Show HN: Lightwave – Real-time notes app, 3.5 years of hand-rolled JavaScript

43•jv22222•20h ago•29 comments

Show HN: Tanin – TUI Noise Generator

https://github.com/AnonMiraj/Tanin
4•anongazelle•10h ago•2 comments

Show HN: Rover – Embeddable web agent

https://www.rtrvr.ai/blog/10-billion-proof-point-every-website-needs-ai-agent
27•arjunchint•2d ago•14 comments

Show HN: Copy-and-patch compiler for hard real-time Python

https://github.com/Nonannet/copapy
63•Saloc•5d ago•11 comments

Show HN: Animus Invoice – Invoice tracking without the busywork

https://animusinvoice.com/beta.html
2•ilkerozbay•8h ago•0 comments

Show HN: GPU Perpetual Futures Prototype

https://github.com/zacharyfrederick/compex
8•ozzymandiaz96•22h ago•2 comments

Show HN: Off Grid – Run AI text, image gen, vision offline on your phone

https://github.com/alichherawalla/off-grid-mobile
122•ali_chherawalla•1d ago•64 comments

Show HN: Arcmark – macOS bookmark manager that attaches to browser as sidebar

https://github.com/Geek-1001/arcmark
88•ahmed_sulajman•2d ago•20 comments

Show HN: Fieldnotes

https://fieldnote.ink
14•samcgraw•1d ago•8 comments

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

https://github.com/datavorous/sameshi
228•datavorous_•2d ago•68 comments

Show HN: DSCI – Dead Simple CI

https://github.com/melezhik/DSCI
18•melezhik•1d ago•8 comments

Show HN: HackerTok – HN with Local Recommendations

https://hackertok.blode.co
11•mblode•17h ago•4 comments

Show HN: SQL-tap – Real-time SQL traffic viewer for PostgreSQL and MySQL

https://github.com/mickamy/sql-tap
229•mickamy•2d ago•44 comments

Show HN: Untranslated Einstein paper available in English for the first time

https://www.repository.cam.ac.uk/items/0aaee538-3638-4c47-bf5d-1cb4321d6b0b
4•ajw287•12h ago•0 comments

Show HN: Geo Racers – Race from London to Tokyo on a single bus pass

https://geo-racers.com/
148•pattle•4d ago•86 comments

Show HN: Data Engineering Book – An open source, community-driven guide

https://github.com/datascale-ai/data_engineering_book/blob/main/README_en.md
246•xx123122•2d ago•31 comments

Show HN: Katipo is a minimal alternative internet with a Vulkan based browser

https://github.com/mjdave/katipo
4•majicDave•14h ago•3 comments

Show HN: Talk2Code – Text your codebase from your phone (~150 lines of Python)

https://github.com/dchisholm125/Talk2Code
2•dchisholm125•15h ago•2 comments

Show HN: MOL – A programming language where pipelines trace themselves

https://github.com/crux-ecosystem/mol-lang
38•MouneshK•5d ago•16 comments