aws-c-compression
brew install aws-c-compression
v0.3.2
Apache-2.0
C99 shared library implementing Huffman encoding/decoding and compression algorithms for AWS C SDK.
Why you might care
Primary dependency for AWS C SDK components that need compression support; provides lightweight, cross-platform Huffman codec functionality without external compression library bloat. Mainly useful as a build-time dependency rather than direct CLI usage.
2.3k
30-day installs · #905
8.6k
90-day · #872
35.2k
365-day · #817
40
★ GitHub stars · updated 5mo ago
Runtime dependencies
Build dependencies
Links
- https://github.com/awslabs/aws-c-compression
- GitHub: awslabs/aws-c-compression
- Brew formula source: Formula/a/aws-c-compression.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"zlib",
"brotli",
"lz4"
],
"build_dependencies": [
"cmake"
],
"categories": [
"library",
"compression"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"aws-c-common"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "C99 implementation of huffman encoding/decoding",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:35:40+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "aws-c-compression",
"github_default_branch": "main",
"github_last_commit_at": "2026-01-07T00:11:24Z",
"github_readme_excerpt": "## AWS C Compression\n\nThis is a cross-platform C99 implementation of compression algorithms such as\ngzip, and huffman encoding/decoding. Currently only huffman is implemented.\n\n## License\n\nThis library is licensed under the Apache 2.0 License.\n\n## Usage\n\n### Building\n\nNote that aws-c-compression has a dependency on aws-c-common:\n\n```\ngit clone git@github.com:awslabs/aws-c-common.git\ncmake -DCMAKE_PREFIX_PATH=\u003cinstall-path\u003e -DCMAKE_INSTALL_PREFIX=\u003cinstall-path\u003e -S aws-c-common -B aws-c-common/build\ncmake --build aws-c-common/build --target install\n\ngit clone git@github.com:awslabs/aws-c-compression.git\ncmake -DCMAKE_PREFIX_PATH=\u003cinstall-path\u003e -DCMAKE_INSTALL_PREFIX=\u003cinstall-path\u003e -S aws-c-compression -B aws-c-compression/build\ncmake --build aws-c-compression/build --target install\n```\n\n### Huffman\n\nThe Huffman implemention in this library is designed around the concept of a\ngeneric \"symbol coder\" object, which defines how each symbol (value between 0\nand 255) is encoded and decoded. This object looks like this:\n```c\ntypedef struct aws_huffman_code (*aws_huffman_symbol_encoder)(uint8_t symbol, void *userdata);\ntypedef uint8_t (*aws_huffman_symbol_decoder)(uint32_t bits, uint8_t *symbol, void *userdata);\n\nstruct aws_huffman_symbol_coder {\n aws_huffman_symbol_encoder encode;\n aws_huffman_symbol_decoder decode;\n void *userdata;\n};\n```\nThese callbacks may be implemented manually, or you may use the included\nHuffman coder generator to generate one from a table definition file. The\ngenerator expects to be called with the following arguments:\n```shell\n$ aws-c-compression-huffman-generator path/to/table.def path/to/generated.c coder_name\n```\n\nThe table definition file should be in the following format:\n```c\n/* sym bits code len */\nHUFFMAN_CODE( 0, \"1100101110\", 0x32e, 10)\nHUFFMAN_CODE( 1, \"1100101111\", 0x32f, 10)\n/* ... */\n```\nThe HUFFMAN_CODE macro expects 4 arguments:\n* sym: the symbol value [0-255]\n* bits: the bits representin",
"github_repo": "awslabs/aws-c-compression",
"github_stars": 40,
"github_topics": [],
"homepage": "https://github.com/awslabs/aws-c-compression",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 2309,
"installs_365d": 35195,
"installs_90d": 8597,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": "2026-06-20T23:47:46+00:00",
"llm_model": "claude-haiku-4-5",
"name": "aws-c-compression",
"oldnames": [],
"one_liner": "C99 shared library implementing Huffman encoding/decoding and compression algorithms for AWS C SDK.",
"optional_dependencies": [],
"rank_30d": 905,
"rank_365d": 817,
"rank_90d": 872,
"raw_hash": "59e7e29e19b8a80a",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/a/aws-c-compression.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "0.3.2",
"versioned_formulae": [],
"why_use_this": "Primary dependency for AWS C SDK components that need compression support; provides lightweight, cross-platform Huffman codec functionality without external compression library bloat. Mainly useful as a build-time dependency rather than direct CLI usage."
}