# lz4/lz4-java

LZ4 compression for Java

Repository: https://github.com/lz4/lz4-java
Canonical: https://ross.abutalabs.com/products/lz4-java
Language: Java
License: Apache-2.0
License Family: permissive
Topics: lz4-compression, jni-bindings, java, compressor, lz4-java, decompression, lz4-compressors
Archived: true
Last push: 2025-11-28T19:23:16+00:00

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

## Adoption (not part of the score)
Stars 1175, forks 285 (observed 2026-08-28T04:03:52.482073+00:00)

## What it is
A Java library providing LZ4 compression and decompression with fast, high-compression, and interoperable frame modes. It offers JNI bindings to the C implementation plus pure-Java and Unsafe-based ports, all producing interchangeable streams.

## Use cases
- compress data in a Java application with LZ4
- read LZ4 frame streams produced by other languages or the lz4 CLI
- speed up serialization of large in-memory datasets
- choose between JNI speed and pure-Java portability for compression
- decompress LZ4 streams with low memory overhead

## When to choose
- you need very fast compression/decompression on the JVM
- you need interoperable LZ4 frame streams across languages
- you want a choice of JNI, Unsafe, or pure-Java implementations

## When to avoid
- starting a new project - the official project is discontinued; use the community fork (yawkat/lz4-java)
- you need maximum compression ratio rather than speed
- you need a non-JVM language

## Facets
- artifact type: library
- maturity: maintenance
- function: compression
- domain: developer-tools, files
- platform: jvm, cross-platform
- tags: lz4, jni-bindings, data-compression, discontinued

## Member repositories
- lz4/lz4-java (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:52.482073+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:28:13.703759+00:00, confidence not recorded.
  - readme: https://github.com/lz4/lz4-java (fetched 2026-08-28T04:03:52.482073+00:00, sha 1ba59b698cc3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
