🍺 BREW Explorer

← all formulae

brotli

brew install brotli v1.2.0 MIT

Generic-purpose lossless compression algorithm with LZ77, Huffman coding, and context modeling; similar speed to deflate with denser compression.

Why you might care

Brotli offers better compression ratios than gzip/deflate at comparable speeds, making it valuable for reducing bandwidth on web assets and logs. It's widely supported in modern HTTP clients and servers. Use this as a library dependency or command-line tool when you need smaller compressed files without sacrificing performance.

Categories

Alternatives

gzip zstd xz lz4
93.9k
30-day installs · #46
366.6k
90-day · #40
1.5M
365-day · #32
14.8k
★ GitHub stars · updated 4d ago

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "gzip",
    "zstd",
    "xz",
    "lz4"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "compression",
    "library"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Generic-purpose lossless compression algorithm by Google",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:59+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "brotli",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-16T08:42:56Z",
  "github_readme_excerpt": "\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/google/brotli/actions/workflows/build_test.yml/badge.svg\" alt=\"GitHub Actions Build Status\" href=\"https://github.com/google/brotli/actions?query=branch%3Amaster\"\u003e\n  \u003cimg src=\"https://oss-fuzz-build-logs.storage.googleapis.com/badges/brotli.svg\" alt=\"Fuzzing Status\" href=\"https://oss-fuzz-build-logs.storage.googleapis.com/index.html#brotli\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://brotli.org/brotli.svg\" alt=\"Brotli\" width=\"64\"\u003e\u003c/p\u003e\n\n### Introduction\n\nBrotli is a generic-purpose lossless compression algorithm that compresses data\nusing a combination of a modern variant of the LZ77 algorithm, Huffman coding\nand 2nd order context modeling, with a compression ratio comparable to the best\ncurrently available general-purpose compression methods. It is similar in speed\nwith deflate but offers more dense compression.\n\nThe specification of the Brotli Compressed Data Format is defined in\n[RFC 7932](https://datatracker.ietf.org/doc/html/rfc7932).\n\nBrotli is open-sourced under the MIT License, see the LICENSE file.\n\n\u003e **Please note:** brotli is a \"stream\" format; it does not contain\n\u003e meta-information, like checksums or uncompressed data length. It is possible\n\u003e to modify \"raw\" ranges of the compressed stream and the decoder will not\n\u003e notice that.\n\n### Installation\n\nIn most Linux distributions, installing `brotli` is just a matter of using\nthe package management system. For example in Debian-based distributions:\n`apt install brotli` will install `brotli`. On MacOS, you can use\n[Homebrew](https://brew.sh/): `brew install brotli`.\n\n[![brotli packaging status](https://repology.org/badge/vertical-allrepos/brotli.svg?exclude_unsupported=1\u0026columns=3\u0026exclude_sources=modules,site\u0026header=brotli%20packaging%20status)](https://repology.org/project/brotli/versions)\n\nOf course you can also build brotli from sources.\n\n### Build instructions\n\n#### Vcpkg\n\nYou can download and install brotli using the\n[vcpkg](https://github.com/Microsoft/vcpkg/",
  "github_repo": "google/brotli",
  "github_stars": 14760,
  "github_topics": [],
  "homepage": "https://github.com/google/brotli",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 93876,
  "installs_365d": 1533404,
  "installs_90d": 366603,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:42:20+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "brotli",
  "oldnames": [],
  "one_liner": "Generic-purpose lossless compression algorithm with LZ77, Huffman coding, and context modeling; similar speed to deflate with denser compression.",
  "optional_dependencies": [],
  "rank_30d": 46,
  "rank_365d": 32,
  "rank_90d": 40,
  "raw_hash": "7a084fa8fb5d561f",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/brotli.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.2.0",
  "versioned_formulae": [],
  "why_use_this": "Brotli offers better compression ratios than gzip/deflate at comparable speeds, making it valuable for reducing bandwidth on web assets and logs. It\u0027s widely supported in modern HTTP clients and servers. Use this as a library dependency or command-line tool when you need smaller compressed files without sacrificing performance."
}