clib fetches small standalone C libraries and executables from the clibs registry into your project tree so contributors need not install the tool.
Overview
clib is a package manager for the C language oriented toward compact, stand-alone libraries rather than large frameworks. It uses libcurl to download sources listed in the clibs wiki registry, which also backs the clib-search command.
Typical usage vendors dependencies into a ./deps or ./src directory and commits them so end users build without having clib installed. A clib.json manifest can list explicit sources for libraries or executables.
Install methods mentioned include Homebrew, MacPorts, git checkout, distribution packages on Ubuntu and Fedora, and Nix nativeBuildInputs. The philosophy is copy-paste friendly discovery of focused C utilities across the web.
Key features
- Install C libraries into project directories
- clib.json manifest for sources
- clib-search against the clibs registry
- Vendored deps without runtime clib dependency
- Support for executables and libraries
- Homebrew and distro package installs
- Git-based installation option
Use cases
- Vendoring tiny C dependencies in a repo
- Discovering micro libraries for utilities
- Shipping C projects without package manager lock-in
- Installing clibs organization packages by name