Google's Squoosh is a powerful image compression app, but its advanced WebAssembly-based codecs are tightly coupled to its web app structure. This project forks Squoosh to extract and package those Wasm codecs into a standalone, browser-compatible package that can be used as a drop-in dependency in any web application.
By exposing Squoosh's powerful compression codecs as an independent package, it enables developers to build programmatic, high-quality client-side image compression directly inside any browser workflow without requiring complex build steps or server-side setups.
Decoupled Wasm Compilation: Extracted Google Squoosh's native C++ image codecs (like OxiPNG and MozJPEG) and compiled/wrapped them into decoupled, browser-friendly JavaScript API wrappers.
Drop-In Dependency: Standardized the compiled outputs into a standalone npm package, enabling other web platforms (like DocuBlend) to load Squoosh Wasm binaries dynamically without custom pipeline build configurations.
Programmatic Compression: Created helper interfaces that allow web developers to run pixel quantization (reducing colors to 64/256) and compress raw canvas blobs into lightweight PNGs and JPEGs entirely client-side, saving significant server bandwidth.