All Projects → clibs → Clib

clibs / Clib

Licence: mit
Basically the lazy-man's copy/paste promoting smaller C utilities, also serving as a nice way to discover these sort of libraries. From my experience 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 stand-alone "micro" C libraries for developers to quickly install without coupling to large frameworks.

Programming Languages

c
50402 projects - #5 most used programming language
shell
77523 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Clib

eerie
The package manager for Io.
Stars: ✭ 22 (-99.44%)
Mutual labels:  package, manager
Apio
🌱 Open source ecosystem for open FPGA boards
Stars: ✭ 366 (-90.66%)
Mutual labels:  package, manager
Drone
🍰 The missing library manager for Android Developers
Stars: ✭ 512 (-86.93%)
Mutual labels:  package, manager
Manager
Implementation of the Manager pattern existing in Laravel framework
Stars: ✭ 74 (-98.11%)
Mutual labels:  package, manager
gpkg
🌎 A global Node binary manager written in Rust
Stars: ✭ 53 (-98.65%)
Mutual labels:  package, manager
Boss
Dependency Manager for Delphi
Stars: ✭ 188 (-95.2%)
Mutual labels:  package, manager
Projeny
A project and package manager for Unity
Stars: ✭ 656 (-83.26%)
Mutual labels:  package, manager
hou packager
A simple SideFX Houdini package manager
Stars: ✭ 28 (-99.29%)
Mutual labels:  package, manager
aplus
Aplus Command Line Tool
Stars: ✭ 71 (-98.19%)
Mutual labels:  package, manager
Universe
The Mesosphere Universe package repository.
Stars: ✭ 308 (-92.14%)
Mutual labels:  package
Framer Modules
Discover, install and save your favorite modules at one place
Stars: ✭ 338 (-91.37%)
Mutual labels:  manager
Unitymodmanager
一个便捷的程序可以修改游戏内资源包括:Unity游戏资源,Wwise音频资源。
Stars: ✭ 292 (-92.55%)
Mutual labels:  manager
Gerador Validador Cpf
Biblioteca JS open-source para gerar e validar CPF.
Stars: ✭ 312 (-92.04%)
Mutual labels:  package
Biblatex Gb7714 2015
A biblatex implementation of the GB/T7714-2015 bibliography style || GB/T 7714-2015 参考文献著录和标注的biblatex样式包
Stars: ✭ 343 (-91.25%)
Mutual labels:  package
Nest.land
🦕 The nest.land website
Stars: ✭ 294 (-92.5%)
Mutual labels:  package
Riposte
Python package for wrapping applications inside a tailored interactive shell
Stars: ✭ 376 (-90.4%)
Mutual labels:  package
Wsltools
Web Scan Lazy Tools - Python Package
Stars: ✭ 288 (-92.65%)
Mutual labels:  package
Portage
[MIRROR] Package management system
Stars: ✭ 336 (-91.42%)
Mutual labels:  package
Timeline list
Timeline widget for flutter
Stars: ✭ 281 (-92.83%)
Mutual labels:  package
Cashify
💸 Lightweight currency conversion library, successor of money.js
Stars: ✭ 329 (-91.6%)
Mutual labels:  package

clib(1)

Build Status Codacy Badge

Package manager for the C programming language.

c package manager screenshot

Installation

Expects libcurl to be installed and linkable.

With homebrew:

$ brew install clib

Or MacPorts:

$ sudo port selfupdate
$ sudo port install clib

With git:

$ git clone https://github.com/clibs/clib.git /tmp/clib
$ cd /tmp/clib
$ make install

Ubuntu:

# install libcurl
$ sudo apt-get install libcurl4-gnutls-dev -qq
# clone
$ git clone https://github.com/clibs/clib.git /tmp/clib && cd /tmp/clib
# build
$ make
# put on path
$ sudo make install

About

Basically the lazy-man's copy/paste promoting smaller C utilities, also serving as a nice way to discover these sort of libraries. From my experience 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 stand-alone "micro" C libraries for developers to quickly install without coupling to large frameworks.

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.

The wiki listing of packages acts as the "registry" and populates the clib-search(1) results.

Usage

  clib <command> [options]

  Options:

    -h, --help     Output this message
    -V, --version  Output version information

  Commands:

    init                 Start a new project
    i, install [name...] Install one or more packages
    up, update [name...] Update one or more packages
    upgrade [version]    Upgrade clib to a specified or latest version\
    configure [name...]  Configure one or more packages
    build [name...]      Build one or more packages
    search [query]       Search for packages
    help <cmd>           Display help for cmd

More about the Command Line Interface here.

Examples

More examples and best practices at BEST_PRACTICE.md.

Install a few dependencies to ./deps:

$ clib install clibs/ms clibs/commander

Install them to ./src instead:

$ clib install clibs/ms clibs/commander -o src

When installing libraries from the clibs org you can omit the name:

$ clib install ms file hash

Install some executables:

$ clib install visionmedia/mon visionmedia/every visionmedia/watch

clib.json

Example of a clib.json explicitly listing the source:

{
  "name": "term",
  "version": "0.0.1",
  "repo": "clibs/term",
  "description": "Terminal ansi escape goodies",
  "keywords": ["terminal", "term", "tty", "ansi", "escape", "colors", "console"],
  "license": "MIT",
  "src": ["src/term.c", "src/term.h"]
}

Example of a clib.json for an executable:

{
  "name": "mon",
  "version": "1.1.1",
  "repo": "visionmedia/mon",
  "description": "Simple process monitoring",
  "keywords": ["process", "monitoring", "monitor", "availability"],
  "license": "MIT",
  "install": "make install"
}

See explanation of clib.json for more details.

Contributing

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.

If you have any issues, questions or suggestions, please open an issue here.

You can also find us on Gitter: https://gitter.im/clibs/clib

Also feel free to open a GitHub Discussion here.

Before committing to the repository, please run make commit-hook. This installs a commit hook which formats .c and .h files.

Articles

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].