{
 "kind": "tool",
 "slug": "compression",
 "path": "tools/compression/",
 "name": "compression",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "HTTP servers and APIs",
   "tools/http-servers/"
  ]
 ],
 "lead": "Node.js middleware for gzip/deflate compression of HTTP responses.",
 "chips": [
  {
   "label": "HTTP servers and APIs",
   "path": "tools/http-servers/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install compression"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/expressjs/compression"
  },
  {
   "label": "Website",
   "href": "https://github.com/expressjs/compression#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/expressjs/compression"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 1, 2026",
   "note": "Latest GitHub release Sep 11, 2026. ",
   "src": "https://github.com/expressjs/compression"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "34 projects",
   "status": "info",
   "sub": "#19 of 102 in its category",
   "note": "Dependency in 34 public GitHub projects set up for AI coding agents that we scanned (0.5%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What compression does",
   "parts": [
    {
     "t": "prose",
     "text": "Node.js middleware for gzip/deflate compression of HTTP responses."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "compression popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #622 overall"
      },
      {
       "n": "63.4M",
       "l": "downloads a week, npm"
      },
      {
       "n": "2,805",
       "l": "GitHub stars"
      },
      {
       "n": "34",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How compression is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "27 projects, 0.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "17 projects, 0.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "14 projects, 0.6%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "8 projects, 1.7%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "7 projects, 2.5%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 88.2% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 70.6% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 67.6% of its projects",
       "v": "cors",
       "path": "tools/cors/"
      },
      {
       "l": "In 61.8% of its projects",
       "v": "Helmet",
       "path": "tools/helmet/"
      },
      {
       "l": "In 55.9% of its projects",
       "v": "express-rate-limit",
       "path": "tools/express-rate-limit/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 47.1% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 67.6% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about compression",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/express"
       ]
      },
      {
       "title": "More in HTTP servers and APIs",
       "path": "tools/http-servers/",
       "items": [
        {
         "text": "Uvicorn",
         "path": "tools/uvicorn/"
        },
        {
         "text": "FastAPI",
         "path": "tools/fastapi/"
        },
        {
         "text": "Express",
         "path": "tools/express/"
        },
        {
         "text": "cors",
         "path": "tools/cors/"
        },
        {
         "text": "python-multipart",
         "path": "tools/python-multipart/"
        },
        {
         "text": "Hono",
         "path": "tools/hono/"
        },
        {
         "text": "Flask",
         "path": "tools/flask/"
        },
        {
         "text": "Starlette",
         "path": "tools/starlette/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "compression",
       "me": true,
       "facts": [
        "MIT",
        "Gid 66",
        "63.4M/wk"
       ]
      },
      {
       "name": "NestJS",
       "why": "Progressive Node.js framework for building scalable and maintainable server-side applications.",
       "path": "tools/nestjs/",
       "facts": [
        "MIT",
        "Gid 78",
        "26M/wk"
       ]
      }
     ],
     "more": "Compare compression with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install compression"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for compression yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm compression"
  ],
  [
   "Category",
   "HTTP servers and APIs"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "65.8"
  ],
  [
   "Rank in category",
   "#19 of 102"
  ],
  [
   "GitHub",
   "expressjs/compression"
  ],
  [
   "Last change",
   "Oct 1, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/expressjs.png"
}