{"library":"http-compression","type":"library","category":null,"description":"http-compression is a lightweight Node.js library designed to add Gzip and Brotli compression capabilities to HTTP servers. Currently at stable version 1.1.3, it primarily functions as Express-style middleware but can also be integrated directly with Node.js's `http.createServer` primitives. The project maintains a steady, albeit infrequent, release cadence, with recent updates focused on dependency maintenance and minor feature enhancements. Key differentiators include its extremely small footprint (< 1kB) with no external dependencies, automatic detection of the best compression encoding (Gzip or Brotli) based on the `Accept-Encoding` header, and configurable compression levels, response size thresholds, and MIME type filtering. It requires Node.js version 18 or greater.","language":"javascript","status":"active","version":"1.1.3","tags":["javascript","br","brotli","compress","compression","deflate","gzip","http","server"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-compression","imports":["import compression from 'http-compression';","const compression = require('http-compression');"]},{"cmd":"yarn add http-compression","imports":[]},{"cmd":"pnpm add http-compression","imports":[]}],"homepage":null,"github":"https://github.com/Kikobeats/http-compression","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-compression","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-compression/compatibility"}}