Кураторский реестр пинов
72 библиотек встроены прямо в CLI — каждая запинена на точные байты и перепроверяется по хэшу при каждой загрузке. Одно слово добавляет любую в проект:
bash
clap add yyjsonГолый clap add печатает этот же список. Каждый пин перед включением проверялся вживую — компиляция, запуск, кросс-компиляция для Windows и проверка на musl где позволяет дизайн апстрима — а постоянный свип перепроверяет весь реестр; доказательства в platform validation (EN). Описания пинов — на английском, как и в самом CLI.
audio (6)
| pin | description |
|---|---|
dr-flac | FLAC decoding, single header — define DR_FLAC_IMPLEMENTATION in one .c file |
dr-mp3 | mp3 decoding, single header — define DR_MP3_IMPLEMENTATION in one .c file |
dr-wav | wav loading and writing, single header — define DR_WAV_IMPLEMENTATION in one .c file |
miniaudio | audio playback/capture in one header — define MINIAUDIO_IMPLEMENTATION in one .c file |
stb-hexwave | bandlimited anti-aliased audio oscillator — define STB_HEXWAVE_IMPLEMENTATION in one .c file |
stb-vorbis | ogg vorbis decoding — include the .c in exactly one translation unit (no implementation macro exists) |
cli and utilities (18)
| pin | description |
|---|---|
argparse | modern C++ argument parser, single header (v3.2) |
cwalk | cwalk — portable path manipulation (join, normalize, basename) for C, verified by collapsing a real .. segment and splitting a basename (v1.2.9) |
fmt | fmt — the standard modern C++ formatting library (the model for std::format), pinned header-only — verified by formatting a real string (12.2.1) |
linenoise | minimal readline-style line editing for REPLs and CLIs — the library redis and mongo shell use; POSIX terminals only, the pin refuses Windows targets honestly |
logc | minimal structured logging for C — log_info/log_warn/log_error with timestamps and file:line (rxi log.c) |
optparse | optparse — getopt-style option parsing with long options in one header (commit-pinned) |
quickjs | QuickJS-NG embeddable JavaScript engine — ES2023 in five translation units, verified by evaluating arithmetic through the real runtime |
sokol-time | cross-platform monotonic timing in one header — stm_setup/stm_now measure real elapsed time; define SOKOL_IMPL in exactly one translation unit |
stb-c-lexer | a fast single-file C lexer/tokenizer — define STB_C_LEXER_IMPLEMENTATION in one .c file |
stb-divide | integer division with explicit rounding modes (floor/trunc/euclid) — define STB_DIVIDE_IMPLEMENTATION in one .c file |
stb-leakcheck | malloc/free leak reporter with file+line — define STB_LEAKCHECK_IMPLEMENTATION in one .c file |
tiny-regex | small portable regex engine for C, ~500 lines |
tinydir | tinydir — portable directory reading in one header, dirent and Win32 behind one API (commit-pinned) |
tinyexpr | tiny math expression parser/evaluator for C — te_interp parses and evaluates strings at runtime (calculators, config scripting) |
utf8proc | Unicode normalization and case mapping (utf8proc_NFC family), verified by composed-output byte equality |
whereami | whereami — locate the running executable and module paths portably in two files (commit-pinned) |
zip | zip 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) |
zlib | the compression library — full deflate/inflate + gz io compiled in (v1.3.1) |
cryptography (2)
| pin | description |
|---|---|
mbedtls | TLS 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) |
monocypher | NaCl-grade cryptography in two files — Blake2b, ChaCha20-Poly1305, Ed25519, no dependencies, no heap (v4.0.3) |
data structures (9)
| pin | description |
|---|---|
flecs | flecs — the fast entity component system for C/C++, verified by storing a component on a real entity and reading it back (v4.2.0) |
khash | type-generic hash tables for C — instantiate with KHASH_MAP_INIT_INT/KHASH_MAP_INIT_STR after including (klib) |
sds | dynamic strings for C — length-prefixed, binary-safe, the library redis is built on |
stb-ds | dynamic arrays and hash maps for C — define STB_DS_IMPLEMENTATION in one .c file |
utf8 | UTF-8 string handling in one header — utf8len/utf8cpy/utf8cat/utf8cmp, codepoint-aware (sheredom utf8.h) |
uthash | hash tables and linked lists for C structs, header-only (v2.3.0) |
vec | type-generic dynamic arrays for C — vec_push/vec_get/vec_foreach macros on any type (rxi vec) |
wyhash | wyhash — the fastest non-cryptographic hash in one header, with the wyrand deterministic PRNG inside (commit-pinned) |
xxhash | xxHash extremely fast hash — XXH64/XXH3, single translation unit, verified against the published abc test vector |
graphics and media (18)
| pin | description |
|---|---|
cglm | optimized math library for graphics, header-only (v0.9.6) |
cgltf | glTF 2.0 loader, single-header — define CGLTF_IMPLEMENTATION in one .c file (v1.15) |
cute-c2 | cute_c2 — 2D collision detection in one header (circles, AABBs, capsules, polys) — define CUTE_C2_IMPLEMENTATION in one .c file (commit-pinned) |
fast-obj | fast_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. |
fastnoiselite | procedural noise generation for C++, header-only |
handmademath | HandmadeMath — the standard game-math library for C++ (vectors, matrices, quaternions) in one header — verified by dot product and matrix translation (commit-pinned) |
nuklear | immediate-mode GUI in one header, backend-agnostic — define NK_IMPLEMENTATION in one .c file |
par-shapes | par_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. |
qoi | the Quite OK Image format — lossless images in one header, encode/decode with QOI_IMPLEMENTATION, 20-50x faster than png |
stb-connected-components | incremental grid connectivity for pathfinding — define STB_CONNECTED_COMPONENTS_IMPLEMENTATION in one .c file (pin configures a 1024x1024 max grid) |
stb-dxt | DXT1/DXT5 texture compression — define STB_DXT_IMPLEMENTATION in one .c file |
stb-easy-font | tiny bitmap-font text renderer producing quads — define STB_EASY_FONT_IMPLEMENTATION in one .c file |
stb-image | image loading (jpeg/png/...) — define STB_IMAGE_IMPLEMENTATION in one .c file |
stb-image-write | image writing (png/jpg/bmp) — define STB_IMAGE_WRITE_IMPLEMENTATION in one .c file |
stb-perlin | improved Perlin noise 1D/2D/3D + fractal — define STB_PERLIN_IMPLEMENTATION in one .c file |
stb-rect-pack | rectangle packer for font atlases and sprite sheets — define STB_RECT_PACK_IMPLEMENTATION in one .c file |
stb-truetype | font rasterization — define STB_TRUETYPE_IMPLEMENTATION in one .c file |
tinyobjloader | Wavefront OBJ loading in one .cc — verified by parsing real geometry and counting vertices |
networking (3)
| pin | description |
|---|---|
cpp-httplib | cpp-httplib — C++11 single-header HTTP/HTTPS server and client, verified by a real in-process round-trip (v0.69.0) |
mongoose | embedded 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) |
picohttpparser | the HTTP parser behind h2o — phr_parse_request breaks a real request into method/path/headers in two files |
serialization (13)
| pin | description |
|---|---|
base64 | b64.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) |
cjson | ultralightweight JSON parser in C (v1.7.18) |
cmp | MessagePack in C — user-supplied read/write callbacks, no allocation policy forced on you |
inih | simple .INI file parser for C (r63) |
lz4 | LZ4 extremely fast compression — block format with the high-compression variant, verified by round-trip |
nlohmann-json | JSON for Modern C++, single header (v3.11.3) |
parson | lightweight JSON parser in C with a mutation API (kgabis/parson) |
sqlite | SQLite amalgamation, the whole database in one .c (3.51.1) |
tinyxml2 | tinyxml2 — the standard small XML parser for C++, verified by reading a real attribute and element text (11.0.0) |
tomlc99 | TOML parsing in C — the format clap itself is configured in, verified by reading a real key |
tomlplusplus | toml++ — 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. |
yyjson | yyjson — the fastest JSON library for C, verified by reading a real key and writing the document back (0.13.0) |
zstd | Zstandard 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)
| pin | description |
|---|---|
doctest | single-header C++ test framework (v2.4.11) |
greatest | unit testing for C in a single header — the C counterpart to doctest, no implementation define needed |
utest | googletest-style unit testing in one header — UTEST(suite, name) cases, ASSERT macros, UTEST_MAIN entry point (sheredom utest.h) |