The Kronuz C++ library collection
One small library for the part you need.
Familiars is my collection of standalone C++ building blocks. Each has one job and its own repository. Most are header-only; you can take the few you need and leave the rest.
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)
One target brings its dependencies. Pin a commit when you need a repeatable build.
Pick by task
Start with the job in front of you.
These starting points cover a few common jobs. The full task index covers the rest.
Text & parsing
- stringsJoin, split, trim and format bytes.Read its post
- url-parserParse URLs and query strings.Read its post
- boolean-parserTurn search expressions into a tree.Read its post
Compile time & identity
- constexpr-phfDispatch over fixed integer keys.Read its post
- enum-reflectionConvert enum names and values.Read its post
- base-xEncode binary IDs for people.Read its post
Concurrency & time
- queueBounded blocking MPMC queues.Read its post
- wheelArm, re-arm and cancel event-loop timers.Read its post
- workpoolRun work on a fixed set of workers.Read its post
Networking & services
- reactorRun TCP and UDP event loops.Read its post
- httpBuild an HTTP/1.1 application.Read its post
- radix-routerRoute paths with named parameters.Read its post
Storage & search
- strataStore data in crash-safe LSM segments.
- fstKeep an ordered string map compact.Read its post
- prospectSearch those segments with BM25.
Looking for another part?
The collection also covers geospatial indexing, compression, durable logs, diagnostics and the small utilities that hold them together.
Browse the full catalogUse one
Drop it into your build.
Each repository has its own README, tests and CMake target named <name>::<name> (dashes become underscores). Link the target and its declared dependencies follow. Most libraries target C++20; the individual README gives the exact requirement.
Where they came from
Built for real systems. Kept for the next one.
The collection began with pieces I pulled out of Xapiand. Others came later, including parts that help build Detent. The Familiars series opens them one by one: the constraint that shaped each library, the mechanism inside it, and the case where I reach for it.