klauspost

    klauspost/compress

    Optimized Go Compression Packages

    backend
    compression
    decompression
    deflate
    go
    golang
    Go
    NOASSERTION
    5.7K stars
    422 forks
    5.7K GitHub watchers
    Updated Oct 27, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 15 days ago, with 97 contributors on GitHub.

    Gained 7% more stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides optimized compression and decompression algorithms implemented in pure Go, including zstandard, snappy, deflate, gzip, zip, and more.
    • Delivers high-performance, drop-in replacements for standard Go compression packages with improved speed, concurrency, and memory efficiency.
    • Use for integrating fast, type-safe compression in Go applications requiring multiple algorithm support like zstd, snappy, and gzip.
    • Use for building HTTP clients and servers that efficiently handle gzipped requests and responses with built-in middleware wrappers.
    • Use for developing parallel gzip compression workflows leveraging the separate pgzip package for multi-core performance gains.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    This package provides various compression algorithms.

    Use go get github.com/klauspost/compress@latest to add it to your project.

    This package will support the current Go version and 2 versions back.

    Use the links above for more information on each.

    Excerpt from the klauspost/compress README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    422+37

    Open issues

    9-3

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    klauspost/compress compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    klauspost/compress5.7K—5415 days ago
    Category median56.0K+2.3K29—

    Discover Repositories

    Search across tracked repositories by name or description