# klauspost/compress

Optimized Go Compression Packages

Repository: https://github.com/klauspost/compress
Canonical: https://ross.abutalabs.com/products/compress
Language: Go
License: NOASSERTION
License Family: other
Topics: zstd, gzip, compression, decompression, snappy, zip, golang, zstandard, go, deflate
Last push: 2026-08-17T12:15:05+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 84, longevity 100
- inputs: {"age_days": 4061, "days_push": 16, "days_rel": 27, "gap_med": 40.0, "n_releases_24m": 13}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5613, forks 390 (observed 2026-08-28T04:09:23.010266+00:00)

## What it is
A collection of optimized pure-Go compression packages including zstandard, S2 (a Snappy replacement), and drop-in replacements for gzip, zip, zlib, flate, and lzw. It offers faster compression/decompression than the Go standard library, with optional assembly acceleration and concurrent stream encoding.

## Use cases
- compress data faster than the Go standard library
- read and write zstd compressed streams in Go
- replace gzip/zip/zlib with a faster drop-in
- compress HTTP responses and handle gzipped requests
- high-throughput Snappy-style compression with S2
- parallel gzip compression

## When to choose
- you need faster compression or decompression than compress/* in Go
- you want pure-Go zstd without cgo
- you need concurrent or streaming compression in Go services

## When to avoid
- you are not using Go
- you need exotic formats like brotli or lz4
- you only need trivial compression where the standard library suffices

## Facets
- artifact type: library
- maturity: active
- function: compression, serialization
- domain: developer-tools, performance, files
- platform: go, cross-platform
- tags: zstd, gzip, snappy, s2, deflate, zip, lzw, huffman-encoding, drop-in-replacement

## Member repositories
- klauspost/compress (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:23.010266+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:25.093714+00:00, confidence not recorded.
  - readme: https://github.com/klauspost/compress (fetched 2026-08-28T04:09:23.010266+00:00, sha 0c6b1e54a231)
- Data as of 2026-08-30T08:39:29.467469+00:00.
