fflate
npmv0.8.3TypeScriptHigh performance (de)compression in an 8kB package
Safe to adopt
Yes — fflate scores well across adoption, maintenance, weight, supply chain, and licensing. 53.5M downloads per week and 1 known dependents. Last published 117 days ago. 5 releases in the last 2 years.
- AAdoption: grade A, Excellent.
53.5M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 117 days ago. 5 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 778 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding fflate to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the fflate README.
// I will assume that you use the following for the rest of this guide
import * as fflate from 'fflate';
// However, you should import ONLY what you need to minimize bloat.
// So, if you just need GZIP compression support:
import { gzipSync } from 'fflate';
// Woo! You just saved 20 kB off your bundle with one line.fflate vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| fflatethis page | 53.5M | 1 | MIT | 3 months ago |
| minizlib | 0 | 2 | MIT | 15 hours ago |
| pako | 100.8M | 2 | (MIT AND Zlib) | 16 hours ago |
| @zip.js/zip.js | 0 | 2 | BSD-3-Clause | 15 hours ago |
| jszip | 0 | 2 | (MIT OR GPL-3.0-or-later) | 19 hours ago |
| tinyglobby | 0 | 8 | MIT | 17 hours ago |
Dependencies
Declared by fflate v0.8.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (20)
Used by
Popular packages that depend on fflate.
Relationship graph
Dependencies (left) and dependents (right) of fflate.
Frequently installed together
Native-ESM powered web dev build tool
A comprehensive library for mime-type mapping
A small library to print colourful messages.
Next generation testing framework powered by Vite
The optimized & lightweight middleware for serving requests to static assets
The progressive JavaScript framework for building modern web UI.
Browser running for Vitest using playwright
Message based Two-way remote procedure call
Shared Vitest utility functions
Universal filesystem path utils
Smooth scrolling for any amount of data
A fast and minimal alternative to globby and fast-glob
Release history
5 releases in the last two years, typically about 27 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.7.5 | 1 month ago | 523 KB | MIT |
| 0.6.11 | 1 month ago | 508 KB | MIT |
| 0.5.4 | 1 month ago | 488 KB | MIT |
| 0.4.9 | 1 month ago | 254 KB | MIT |
| 0.8.3latest | 3 months ago | 778 KB | MIT |
| 0.8.2 | 2 years ago | 755 KB | MIT |
| 0.8.1 | 3 years ago | 732 KB | MIT |
| 0.8.0 | 3 years ago | 543 KB | MIT |
| 0.7.4 | 4 years ago | 523 KB | MIT |
| 0.7.3 | 4 years ago | 523 KB | MIT |
| 0.7.2 | 4 years ago | 521 KB | MIT |
| 0.7.1 | 5 years ago | 522 KB | MIT |
| 0.7.0 | 5 years ago | 517 KB | MIT |
| 0.6.10 | 5 years ago | 508 KB | MIT |
| 0.6.9 | 5 years ago | 509 KB | MIT |
Overview
fflate is an npm package that high performance (de)compression in an 8kB package. It is extremely widely used, with about 53.5M downloads per week and 1 known dependents in the graph. The latest version is 0.8.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need high performance (de)compression in an 8kB package and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (53.5M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (20 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use fflate?
Yes — fflate scores well across adoption, maintenance, weight, supply chain, and licensing. 53.5M downloads per week and 1 known dependents. Last published 117 days ago. 5 releases in the last 2 years.
How do I install fflate?
Run `npm install fflate` to add fflate to your npm project.
What license is fflate released under?
fflate is distributed under the MIT license.
How popular is fflate?
fflate has approximately 53,542,445 downloads per week and 1 known dependent packages.
Is fflate still maintained?
The most recent release of fflate (v0.8.3) was published 3 months ago.
Does fflate run install scripts?
No. fflate does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.