Skip to content

The curated pin registry ​

72 libraries ship inside the CLI itself, each pinned to exact bytes and re-verified against its hash on every download. One word adds any of them to a project:

bash
clap add yyjson

Bare clap add prints this same list. Every pin was evaluated live before inclusion — compiled, run, cross-compiled for Windows, and checked against musl where the upstream design allows it — and the continuous sweep re-verifies the whole registry; the evidence lives in platform validation. Pins marked portable compile-verify for x86_64-windows from a Linux host.

audio (6) ​

pindescription
dr-flacFLAC decoding, single header — define DR_FLAC_IMPLEMENTATION in one .c file
dr-mp3mp3 decoding, single header — define DR_MP3_IMPLEMENTATION in one .c file
dr-wavwav loading and writing, single header — define DR_WAV_IMPLEMENTATION in one .c file
miniaudioaudio playback/capture in one header — define MINIAUDIO_IMPLEMENTATION in one .c file
stb-hexwavebandlimited anti-aliased audio oscillator — define STB_HEXWAVE_IMPLEMENTATION in one .c file
stb-vorbisogg vorbis decoding — include the .c in exactly one translation unit (no implementation macro exists)

cli and utilities (18) ​

pindescription
argparsemodern C++ argument parser, single header (v3.2)
cwalkcwalk — portable path manipulation (join, normalize, basename) for C, verified by collapsing a real .. segment and splitting a basename (v1.2.9)
fmtfmt — the standard modern C++ formatting library (the model for std::format), pinned header-only — verified by formatting a real string (12.2.1)
linenoiseminimal readline-style line editing for REPLs and CLIs — the library redis and mongo shell use; POSIX terminals only, the pin refuses Windows targets honestly
logcminimal structured logging for C — log_info/log_warn/log_error with timestamps and file:line (rxi log.c)
optparseoptparse — getopt-style option parsing with long options in one header (commit-pinned)
quickjsQuickJS-NG embeddable JavaScript engine — ES2023 in five translation units, verified by evaluating arithmetic through the real runtime
sokol-timecross-platform monotonic timing in one header — stm_setup/stm_now measure real elapsed time; define SOKOL_IMPL in exactly one translation unit
stb-c-lexera fast single-file C lexer/tokenizer — define STB_C_LEXER_IMPLEMENTATION in one .c file
stb-divideinteger division with explicit rounding modes (floor/trunc/euclid) — define STB_DIVIDE_IMPLEMENTATION in one .c file
stb-leakcheckmalloc/free leak reporter with file+line — define STB_LEAKCHECK_IMPLEMENTATION in one .c file
tiny-regexsmall portable regex engine for C, ~500 lines
tinydirtinydir — portable directory reading in one header, dirent and Win32 behind one API (commit-pinned)
tinyexprtiny math expression parser/evaluator for C — te_interp parses and evaluates strings at runtime (calculators, config scripting)
utf8procUnicode normalization and case mapping (utf8proc_NFC family), verified by composed-output byte equality
whereamiwhereami — locate the running executable and module paths portably in two files (commit-pinned)
zipzip archive reading and writing in one .c — zip_open/zip_entry_write round-trips verified; ZIP_HAVE_SYMLINK is upstream's documented switch and its unistd include is what declares ftruncate on strict POSIX toolchains — platform-prefixed because Windows has no symlink (v0.3.9)
zlibthe compression library — full deflate/inflate + gz io compiled in (v1.3.1)

cryptography (2) ​

pindescription
mbedtlsTLS 1.2/1.3 and the full PSA crypto library — 109 sources globbed in one pin entry, compiles standalone (the framework submodule is only needed for upstream's own tests) (v3.6.8)
monocypherNaCl-grade cryptography in two files — Blake2b, ChaCha20-Poly1305, Ed25519, no dependencies, no heap (v4.0.3)

data structures (9) ​

pindescription
flecsflecs — the fast entity component system for C/C++, verified by storing a component on a real entity and reading it back (v4.2.0)
khashtype-generic hash tables for C — instantiate with KHASH_MAP_INIT_INT/KHASH_MAP_INIT_STR after including (klib)
sdsdynamic strings for C — length-prefixed, binary-safe, the library redis is built on
stb-dsdynamic arrays and hash maps for C — define STB_DS_IMPLEMENTATION in one .c file
utf8UTF-8 string handling in one header — utf8len/utf8cpy/utf8cat/utf8cmp, codepoint-aware (sheredom utf8.h)
uthashhash tables and linked lists for C structs, header-only (v2.3.0)
vectype-generic dynamic arrays for C — vec_push/vec_get/vec_foreach macros on any type (rxi vec)
wyhashwyhash — the fastest non-cryptographic hash in one header, with the wyrand deterministic PRNG inside (commit-pinned)
xxhashxxHash extremely fast hash — XXH64/XXH3, single translation unit, verified against the published abc test vector

graphics and media (18) ​

pindescription
cglmoptimized math library for graphics, header-only (v0.9.6)
cgltfglTF 2.0 loader, single-header — define CGLTF_IMPLEMENTATION in one .c file (v1.15)
cute-c2cute_c2 — 2D collision detection in one header (circles, AABBs, capsules, polys) — define CUTE_C2_IMPLEMENTATION in one .c file (commit-pinned)
fast-objfast_obj — the fast Wavefront OBJ loader in one header, verified by loading a real cube and counting positions and faces. Define FAST_OBJ_IMPLEMENTATION in one .c file. thisistherk/fast_obj tags no releases, so the pin is commit-frozen.
fastnoiseliteprocedural noise generation for C++, header-only
handmademathHandmadeMath — the standard game-math library for C++ (vectors, matrices, quaternions) in one header — verified by dot product and matrix translation (commit-pinned)
nuklearimmediate-mode GUI in one header, backend-agnostic — define NK_IMPLEMENTATION in one .c file
par-shapespar_shapes — procedural mesh generation (spheres, subdivided shapes, parametric surfaces) in one header, verified by a subdivided sphere carrying unit-length normals. Define PAR_SHAPES_IMPLEMENTATION in one .c file. prideout/par tags no releases, so the pin is commit-frozen.
qoithe Quite OK Image format — lossless images in one header, encode/decode with QOI_IMPLEMENTATION, 20-50x faster than png
stb-connected-componentsincremental grid connectivity for pathfinding — define STB_CONNECTED_COMPONENTS_IMPLEMENTATION in one .c file (pin configures a 1024x1024 max grid)
stb-dxtDXT1/DXT5 texture compression — define STB_DXT_IMPLEMENTATION in one .c file
stb-easy-fonttiny bitmap-font text renderer producing quads — define STB_EASY_FONT_IMPLEMENTATION in one .c file
stb-imageimage loading (jpeg/png/...) — define STB_IMAGE_IMPLEMENTATION in one .c file
stb-image-writeimage writing (png/jpg/bmp) — define STB_IMAGE_WRITE_IMPLEMENTATION in one .c file
stb-perlinimproved Perlin noise 1D/2D/3D + fractal — define STB_PERLIN_IMPLEMENTATION in one .c file
stb-rect-packrectangle packer for font atlases and sprite sheets — define STB_RECT_PACK_IMPLEMENTATION in one .c file
stb-truetypefont rasterization — define STB_TRUETYPE_IMPLEMENTATION in one .c file
tinyobjloaderWavefront OBJ loading in one .cc — verified by parsing real geometry and counting vertices

networking (3) ​

pindescription
cpp-httplibcpp-httplib — C++11 single-header HTTP/HTTPS server and client, verified by a real in-process round-trip (v0.69.0)
mongooseembedded HTTP/WebSocket server and client in two files — mg_http_listen serves requests with zero config; the pin links ws2_32 on Windows automatically (v7.9)
picohttpparserthe HTTP parser behind h2o — phr_parse_request breaks a real request into method/path/headers in two files

serialization (13) ​

pindescription
base64b64.c — small base64 encode/decode for C, verified by a real roundtrip through the NDI= test vector; the header is not self-contained — include <stddef.h> and <stdlib.h> before <b64.h> (commit-pinned)
cjsonultralightweight JSON parser in C (v1.7.18)
cmpMessagePack in C — user-supplied read/write callbacks, no allocation policy forced on you
inihsimple .INI file parser for C (r63)
lz4LZ4 extremely fast compression — block format with the high-compression variant, verified by round-trip
nlohmann-jsonJSON for Modern C++, single header (v3.11.3)
parsonlightweight JSON parser in C with a mutation API (kgabis/parson)
sqliteSQLite amalgamation, the whole database in one .c (3.51.1)
tinyxml2tinyxml2 — the standard small XML parser for C++, verified by reading a real attribute and element text (11.0.0)
tomlc99TOML parsing in C — the format clap itself is configured in, verified by reading a real key
tomlplusplustoml++ — the standard TOML parser for C++17, header-only. Verified by parsing a real document and reading both an integer and a string back out. The C answer is tomlc99; this is the C++ one.
yyjsonyyjson — the fastest JSON library for C, verified by reading a real key and writing the document back (0.13.0)
zstdZstandard compression — the simple one-shot API, globbed library tree; asm disabled with the documented switch so the pin stays portable across every target

testing (3) ​

pindescription
doctestsingle-header C++ test framework (v2.4.11)
greatestunit testing for C in a single header — the C counterpart to doctest, no implementation define needed
utestgoogletest-style unit testing in one header — UTEST(suite, name) cases, ASSERT macros, UTEST_MAIN entry point (sheredom utest.h)