expressjs/compression
Node.js compression middleware observed · 2026-10-13
Health v2 · maintenance only
88/100
- Activity 97
- Release rhythm 71
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 156
- age_days: 4675
- days_rel: 39
- days_push: 20
- n_releases_24m: 4
Adoption not part of the score
2805 stars · 260 forks observed · 2026-10-13
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-10-13 · b2a4eeb3f566
- registry_npm: https://registry.npmjs.org/compression · fetched 2026-08-29 · f9be4e8564c4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| expressjs/compression | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="expressjs/compression")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem