# google/ngx_brotli

NGINX module for Brotli compression

Repository: https://github.com/google/ngx_brotli
Canonical: https://ross.abutalabs.com/products/ngx_brotli
Language: C
License: BSD-2-Clause
License Family: permissive
Last push: 2024-05-28T06:27:30+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3981, "days_push": 827, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2236, forks 237 (observed 2026-08-28T04:06:29.407833+00:00)

## What it is
A set of two NGINX modules that add Brotli compression support: one compresses HTTP responses on-the-fly and the other serves pre-compressed static files. It is written in C and maintained by Google under a BSD-2-Clause license.

## Use cases
- serve brotli-compressed responses from nginx
- compress http responses on the fly with brotli
- serve pre-compressed .br static files
- reduce bandwidth for web assets
- replace gzip with better compression in nginx

## When to choose
- you run NGINX and want better compression ratios than gzip
- you want to serve pre-compressed static assets to browsers supporting Brotli

## When to avoid
- you use a web server other than NGINX
- you cannot recompile NGINX with third-party modules
- your clients or proxies do not support Brotli encoding

## Facets
- artifact type: plugin
- maturity: active
- function: compression, http-server, middleware
- domain: web-development, backend, performance
- platform: -
- tags: nginx-module, brotli, http-compression, c, linux, web-server, nginx

## Member repositories
- google/ngx_brotli (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.407833+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:44:17.400924+00:00, confidence not recorded.
  - readme: https://github.com/google/ngx_brotli (fetched 2026-08-28T04:06:29.407833+00:00, sha 1233707c4ea3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
