compress-kit

The shared compression core: gzip, deflate and deflate-raw via the platform's Compression Streams. One file, no dependencies. MIT.

Run the self-test Source

gzip / deflate

Standard formats, produced and read by the platform.

deflate-raw

Smallest payload when you control both ends.

String ⇄ base64

One call to compress or expand text.

No library

Compression Streams are built in — this is just the wrapper.

Pairs with lexora on the command line, and with crypto-kit (compress, then seal).