Releases: DevsDaddy/bweave
Public Release (1.0.0)
BWeave (Binary Weave) is a hybrid binary data compression library written in pure TypeScript, designed for high-load real-time applications (WebSocket, RTC, game telemetry, financial flows).
The key idea is to automatically select the most appropriate compression algorithm for each data fragment, ensuring minimal latency with an acceptable compression ratio.
About BWeave
Unlike general-purpose algorithms (zlib, Brotli), BWeave doesn't use entropy coding (Huffman), allowing it to operate synchronously without micro-delays due to promises and event queues. At the same time, its hybrid approach and pre-trained dictionaries achieve compression close to LZ4 and Snappy, but with better performance on repeating data.
❓ Why BWeave?
🔹 Lightweight library with zero dependencies;
🔹 Flexible hybrid compression library written in Typescript;
🔹 Extremely fast (great for realtime and IoT applications);
🔹 Production ready with benchmarks;
🔧 Extended features
- Automatic compression selection algorithm;
- Pre-trained dictionaries – 6 ready-made dictionaries (JSON, HTTP, HTML, JS, binary, Protobuf) increase compression by 15–30% without sacrificing speed.
- Parallel compression – splitting into blocks and parallel processing via Promise.all.
- Dictionary caching (dictCache) – remembers the last LZ77 window for compressing successive similar packets.
- CRC32 checksum – optional data integrity check.