# adamhathcock/sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.

Repository: https://github.com/adamhathcock/sharpcompress
Canonical: https://ross.abutalabs.com/products/sharpcompress
Language: C#
License: MIT
License Family: permissive
Topics: c-sharp, dotnet-core, unrar, zip, bzip2, tar, gzip, compression, lzip, lzma, sharpcompress, xz, 7zip
Last push: 2026-08-20T09:38:21+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 95, longevity 100
- inputs: {"age_days": 4896, "days_push": 13, "days_rel": 32, "gap_med": 5, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2577, forks 519 (observed 2026-08-28T04:07:02.243307+00:00)

## What it is
SharpCompress is a fully managed pure C# compression library for .NET supporting many archive formats (zip, tar, gzip, bzip2, 7zip, rar, xz, zstandard, and more) with both forward-only reading and random access APIs. It supports non-seekable streams for on-the-fly processing, async I/O, and write support for several formats.

## Use cases
- extract zip tar and 7zip archives in C#
- unrar files without native libraries in .NET
- read archives from a non-seekable download stream
- create zip or tar.gz archives programmatically in .NET
- decompress gzip bzip2 xz and zstandard streams
- process large archive files on the fly with async I/O

## When to choose
- you need a pure managed .NET solution with no native dependencies
- you must handle many archive formats with one library
- you need to read archives from network or non-seekable streams
- you need async extraction or custom compression providers

## When to avoid
- you need maximum RAR compression fidelity (RAR is proprietary and read-only here)
- you need streamable 7zip writing (7zip does not support streamable formats)
- you are outside the .NET ecosystem

## Facets
- artifact type: library
- maturity: active
- function: compression, file-system, parser
- domain: files, developer-tools, cross-platform
- platform: dotnet, cross-platform, c
- tags: c-sharp, archive-extraction, zip, tar, gzip, 7zip, rar, zstandard, streaming, async-io

## Member repositories
- adamhathcock/sharpcompress (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:02.243307+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-30T02:22:41.404242+00:00, confidence not recorded.
  - readme: https://github.com/adamhathcock/sharpcompress (fetched 2026-08-28T04:07:02.243307+00:00, sha b77e59d7d34f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
