Brotli WebAssembly Compressor

JSON →
library 3.0.1 ·javascript
verified May 27, 2026

brotli-wasm is a JavaScript/TypeScript library providing Brotli compression and decompression capabilities across both Node.js (v18 and above) and browser environments, powered by WebAssembly. It wraps the well-regarded Rust Brotli crate (currently v5 as of `brotli-wasm` v3.x), compiling it to WASM for broad compatibility. The current stable version is 3.0.1, with major version updates occurring when significant breaking changes are introduced, such as API overhauls or minimum engine version bumps. A key differentiator is its consistent, battle-tested API that abstracts away the complexities of WASM loading and environment-specific implementations, allowing developers to use a single codebase for compression needs in diverse JavaScript runtimes. It offers both a simple `compress`/`decompress` API for buffers and advanced `CompressStream`/`DecompressStream` classes for streaming data, making it suitable for various use cases from file processing to network communication. It explicitly states no runtime dependencies.

total hits 24
actors 8 distinct systems
last hit 1d ago human
ByteDance
5
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France