expressjs/compression
Node.js compression middleware observed · 2026-08-28
Health v2 · maintenance only
69/100
- Activity 96
- Release rhythm 16
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 129.0
- age_days: 4627
- days_rel: 412
- days_push: 28
- n_releases_24m: 3
Adoption not part of the score
2807 stars · 251 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Node.js middleware library that compresses HTTP response bodies using gzip, deflate, or brotli. It is designed for use with Express and Connect-style middleware stacks.
Use cases
- compress HTTP responses in an Express app
- serve gzip or brotli-compressed responses based on Accept-Encoding
- reduce bandwidth usage for API responses
- configure compression level and content-type filters
- add response compression middleware to a Connect server
When to choose
- you use Express or Connect and want drop-in response compression
- you need gzip, deflate, and brotli support with configurable options
- you want a small, well-maintained middleware with sensible defaults
When to avoid
- you are not using Node.js or an Express/Connect-style middleware stack
- you need static asset pre-compression rather than on-the-fly compression
- responses are already compressed or served by a reverse proxy that handles compression
Facets
library · maturity stable
compression middleware http-server web-development backend performance express gzip deflate brotli http-response-compression nodejs
2 sources
- readme: https://github.com/expressjs/compression · fetched 2026-08-28 · b2a4eeb3f566
- registry_npm: https://registry.npmjs.org/compression · fetched 2026-08-29 · f9be4e8564c4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| expressjs/compression | main | 69 |
For agents
markdown · JSON · MCP: product_card(name="expressjs/compression")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem