Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

compression

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

HTTP servers and APIsNPM

GitHubWebsite

1. License

License from npm.

github.com/expressjs/compression

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What compression does

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

compression popularity

66 / 100
Gid Score, #622 overall
63.4M
downloads a week, npm
2,805
GitHub stars
34
agent projects use it
compression: downloads per weeknpm, compression 63,360,404
compression: GitHub starsexpressjs/compression 2,805

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How compression is used

  • compression is a dependency in 34 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #19 of 102 in http servers and apis.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 113; those are left out of every share on this page.
  • The most used alternative in our scan is NestJS (35 projects).
  • Projects that use it most often also use Express (88.2%), dotenv (70.6%), cors (67.6%).

By coding agent

27 projects, 0.8%
17 projects, 0.6%
14 projects, 0.6%
8 projects, 1.7%
7 projects, 2.5%

Often used with

In 88.2% of its projects
In 70.6% of its projects
In 67.6% of its projects
In 61.8% of its projects
In 55.9% of its projects
In 50.0% of its projects
In 47.1% of its projects
In 67.6% of its projects

More about compression

Funding
  • Open Collective: https://opencollective.com/express

See all

More in HTTP servers and APIs

Alternatives

compression This page

MITGid 6663.4M/wk

NestJS

Progressive Node.js framework for building scalable and maintainable server-side applications.

MITGid 7826M/wk

Compare compression with another tool

Get started

Install it.

npm install compression

No step-by-step start for compression yet: we have not written its hand-checked card.