Show HN: Kvdb – a lightweight embedded key-value database written in Zig

A lightweight, high-performance embedded key-value database written in Zig, featuring B-tree indexing, Write-Ahead Logging (WAL) for durability, and ACID transactions. - lispking/kvdb
3 points by lispking 204 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

Hi HN,

I’ve been building a small embedded key-value database in Zig:

https://github.com/lispking/kvdb

It’s a from-scratch project meant to explore storage engine internals in a compact codebase. Right now it has:

* B-tree indexing

* WAL-based durability and crash recovery

* ACID transactions

* 4 KB page-based storage

* in-memory page cache

* zero external dependencies

* a CLI for basic operations

I also added prebuilt binaries and a simple Zig API.

Still very early, but usable enough for experimentation. I’d especially appreciate feedback on the storage/WAL design and what would make a project like this more compelling to other Zig developers.

Thanks.

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open