krestenkrab/hanoidb
54.1
Adequate · 13 November 2026
3.8k
lines of production code
Erlang
primary language
8
measurements over time
What this system is
HanoiDB is a log-structured merge tree (LSM) key/value storage engine implemented in Erlang. It provides core storage operations including configurable key expiration and concurrent data folding via worker processes. The system includes benchmarking tools and a comprehensive test suite to validate its architecture.
Features
Add header files for hanoidb and plain\_rpc modules
New header files are introduced to support the hanoidb (LSM-trees indexed storage) and plain\_rpc (RPC module) components. The hanoidb header defines a key\_range record for managing key intervals and an async fold chunk size constant. The plain\_rpc header provides macros for call, reply, and cast message structures, facilitating remote procedure call interactions.
include · high confidence
Added HanoiDB benchmark driver and visualization tools
Users can now run benchmarks against HanoiDB, an LSM-tree based storage engine, using the new basho\_bench\_driver\_hanoidb.erl module. Additionally, a shell script (visualize-hanoi.sh) is provided to monitor and visualize the state of HanoiDB data files during benchmarking.
tools · high confidence
Added design diagrams for the Hanoi project
A new file, doc/design\_diagrams.graffle, was added to the repository. This file contains design diagrams for the Hanoi project, which was previously known as lsm-btree. The diagrams provide visual representations of the system's architecture and design.
doc · high confidence
Initial release of HanoiDB, a log-structured merge tree key/value storage engine
HanoiDB is introduced as an indexed, key/value storage engine based on a log-structured merge tree (LSM-BTree) architecture. The release includes the core Erlang implementation, a Makefile for building and testing, and configuration options for compression, expiry, and merge strategies. The project is licensed under the Apache 2.0 license and includes design documentation explaining the storage mechanics.
(repo-wide) · high confidence
Behavioural changes
Introduce hanoidb storage engine with configurable expiry and concurrent folds
The hanoidb module now supports per-key and global key expiration via the \expiry\_secs\ configuration option, allowing keys to automatically expire after a specified duration. Additionally, the \open\ and \open\_link\ functions now accept a \spawn\_opt\ option to configure the process flags for the underlying gen\_server, and the \fold\ and \fold\_range\ operations are now handled by dedicated worker processes to improve concurrency and prevent blocking.
src · high confidence
Test coverage
Added test suite for hanoidb storage engine
Added new test files (hanoidb\_drv, hanoidb\_merger\_tests, hanoidb\_tests, hanoidb\_writer\_tests) that provide unit and property-based testing for the hanoidb LSM-tree implementation, including drive modules, merger logic, and writer/reader operations.
test · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 54 → 54 (-0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 92 → 92 (+0.0)
- Architecture 99 → 99 (-0.1)
- Maturity 60 → 60 (+0.0)
- Readiness 37 → 37 (+0.0)
- Security 67 → 67 (+0.0)
New (8)
- Edited copy of a member (10 corresponding lines) (src/vbisect.erl)
- Edited copy of a member (19 corresponding lines) (src/vbisect.erl)
- Edited copy of a member (20 corresponding lines) (src/hanoidb_merger.erl)
- Edited copy of a member (27 corresponding lines) (src/hanoidb_merger.erl)
- Edited copy of a member (3 corresponding lines) (src/hanoidb_reader.erl)
- Edited copy of a member (6 corresponding lines) (src/hanoidb_reader.erl)
- Edited copy of a member (8 corresponding lines) (src/hanoidb.erl)
- Edited copy of a member (8 corresponding lines) (src/hanoidb.erl)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
krestenkrab/hanoidb was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 68333fa51a6fdf27834fc84f42d4421f9627e3b7 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.