# richgel999/miniz

miniz: Single C source file zlib-replacement library, originally from code.google.com/p/miniz

Repository: https://github.com/richgel999/miniz
Canonical: https://ross.abutalabs.com/products/miniz
Language: C++
License: MIT
License Family: permissive
Last push: 2026-07-01T13:46:26+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 67, longevity 100
- inputs: {"age_days": 4122, "days_push": 63, "days_rel": 63, "gap_med": 141.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2865, forks 420 (observed 2026-08-28T04:07:26.563635+00:00)

## What it is
Miniz is a lossless data compression library in a single C source file implementing the zlib (RFC 1950) and Deflate (RFC 1951) formats as a drop-in zlib replacement under the MIT license. It also includes APIs for reading/writing ZIP archives and writing PNG image files.

## Use cases
- replace zlib without its licensing requirements
- add deflate compression to a C/C++ project with a single source file
- read and write ZIP archives in embedded or game development
- compress data in real time comparable to fastlz or minilzo
- write PNG image files from C code
- embed a portable compression library in mobile or console apps

## When to choose
- you need zlib-compatible compression with a permissive MIT license
- you want a single-file, dependency-free C library that's easy to embed
- you need lightweight ZIP archive manipulation in C
- you target embedded, mobile, or game platforms where portability matters

## When to avoid
- you need multithreaded or SIMD-optimized compression performance
- you need advanced zlib features or full API compatibility
- you need modern compression formats like zstd or brotli
- you need a full-featured archiver rather than basic ZIP APIs

## Facets
- artifact type: library
- maturity: stable
- function: compression
- domain: files, developer-tools, cross-platform
- platform: cross-platform, cpp, c
- tags: zlib-replacement, deflate, zip, png, single-file, embedded

## Member repositories
- richgel999/miniz (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:26.563635+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-30T07:36:14.264610+00:00, confidence not recorded.
  - readme: https://github.com/richgel999/miniz (fetched 2026-08-28T04:07:26.563635+00:00, sha 4b2e3328e5de)
- Data as of 2026-08-30T08:39:29.467469+00:00.
