[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6556":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},6556,"clib","clibs\u002Fclib","clibs","Package manager for the C programming language.","",null,"C",5132,262,131,22,0,1,7,64.46,"MIT License",false,"master",true,[25,5,26,27],"c","manager","package","2026-06-12 04:00:29","# clib(1)\n\n  ![Build Status](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg)\n  [![Codacy Badge](https:\u002F\u002Fapp.codacy.com\u002Fproject\u002Fbadge\u002FGrade\u002Fa196ec36c31349e18b6e4036eab1d02c)](https:\u002F\u002Fwww.codacy.com\u002Fgh\u002Fclibs\u002Fclib?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=clibs\u002Fclib&amp;utm_campaign=Badge_Grade)\n\n  Package manager for the C programming language.\n\n  ![c package manager screenshot](https:\u002F\u002Fi.cloudup.com\u002FGwqOU2hh9Y.png)\n\n## Installation\n\n  Expects [libcurl](http:\u002F\u002Fcurl.haxx.se\u002Flibcurl\u002F) to be installed and linkable.\n\n  With [homebrew](https:\u002F\u002Fgithub.com\u002FHomebrew\u002Fhomebrew):\n\n```sh\n$ brew install clib\n```\n\n  Or [MacPorts](https:\u002F\u002Fwww.macports.org):\n\n```sh\n$ sudo port selfupdate\n$ sudo port install clib\n```\n\n  With git:\n\n```sh\n$ git clone https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib.git \u002Ftmp\u002Fclib\n$ cd \u002Ftmp\u002Fclib\n$ make install\n```\n\n  Ubuntu:\n\n```sh\n# install libcurl\n$ sudo apt-get install libcurl4-gnutls-dev -qq\n# clone\n$ git clone https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib.git \u002Ftmp\u002Fclib && cd \u002Ftmp\u002Fclib\n# build\n$ make\n# put on path\n$ sudo make install\n```\n\n  Fedora:\n\n```sh\n# install libcurl\n$ sudo dnf install libcurl-devel\n# clone\n$ git clone https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib.git \u002Ftmp\u002Fclib && cd \u002Ftmp\u002Fclib\n# build\n$ make\n# put on path\n$ sudo make install\n```\n\n  Nix:\n\n```sh\n$ nix-env -i clib\n```\n\n  Or add to your `nativeBuildInputs`.\n\n\n## About\n\n  Basically the lazy-man's copy\u002Fpaste promoting smaller C utilities, also\n  serving as a nice way to discover these sort of libraries. From my experience\n  C libraries are scattered all over the web and discovery is relatively poor. The footprint of these libraries is usually quite large and unfocused. The goal of `clibs` is to provide\n  stand-alone \"micro\" C libraries for developers to quickly install without coupling\n  to large frameworks.\n\n  You should use `clib(1)` to fetch these files for you and check them into your repository, the end-user and contributors should not require having `clib(1)` installed. This allows `clib(1)` to fit into any new or existing C workflow without friction.\n\n  The wiki [listing of packages](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fwiki\u002FPackages) acts as the \"registry\" and populates the `clib-search(1)` results.\n\n## Usage\n\n```\n  clib \u003Ccommand> [options]\n\n  Options:\n\n    -h, --help     Output this message\n    -V, --version  Output version information\n\n  Commands:\n\n    init                 Start a new project\n    i, install [name...] Install one or more packages\n    up, update [name...] Update one or more packages\n    uninstall [name...]  Uninstall executables\n    upgrade [version]    Upgrade clib to a specified or latest version\n    configure [name...]  Configure one or more packages\n    build [name...]      Build one or more packages\n    search [query]       Search for packages\n    help \u003Ccmd>           Display help for cmd\n```\n\nMore about the Command Line Interface [here](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fwiki\u002FCommand-Line-Interface).\n\n## Examples\n\n More examples and best practices at [BEST_PRACTICE.md](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fblob\u002Fmaster\u002FBEST_PRACTICE.md).\n\n Install a few dependencies to `.\u002Fdeps`:\n\n```sh\n$ clib install clibs\u002Fms clibs\u002Fcommander\n```\n\n Install them to `.\u002Fsrc` instead:\n\n```sh\n$ clib install clibs\u002Fms clibs\u002Fcommander -o src\n```\n\n When installing libraries from the `clibs` org you can omit the name:\n\n```sh\n$ clib install ms file hash\n```\n\n Install some executables:\n\n```sh\n$ clib install visionmedia\u002Fmon visionmedia\u002Fevery visionmedia\u002Fwatch\n```\n\n## clib.json\n\n Example of a clib.json explicitly listing the source:\n\n```json\n{\n  \"name\": \"term\",\n  \"version\": \"0.0.1\",\n  \"repo\": \"clibs\u002Fterm\",\n  \"description\": \"Terminal ansi escape goodies\",\n  \"keywords\": [\"terminal\", \"term\", \"tty\", \"ansi\", \"escape\", \"colors\", \"console\"],\n  \"license\": \"MIT\",\n  \"src\": [\"src\u002Fterm.c\", \"src\u002Fterm.h\"]\n}\n```\n\n Example of a clib.json for an executable:\n\n```json\n{\n  \"name\": \"mon\",\n  \"version\": \"1.1.1\",\n  \"repo\": \"visionmedia\u002Fmon\",\n  \"description\": \"Simple process monitoring\",\n  \"keywords\": [\"process\", \"monitoring\", \"monitor\", \"availability\"],\n  \"license\": \"MIT\",\n  \"install\": \"make install\"\n}\n```\n\n See [explanation of clib.json](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fwiki\u002FExplanation-of-clib.json) for more details.\n\n## Contributing\n\n If you're interested in being part of this initiative let me know and I'll add you to the `clibs` organization so you can create repos here and contribute to existing ones.\n \n If you have any issues, questions or suggestions, please open an issue [here](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fissues). \n \n You can also find us on Gitter: https:\u002F\u002Fgitter.im\u002Fclibs\u002Fclib\n \n Also feel free to open a GitHub Discussion [here](https:\u002F\u002Fgithub.com\u002Fclibs\u002Fclib\u002Fdiscussions).\n\n Before committing to the repository, please run `make commit-hook`. This installs a commit hook which formats `.c` and `.h` files.\n\n## Articles\n\n  - [Introducing Clib](https:\u002F\u002Fmedium.com\u002Fcode-adventures\u002Fb32e6e769cb3) - introduction to clib\n  - [The Advent of Clib: the C Package Manager](https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20200128184218\u002Fhttp:\u002F\u002Fblog.ashworth.in\u002F2014\u002F10\u002F19\u002Fthe-advent-of-clib-the-c-package-manager.html) - overview article about clib\n","clib是一个针对C语言的包管理器。它支持快速安装、更新和卸载独立的“微型”C库，这些库通常体积小且功能集中，有助于减少对大型框架的依赖。项目基于libcurl开发，通过命令行界面提供初始化项目、安装或更新包等功能，并拥有一个社区维护的包注册表来促进库的发现与使用。clib适合于需要灵活集成第三方C库的开发者，尤其是那些希望保持项目轻量级并简化依赖管理过程的应用场景。",2,"2026-06-11 03:07:35","top_language"]