# luben/zstd-jni

JNI binding for Zstd

Repository: https://github.com/luben/zstd-jni
Canonical: https://ross.abutalabs.com/products/zstd-jni
Language: C
License: BSD-2-Clause
License Family: permissive
Topics: jni-binding, lossless-compression-algorithm, android, native-library, compression
Last push: 2026-08-29T15:27:51+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 4207, "days_push": 4, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1063, forks 216 (observed 2026-09-01T02:14:03.848553+00:00)

## What it is
JNI bindings for the Zstandard (Zstd) lossless compression library, usable from Java and all JVM languages including Android. It exposes static compress/decompress methods and InputStream/OutputStream implementations compatible with the zstd tool, with the native library embedded in the JAR.

## Use cases
- compress and decompress data with zstd from Java
- transparently compress streams via InputStream/OutputStream
- add fast lossless compression to an Android app
- reduce storage or network payload size in JVM services
- read and write zstd-format files from Scala or Kotlin

## When to choose
- you need Zstd compression from Java, Kotlin, or Scala with minimal setup
- you want a dependency-free JAR with embedded native binaries
- you need Android support for zstd
- you want stream-based compression compatible with the zstd CLI

## When to avoid
- you need support for legacy zstd formats (0.4-0.7)
- you plan to rename, minimize, or relocate the Java classes (breaks native linking)
- you need pure-Java compression without native libraries

## Facets
- artifact type: library
- maturity: stable
- function: compression, serialization
- domain: developer-tools, files, performance
- platform: jvm, cross-platform
- tags: zstd, jni, java, lossless-compression, native-library, android

## Member repositories
- luben/zstd-jni (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:03.848553+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-30T06:56:51.502019+00:00, confidence not recorded.
  - readme: https://github.com/luben/zstd-jni (fetched 2026-09-01T02:14:03.848553+00:00, sha ce05100437db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
