Meet the Familiars: a short guide to finding the library you need.
A growing set of small, standalone C++ building blocks, each in its own repository under github.com/Kronuz. This repo is the index: what exists, what each one is for, and how to use them together. The collection spans text, containers, concurrency, networking, storage, search, and the systems work underneath.
Each library gets its own README and tests. Some started inside larger systems; others were written to solve a new problem directly. They belong here when they are useful on their own.
There is no framework here. No umbrella header, no common runtime, no registration step. Each library is one idea with a narrow surface, most are header-only, and you take the two you need and ignore the rest.
Every repo exposes a CMake target named <name>::<name> and pulls its own dependencies
through FetchContent, so linking one target puts the whole transitive header set on your
include path.
include(FetchContent)
FetchContent_Declare(hashes
GIT_REPOSITORY https://github.com/Kronuz/hashes.git
GIT_TAG main)
FetchContent_MakeAvailable(hashes)
target_link_libraries(my_app PRIVATE hashes::hashes)C++20 is the norm, C++17 for a handful. Tests and demos only build when a repo is the
top-level project, so pulling a library in does not build its suite. GIT_TAG main tracks
the tip; pin a SHA when you need reproducibility. Before moving a pin past 2026-10-30, read
docs/UPGRADING-2026-10.md: for every library it lists what changes,
what the move buys and the commits not to pin, and
Updating an application is the
step list for an agent that moves an application's pins. Everything is MIT licensed except
btree (Apache 2.0) and static-string (Boost 1.0, inherited from the 2017 Xapiand import). Some repos bundle third-party code under its own license:
msgpack (Boost 1.0 for msgpack-c), snowball (BSD 3-clause for the generated
stemmers), and unicode (the Unicode License for its tables).
The include filename often differs from the repo name: char-classify gives chars.hh,
constexpr-phf gives phf.hh, enum-reflection gives enum.h. AGENTS.md
lists the real include line for every one.
Every library in the table below builds and runs its tests on Linux (x86_64 with GCC and Clang, arm64),
macOS (arm64, x86_64), and FreeBSD, plus an ASan and UBSan build, through the shared
workflow in .github/workflows/cmake.yml.
Test checks stay active, including in fixtures that deliberately compare debug/release translation units. Compiler jobs enable standard-library hardening; ThreadSanitizer runs where the library has a concurrent API. Active repositories run nightly, dispatched from one place (docs/nightly-ci.md).
tools/preflight.sh runs the same matrix locally, on macOS and on
Linux and FreeBSD VMs, before a push. The other scripts in tools/ compare benchmark
runs (ab_compare.py), check that every public header compiles alone (selfcontained.sh) and list
the first-party pins that are behind (pins.sh); AGENTS.md describes them.
Every active library must provide CI, real CTest cases and the supported platform/sanitizer matrix, following AGENTS.md, Rules of engagement. Pushes, pull requests, manual dispatch and nightly runs use the shared workflow; justified sanitizer exclusions are documented by the library. A local pass does not replace checking the hosted result.
The shared CMake workflow accepts macos_llvm: true for consumers that require standard-library features absent from the runner’s Apple toolchain. It installs Homebrew LLVM and selects its compiler and libc++; the default remains the Apple toolchain.
server is an archived libev prototype superseded architecturally by reactor and http (or prism for an assembled service). Its existing commits remain available; the successors are not drop-in CRTP API replacements.
cluster is archived: its volatile Raft is superseded by consensus, and nothing used its UDP-multicast Bus or LivenessTracker. Its existing commits remain available.
btree is the renamed cpp-btree repository. GitHub redirects the old repository and clone URLs, preserving the project and its stars. Keep the old name unused so the redirect survives. Header paths and the compatibility CMake alias remain available.
Foundations: bytes, strings, parsing. char-classify, static-string, strings,
split, repr, escape, stringified, strict-stox, utype, math, endian,
iterators, lazy
Compile time, hashing, identifiers, containers. constexpr-phf, ctrie, fst, termdict, automata, hashes, crc32c,
enum-reflection, uinteger_t, base-x, cuuid, md5, sha256, random,
bloom-filter, fusefilter, lru-cache, generation-cache, btree, flat-map, persistent-map
Concurrency, time, and the operating system. task, workpool, queue, stash,
scheduler, wheel, atomic-shared-ptr, allocators, nanosleep, epoch, time-point,
times, datetime, residency, io, fs, completion
allocators::resources provides owning byte accounts, allocation adapters and explicit reservation bookkeeping without global allocation interception. Optional allocators::retirement supplies caller-owned deferred cleanup. Completion shares its allocation contexts, while Journal retains durable settlement policy around the shared reservation arithmetic.
Networking, serialization, storage. reactor, http, http-parser,
http-log, radix-router, url-parser, compressors, varint, sortable, bitpack, docset, bkd, flume, storage,
msgpack, journal, consensus, prism, pki
Domain: geospatial, text, diagnostics. cartesian, htm, double-metaphone,
soundex, string-similarity, namegen, unicode, snowball, analysis, boolean-parser, queryparser, logger, term-color, traceback,
located-exception, errno-names, system, metrics, faultlab
Dependencies run one way and stay shallow: more than half pull nothing first-party
at all. The service stack is the deepest chain,
reactor and http-parser under http, then http-log, then prism, and
prism is the worked example of the whole thing
assembled into a running HTTP server.
AGENTS.md carries the detail: every library with its include line, CMake target, dependencies, internal design, key API, a working example, and the cases where it is the wrong tool. It also holds the rules for modifying one of these libraries, which matter because several applications depend on them and most of those applications are not in front of you.
It is written for coding agents, but it is the same reference a person wants.
How the libraries are measured and verified is in docs/PERFORMANCE.md; the dated surveys and audits, each with the status of its findings, are in docs/reviews/; what they taught is in docs/LESSONS.md.
The stories behind the libraries are the Familiars series on kronuz.com, alongside the story of the search engine they came out of; each library with a post links it from its README.
flat-map provides kronuz::flat_map, a C++20 sorted-vector map, plus a bulk builder and linear merge traversal. Include flat_map.hh and link flat_map::flat_map; it has no external dependencies. Value moves must not throw, keys remain mutable, and mutation invalidates borrowed entries. Use bulk construction and erase_if to avoid repeated shifts. Integer keys under the default ordering search with a branchless lower bound, and trivially copyable entries shift with one memmove (bench/bench.cc).
persistent-map provides persistent_map::PersistentMap, a C++20 immutable AVL map with shared historical roots, stored comparator and allocator policies, and owner-driven node collection. Include persistent_map.h and link persistent_map::persistent_map; it has no dependencies. All access and ownership changes use one serialized executor. Collection budgets count nodes; final arena release can reclaim the remaining graph synchronously.