Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

compression

Node.js middleware for gzip/deflate compression of HTTP responses.

HTTP servers and APIs npm MIT

Used in agent projects
57
0.4% of 12,697 public repos built with AI coding agents
Rank in http servers and apis
#17 of 30
by use in those projects
Downloads
44.4M
npm, last 7 days, compression
GitHub stars
2,805
last push Oct 1, 2026

How compression is used

compression is a dependency in 57 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.4%), #17 of 30 in http servers and apis. The most used alternative there is Express. Projects that use it most often also use Express (84.2%), dotenv (64.9%), cors (63.2%).

Often used with compression

Express84.2% of compression projects · 13.0× more than average
dotenv64.9% of compression projects · 4.1× more than average
cors63.2% of compression projects · 19.0× more than average
Helmet52.6% of compression projects · 53.5× more than average
express-rate-limit47.4% of compression projects · 57.3× more than average
Axios47.4% of compression projects · 4.8× more than average
uuid38.6% of compression projects · 10.8× more than average
jsonwebtoken35.1% of compression projects · 18.5× more than average

By coding agent

Claude Code0.7% of projects set up for it
GitHub Copilot0.5% of projects set up for it
Cursor0.6% of projects set up for it
Devin Desktop2.6% of projects set up for it
Gemini CLI1.1% of projects set up for it

Share of public repos configured for each agent that list compression as a dependency.

Install

Packagenpm install compression
Main stacksTypeScript / JavaScript (42), Python (5), Next.js (4), Rust (4)
Example projectsnirholas/three.ws, nirholas/universal-crypto-mcp, Vectreal/vectreal-platform, gopaljilab/Clinical-Insight-Engine, m8s-lab/pump-launcher

Alternatives to compression

All http servers and apis

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Express npm
Fast, unopinionated minimalist web framework for Node.js.
822 (6.5%) 142M 69.6K MIT
Uvicorn pypi
Lightning-fast ASGI server for running async Python web applications.
544 (4.3%) 13M 11K —
FastAPI pypi
High-performance Python web framework with automatic API docs and async support.
537 (4.2%) 107M 103K —
cors npm
Express/Node.js middleware for handling Cross-Origin Resource Sharing.
422 (3.3%) 86.8M 6,195 MIT
python-multipart pypi
Streaming multipart parser for handling file uploads in Python web frameworks.
217 (1.7%) 92.8M 536 —
Flask pypi
Lightweight Python web framework for building web applications and APIs.
174 (1.4%) 40.9M 75K —
Hono npm
Ultrafast web framework for edge runtimes built on Web Standards.
136 (1.1%) 73.9M 32.5K MIT
express-rate-limit npm
Express middleware for rate limiting API requests by IP address.
105 (0.8%) 57.6M 3,311 MIT
Is compression right for your project? Ask AgentGid →