{"library":"brotli-wasm","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","brotli","wasm","compression","decompression","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install brotli-wasm","imports":["import brotliPromise from 'brotli-wasm';","const { compress, decompress } = await brotliPromise;","import { CompressStream, DecompressStream } from 'brotli-wasm';"]},{"cmd":"yarn add brotli-wasm","imports":[]},{"cmd":"pnpm add brotli-wasm","imports":[]}],"homepage":null,"github":"https://github.com/httptoolkit/brotli-wasm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/brotli-wasm","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/brotli-wasm/compatibility"}}