Every compression library I tried ran out of RAM. So I built one that doesn't.
Compress a 1 GB file in the browser with most JavaScript libraries and you'll use 1.6 GB of RAM . Try 4 GB and the tab crashes.
- Author created zstd-stream library to address RAM issues with compression libraries
- zstd-stream uses Zstandard C library compiled to WebAssembly with streaming layer
- Library compresses/decompresses files of any size using ~35 MB memory