10 Best Node.js Compression Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

az

adm-zip

A Javascript implementation of zip for nodejs. Allows user to create or extract zip files both in memory or to/from disk

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.3/ 5
3
Top Feedback
2Great Documentation
1Easy to Use
GitHub Stars
1K
Weekly Downloads
3M
Last Commit
20d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
jsz

jszip

Create, read and edit .zip files with Javascript

License Icon
License: (MIT OR GPL-3.0-or-later)
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
3
Top Feedback
N/A
GitHub Stars
7K
Weekly Downloads
5M
Last Commit
16d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

compression-webpack-plugin

Prepare compressed versions of assets to serve them with Content-Encoding

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
1
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
1M
Last Commit
2mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

compression

Node.js compression middleware

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
3Great Documentation
3Easy to Use
2Performant
GitHub Stars
2K
Weekly Downloads
12M
Last Commit
2yrs ago
Bundle Size (min+gzip)
26.7KB
Not Tree-Shakeable

pixelmatch

The smallest, simplest and fastest JavaScript pixel-level image comparison library

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
4K
Weekly Downloads
3M
Last Commit
3mos ago
Bundle Size (min+gzip)
1.31KB
Not Tree-Shakeable
gz

gulp-zip

ZIP compress files

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
266
Weekly Downloads
88K
Last Commit
8mos ago
Bundle Size (min+gzip)
25.6KB
Not Tree-Shakeable
sl

secure-ls

🔒 Secure localStorage data with high level of encryption and data compression

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
533
Weekly Downloads
19K
Last Commit
1yr ago
Bundle Size (min+gzip)
14.0KB
Not Tree-Shakeable
sna

snappy

Fastest Snappy compression library in Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
42
Weekly Downloads
636K
Last Commit
5d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
ls

lz-string

LZ-based compression algorithm for JavaScript

License Icon
License: WTFPL
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
4M
Last Commit
2mos ago
Bundle Size (min+gzip)
1.37KB
Not Tree-Shakeable

brotli

A JavaScript port of the Brotli compression algorithm, as used in WOFF2

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
382
Weekly Downloads
1M
Last Commit
2yrs ago
Bundle Size (min+gzip)
293.6KB
Not Tree-Shakeable
nz

node-zopfli

Node bindings for Zopfli Compression Algorithm (zlib, gzip, deflate compatible)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
106
Weekly Downloads
13K
Last Commit
1yr ago
Bundle Size (min+gzip)
1.25KB
Not Tree-Shakeable
lzm

lzma

A JavaScript implementation of the Lempel-Ziv-Markov (LZMA) chain compression algorithm

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
11K
Last Commit
N/A
Bundle Size (min+gzip)
0.38KB
Not Tree-Shakeable
lz4

lz4

LZ4 fast compression algorithm for NodeJS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
379
Weekly Downloads
7K
Last Commit
1yr ago
Bundle Size (min+gzip)
28.1KB
Not Tree-Shakeable
com

compressjs

Pure JavaScript de/compression (bzip2, etc) for node.js, volo, and the browser.

License Icon
License: GPL-3.0-or-later
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
319
Weekly Downloads
3K
Last Commit
6yrs ago
Bundle Size (min+gzip)
0.56KB
Not Tree-Shakeable
gzi

gzippo

gzippo pronounced `g-zippo` is a nodejs gzip middleware for Connect and express js using the new native node zlib api

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
211
Weekly Downloads
231
Last Commit
7yrs ago
Bundle Size (min+gzip)
20.8KB
Not Tree-Shakeable
sr

shrink-ray

Node.js compression middleware

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
263
Weekly Downloads
130
Last Commit
5yrs ago
Bundle Size (min+gzip)
36.1KB
Not Tree-Shakeable