Skip to content
JS
Package category

Compression and archives

gzip, brotli, zip, tar and streaming compression.

302 packages0 comparisons

Packages compared

302 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
serverless-content-encoding
A serverless plugin to enable [Content Encoding feature in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html) for lambda function response compression.
2.4k-53%-8 years ago
1.1.0
CommonJSNoneCompression and archives
lzo1x
Pure-TypeScript clean-room implementation of LZO1X-1 compression and decompression, isomorphic (Node + browser)
2.4k--3 months ago
1.0.1
ESM + CommonJSBundledCompression and archives, TypeScript tooling
@gjsify/compression-streams
W3C Compression Streams API for GJS
2.4k---1 day ago
0.52.0
ESM onlyBundledCompression and archives, HTTP clients
redux-persist-transform-compress
compress your redux state
2.4k-24%-9 years ago
4.2.0
CommonJSBundledCompression and archives
gzipme
Gzipme is a module and CLI tool to compress files to gzip
2.4k-92%-6 years ago
1.0.0
CommonJSNoneCompression and archives, CLI tools and terminal utilities
@mischnic/pako
zlib port to javascript - fast, modularized, with browser support
2.3k---6 years ago
1.0.10
ESM + CommonJSNoneCompression and archives
inly
extract .zip, .gz, .bz2, .tar, .tar.gz, .tgz, .tbz2
2.3k+66%-2 years ago
5.0.1
CommonJSNoneCompression and archives
compress-tag
Template literal tag to remove excess whitespace and newlines from strings.
2.3k-9%-3 years ago
3.0.0
CommonJSBundledStrings and text, Compression and archives
@cto.af/unicode-trie-runtime
Runtime code for unicode-trie files.
2.3k---6 months ago
3.2.9
ESM onlyBundledCompression and archives
gunzip
Compress or expand files using LZ77 and Huffman coding
2.3k-30%-7 years ago
1.2.2
-NoneCompression and archives
express-zip
stream multiple files to the browser as a single zip, in pure node.
2.2k+5%-6 years ago
3.0.0
CommonJSNoneCompression and archives, HTTP servers and web frameworks
@kafkajs/zstd
A KafkaJS codec for ZStandard compression
2.2k---5 years ago
0.1.1
CommonJSBundledCompression and archives, Queues and background jobs
zip-build
Node package to zip your build directory and name it according to your package.json name and version.
2.2k-1%-3 years ago
1.8.0
CommonJSNoneCompression and archives
connect-gzip-static
gzip/brotli static middleware for connect - serves compressed files if they exist, falls through to connect-static if they don't
2.1k-68%-10 months ago
5.0.0
ESM onlyNoneCompression and archives
@stainless-code/persist
Hydration-aware persistence for any reactive store — zero-dep persistSource core; codecs, backends, cross-tab transport, source + framework hydration adapters ship as opt-in recipes
2.1k---2 months ago
0.4.1
ESM onlyBundledTypeScript tooling, Cryptography and hashing
dsh-context-compression-improved
One-install context-compression selector bundle for DeepSeek Harness
2.1k--9 days ago
0.1.1
ESM onlyBundledCompression and archives
gatsby-plugin-zopfli
Gatsby plugin for preparing zopfli-compressed versions of assets
2k-43%-6 years ago
2.0.0
CommonJSNoneCompression and archives
@amoutonbrady/lz-string
Modern TypeScript port of lz-string: LZ-based compression for JavaScript strings
2k---18 days ago
0.2.0
ESM + CommonJSBundledCompression and archives, TypeScript tooling
@lightprotocol/compressed-token
JS client to interact with the compressed-token program
1.8k---5 months ago
0.23.3
ESM + CommonJSBundledCompression and archives, Blockchain and Web3
sizeist
takes a readable stream and emits its size (in bytes) at various stages of compression
1.7k-78%-10 years ago
1.0.1
CommonJSNoneCompression and archives
jquery-jpostal-ja
A jQuery plug-in that automatically enters a japanese zip code into the address field when you enter it.
1.7k-70%--
2.14.84
CommonJSNoneCompression and archives
json-shrink
shrink json objects with LZMA (7-zip) or Brotli compression + jsonpack
1.6k+99%-4 years ago
0.0.124
CommonJSNoneCompression and archives
compression-rspack-plugin-linux-x64-musl
Rust-native parallel compression plugin for Rspack. Drop-in replacement for compression-webpack-plugin with gzip, brotli, deflate, and deflateRaw — all parallelized across CPU cores via Rust + rayon.
1.6k--5 months ago
0.2.0
CommonJSNoneCompression and archives
tsmaz
TypeScript port of the smaz string compression library
1.5k+108%-6 years ago
1.5.0
ESM + CommonJSBundledCompression and archives
nyro
A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
1.5k-26%-1 year ago
2.0.4
ESM + CommonJSBundledPromises and async control flow, Compression and archives
node-targz
Simple gzip compression and decompression library for Node.js
1.5k+98%-9 years ago
0.2.0
CommonJSNoneCompression and archives
@indutny/rezip-electron
Re-compress Electron macOS installer zip files for better incremental updates
1.5k---9 months ago
3.0.2
ESM onlyBundledCompression and archives
node-http-server
A lightweight, secure, zero-runtime-dependency HTTP and HTTPS static server for Node.js only.
1.5k-51%-17 days ago
10.0.0
ESM + CommonJSNoneNode.js utilities, Compression and archives
brotli-js
compressor and decompressor for Brotli
1.4k+26%-4 years ago
1.0.2
CommonJSNoneCompression and archives
is-7zip
Check if a Buffer/Uint8Array is a 7ZIP file
1.4k+179%-9 years ago
2.0.0
-NoneCompression and archives
gzip-cli
gzip-cli provides CLI for compressing files by using compress algorithms such as Gzip and Brotli
1.4k-38%-5 years ago
1.2.0
CommonJSBundledCompression and archives, CLI tools and terminal utilities
modify-response-middleware
Middleware that allows you to modify the response data.
1.3k-5%-6 years ago
1.1.0
CommonJSNoneCompression and archives, HTTP servers and web frameworks
lzma-purejs-requirejs
pure JavaScript LZMA de/compression, for node.js, volo, and the browser.
1.3k+132%-3 years ago
1.0.0
CommonJSNoneCompression and archives
rollup-plugin-output-size
A Rollup plugin that displays output bundle sizes.
1.3k-16%-1 year ago
2.0.0
ESM + CommonJSBundledBundler plugins and loaders, Compression and archives
@2l/kafkajs-lz4
LZ4 compression codec for the KafkaJS library
1.3k---1 year ago
1.3.2
CommonJSBundledCompression and archives, Queues and background jobs
rn-gzip
Gzip compression and decompression
1.3k+134%-4 years ago
0.0.11
CommonJSNoneCompression and archives
rollup-plugin-zip
Rollup plugin to zip up emitted files.
1.3k+36%-5 years ago
1.0.3
ESM + CommonJSBundledCompression and archives, Bundler plugins and loaders
jsonfile-compressed
similar to jsonfile, but with automatic jsonpack + lzma (7zip) compression+decompression
1.2k+1300%-4 years ago
0.0.113
CommonJSNoneCompression and archives
urlsafe-lzma
URL-safe LZMA compression
1.1k+901%-4 years ago
1.0.4
CommonJSNoneCompression and archives, URLs and query strings
broccoli-imagemin
Broccoli filter for compressing images with imagemin
1.1k+56%-7 years ago
2.0.1
CommonJSNoneCompression and archives, Image processing
brotli-lib
TypeScript Brotli encoder and decoder
1.1k--7 months ago
0.0.7
ESM + CommonJSBundledCompression and archives, TypeScript tooling
aws-s3-zipper
Zip files from and to an Amazon AWS S3 Bucket directory as a stream, file or fragments. Allows filtering files.
1.1k-47%-4 years ago
1.4.0
CommonJSNoneCloud SDKs, Compression and archives
happy-opfs
A browser-compatible file system module based on OPFS, inspired by Deno fs APIs. Supports async/sync operations, streaming zip/unzip, and Result-based error handling.
1.1k+70%-8 days ago
2.3.1
ESM + CommonJSBundledFiles and file systems, Promises and async control flow
jszip-cli
npm interface for JSZip
1.1k+2%-9 years ago
1.4.24
-NoneCompression and archives
@lopatnov/rollup-plugin-uglify
A Rollup plugin for minifying JavaScript bundles using Terser
1.1k---2 months ago
5.0.0
ESM + CommonJSBundledBundler plugins and loaders, TypeScript tooling
hono-compress
Compression plugin for Hono working with Bun
1.1k+244%-5 months ago
1.0.2
ESM + CommonJSBundledCompression and archives
tar-to-zip
convert tar and tar.gz archives to zip
1.1k-36%-5 years ago
3.0.0
CommonJSNoneCompression and archives
dir-archiver
Create, inspect, audit, normalize, and extract archives across Node.js, Deno, and Bun.
1k-28%-1 month ago
4.0.0
ESM onlyBundledCompression and archives, CLI tools and terminal utilities
astro-minify-html-swc
An Astro integration that minifies HTML
1k+1194%-2 months ago
0.1.12
ESM + CommonJSBundledBuild tools, Static site generators and meta-frameworks
gzip-all
Create .gz files for all files in a folder
1k-58%-9 years ago
1.0.0
CommonJSNoneCompression and archives

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • serverless-content-encodingA serverless plugin to enable [Content Encoding feature in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html) for lambda function response compression.
  • lzo1xPure-TypeScript clean-room implementation of LZO1X-1 compression and decompression, isomorphic (Node + browser)
  • @gjsify/compression-streamsW3C Compression Streams API for GJS
  • redux-persist-transform-compresscompress your redux state
  • gzipmeGzipme is a module and CLI tool to compress files to gzip
  • @mischnic/pakozlib port to javascript - fast, modularized, with browser support
  • inlyextract .zip, .gz, .bz2, .tar, .tar.gz, .tgz, .tbz2
  • compress-tagTemplate literal tag to remove excess whitespace and newlines from strings.
  • @cto.af/unicode-trie-runtimeRuntime code for unicode-trie files.
  • gunzipCompress or expand files using LZ77 and Huffman coding
  • express-zipstream multiple files to the browser as a single zip, in pure node.
  • @kafkajs/zstdA KafkaJS codec for ZStandard compression
  • zip-buildNode package to zip your build directory and name it according to your package.json name and version.
  • connect-gzip-staticgzip/brotli static middleware for connect - serves compressed files if they exist, falls through to connect-static if they don't
  • @stainless-code/persistHydration-aware persistence for any reactive store — zero-dep persistSource core; codecs, backends, cross-tab transport, source + framework hydration adapters ship as opt-in recipes
  • dsh-context-compression-improvedOne-install context-compression selector bundle for DeepSeek Harness
  • gatsby-plugin-zopfliGatsby plugin for preparing zopfli-compressed versions of assets
  • @amoutonbrady/lz-stringModern TypeScript port of lz-string: LZ-based compression for JavaScript strings
  • @lightprotocol/compressed-tokenJS client to interact with the compressed-token program
  • sizeisttakes a readable stream and emits its size (in bytes) at various stages of compression
  • jquery-jpostal-jaA jQuery plug-in that automatically enters a japanese zip code into the address field when you enter it.
  • json-shrinkshrink json objects with LZMA (7-zip) or Brotli compression + jsonpack
  • compression-rspack-plugin-linux-x64-muslRust-native parallel compression plugin for Rspack. Drop-in replacement for compression-webpack-plugin with gzip, brotli, deflate, and deflateRaw — all parallelized across CPU cores via Rust + rayon.
  • tsmazTypeScript port of the smaz string compression library
  • nyroA simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
  • node-targzSimple gzip compression and decompression library for Node.js
  • @indutny/rezip-electronRe-compress Electron macOS installer zip files for better incremental updates
  • node-http-serverA lightweight, secure, zero-runtime-dependency HTTP and HTTPS static server for Node.js only.
  • brotli-jscompressor and decompressor for Brotli
  • is-7zipCheck if a Buffer/Uint8Array is a 7ZIP file
  • gzip-cligzip-cli provides CLI for compressing files by using compress algorithms such as Gzip and Brotli
  • modify-response-middlewareMiddleware that allows you to modify the response data.
  • lzma-purejs-requirejspure JavaScript LZMA de/compression, for node.js, volo, and the browser.
  • rollup-plugin-output-sizeA Rollup plugin that displays output bundle sizes.
  • @2l/kafkajs-lz4LZ4 compression codec for the KafkaJS library
  • rn-gzipGzip compression and decompression
  • rollup-plugin-zipRollup plugin to zip up emitted files.
  • jsonfile-compressedsimilar to jsonfile, but with automatic jsonpack + lzma (7zip) compression+decompression
  • urlsafe-lzmaURL-safe LZMA compression
  • broccoli-imageminBroccoli filter for compressing images with imagemin
  • brotli-libTypeScript Brotli encoder and decoder
  • aws-s3-zipperZip files from and to an Amazon AWS S3 Bucket directory as a stream, file or fragments. Allows filtering files.
  • happy-opfsA browser-compatible file system module based on OPFS, inspired by Deno fs APIs. Supports async/sync operations, streaming zip/unzip, and Result-based error handling.
  • jszip-clinpm interface for JSZip
  • @lopatnov/rollup-plugin-uglifyA Rollup plugin for minifying JavaScript bundles using Terser
  • hono-compressCompression plugin for Hono working with Bun
  • tar-to-zipconvert tar and tar.gz archives to zip
  • dir-archiverCreate, inspect, audit, normalize, and extract archives across Node.js, Deno, and Bun.
  • astro-minify-html-swcAn Astro integration that minifies HTML
  • gzip-allCreate .gz files for all files in a folder

No comparisons for this package yet.