libcbor
brew install libcbor
v0.14.0
MIT
C library for parsing and generating CBOR (Concise Binary Object Representation) binary data format per RFC 8949.
Why you might care
Drop-in dependency for C/C++ projects needing CBOR serialization without external runtime deps; commonly used in cryptographic tooling like libfido2 for secure authentication. RFC 8949 compliant, thread-safe, portable across Linux/macOS/Windows/BSD, and handles UTF-8 and streams correctly.
7.6k
30-day installs · #433
31.1k
90-day · #386
108.4k
365-day · #393
401
★ GitHub stars · updated 1mo ago
Build dependencies
GitHub topics
c
c-plus-plus
c99
cbor
serialization
Links
- https://github.com/PJK/libcbor
- GitHub: PJK/libcbor
- Brew formula source: Formula/lib/libcbor.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"tinycbor",
"qcbor",
"cbor-c"
],
"build_dependencies": [
"cmake"
],
"categories": [
"library",
"serialization",
"parser"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "CBOR protocol implementation for C and others",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:40:52+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "libcbor",
"github_default_branch": "master",
"github_last_commit_at": "2026-04-26T22:50:15Z",
"github_readme_excerpt": "# [libcbor](https://github.com/PJK/libcbor)\n\n[](https://circleci.com/gh/PJK/libcbor/tree/master)\n[](https://readthedocs.org/projects/libcbor/?badge=latest)\n[](https://repology.org/project/libcbor/versions)\n[](https://codecov.io/gh/PJK/libcbor)\n\n**libcbor** is a C library for parsing and generating [CBOR](https://cbor.io/), the general-purpose schema-less binary data format.\n\n## Main features\n\n- Complete CBOR [IETF RFC 8949 (STD 94)](https://www.rfc-editor.org/info/std94) specification conformance (previously known as [RFC 7049](https://www.rfc-editor.org/info/rfc7049))\n- Supports CBOR Sequences ([RFC 8742](https://datatracker.ietf.org/doc/html/rfc8742))\n- Robust platform-independent C99 implementation, tested on\n - Linux, OS X, Windows, BSD\n - x86(_64), arm(64), mips(el), riscv64\n- Layered architecture offers both control and convenience\n- Flexible memory management\n- No shared global state - threading friendly\n- Proper handling of UTF-8\n- Full support for streams \u0026 incremental processing\n- Extensive documentation and test suite\n- No runtime dependencies, small footprint\n\n## References\n\nlibcbor is most prominently used in:\n\n- Yubico\u0027s [libfido2](https://developers.yubico.com/libfido2/) 2FA security key implementation\n- Amazon\u0027s [AWS C SDK](https://github.com/awslabs/aws-c-common)\n- Gnome [fwdup](https://github.com/fwupd/fwupd/blob/main/meson.build#L339)\n- Alibaba\u0027s [Inclavare librats](https://github.com/inclavare-containers/librats)\n- [QEMU](https://wiki.qemu.org/ChangeLog/9.2)\n- [ITK](https://docs.itk.org/projects/wasm/en/latest/introduction/parts.html)\n\nIt found its way into many open source and proprietary projects. If you run among others [OpenS",
"github_repo": "PJK/libcbor",
"github_stars": 401,
"github_topics": [
"c",
"c-plus-plus",
"c99",
"cbor",
"serialization"
],
"homepage": "https://github.com/PJK/libcbor",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 7638,
"installs_365d": 108411,
"installs_90d": 31119,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": "2026-06-20T23:44:50+00:00",
"llm_model": "claude-haiku-4-5",
"name": "libcbor",
"oldnames": [],
"one_liner": "C library for parsing and generating CBOR (Concise Binary Object Representation) binary data format per RFC 8949.",
"optional_dependencies": [],
"rank_30d": 433,
"rank_365d": 393,
"rank_90d": 386,
"raw_hash": "04e1ef6d4ae2dcfd",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/lib/libcbor.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "0.14.0",
"versioned_formulae": [],
"why_use_this": "Drop-in dependency for C/C++ projects needing CBOR serialization without external runtime deps; commonly used in cryptographic tooling like libfido2 for secure authentication. RFC 8949 compliant, thread-safe, portable across Linux/macOS/Windows/BSD, and handles UTF-8 and streams correctly."
}