{"id":13437711,"url":"https://github.com/clibs/clib","last_synced_at":"2025-05-13T00:24:08.877Z","repository":{"id":5247823,"uuid":"6425435","full_name":"clibs/clib","owner":"clibs","description":"Package manager for the C programming language.","archived":false,"fork":false,"pushed_at":"2025-03-30T18:56:08.000Z","size":807,"stargazers_count":4959,"open_issues_count":24,"forks_count":254,"subscribers_count":134,"default_branch":"master","last_synced_at":"2025-04-08T23:06:54.850Z","etag":null,"topics":["c","clib","manager","package"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clibs.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-28T07:50:09.000Z","updated_at":"2025-04-08T17:17:02.000Z","dependencies_parsed_at":"2023-02-10T17:15:53.576Z","dependency_job_id":"38d861c9-f96a-4990-a253-cd3307cbcc9f","html_url":"https://github.com/clibs/clib","commit_stats":{"total_commits":392,"total_committers":49,"mean_commits":8.0,"dds":0.721938775510204,"last_synced_commit":"0565c3dd6d47dd872a73c71afb2e53f0b737b70d"},"previous_names":[],"tags_count":85,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clibs%2Fclib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clibs%2Fclib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clibs%2Fclib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clibs%2Fclib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clibs","download_url":"https://codeload.github.com/clibs/clib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250496204,"owners_count":21440227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","clib","manager","package"],"created_at":"2024-07-31T03:00:59.577Z","updated_at":"2025-04-23T18:49:56.065Z","avatar_url":"https://github.com/clibs.png","language":"C","readme":"# clib(1)\n\n  ![Build Status](https://github.com/clibs/clib/actions/workflows/tests.yml/badge.svg)\n  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/a196ec36c31349e18b6e4036eab1d02c)](https://www.codacy.com/gh/clibs/clib?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=clibs/clib\u0026amp;utm_campaign=Badge_Grade)\n\n  Package manager for the C programming language.\n\n  ![c package manager screenshot](https://i.cloudup.com/GwqOU2hh9Y.png)\n\n## Installation\n\n  Expects [libcurl](http://curl.haxx.se/libcurl/) to be installed and linkable.\n\n  With [homebrew](https://github.com/Homebrew/homebrew):\n\n```sh\n$ brew install clib\n```\n\n  Or [MacPorts](https://www.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://github.com/clibs/clib.git /tmp/clib\n$ cd /tmp/clib\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://github.com/clibs/clib.git /tmp/clib \u0026\u0026 cd /tmp/clib\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://github.com/clibs/clib.git /tmp/clib \u0026\u0026 cd /tmp/clib\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/paste 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://github.com/clibs/clib/wiki/Packages) acts as the \"registry\" and populates the `clib-search(1)` results.\n\n## Usage\n\n```\n  clib \u003ccommand\u003e [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    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\u003e           Display help for cmd\n```\n\nMore about the Command Line Interface [here](https://github.com/clibs/clib/wiki/Command-Line-Interface).\n\n## Examples\n\n More examples and best practices at [BEST_PRACTICE.md](https://github.com/clibs/clib/blob/master/BEST_PRACTICE.md).\n\n Install a few dependencies to `./deps`:\n\n```sh\n$ clib install clibs/ms clibs/commander\n```\n\n Install them to `./src` instead:\n\n```sh\n$ clib install clibs/ms clibs/commander -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/mon visionmedia/every visionmedia/watch\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/term\",\n  \"description\": \"Terminal ansi escape goodies\",\n  \"keywords\": [\"terminal\", \"term\", \"tty\", \"ansi\", \"escape\", \"colors\", \"console\"],\n  \"license\": \"MIT\",\n  \"src\": [\"src/term.c\", \"src/term.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/mon\",\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://github.com/clibs/clib/wiki/Explanation-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://github.com/clibs/clib/issues). \n \n You can also find us on Gitter: https://gitter.im/clibs/clib\n \n Also feel free to open a GitHub Discussion [here](https://github.com/clibs/clib/discussions).\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://medium.com/code-adventures/b32e6e769cb3) - introduction to clib\n  - [The Advent of Clib: the C Package Manager](https://web.archive.org/web/20200128184218/http://blog.ashworth.in/2014/10/19/the-advent-of-clib-the-c-package-manager.html) - overview article about clib\n","funding_links":[],"categories":["C","Build Systems","Source Code Collections","c","源代码集合","排序","目录","Source Code Collections ##","Libraries","package manager"],"sub_categories":["Advanced books","高级书籍","构建系统","实体书","Web Frameworks ###"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclibs%2Fclib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclibs%2Fclib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclibs%2Fclib/lists"}