thehardwarestore.ai

where AI agents shop for the right tools

── 99195 repos indexed ── | filtered by tag: #compression
google/wuffs β˜… 4821 145 APPLICATION

Wuffs is a memory-safe programming language and toolchain for writing parsers and codecs, with C code generation as its primary output. The system provides a comprehensive library of decoders for image formats (JPEG, PNG, GIF, BMP, WebP, etc.), compression formats (Deflate, Zlib, Gzip, LZMA, XZ, BZip2, etc.), and checksums (CRC32, Adler32, SHA256). It is designed to eliminate buffer overflows, integer overflows, and null pointer dereferences at compile time through formal verification and interval arithmetic, without runtime overhead. The architecture consists of a custom DSL (Wuffs language) with a Go-based compiler (parser, type checker, optimizer), a C code generator that produces a single-file header-only C library, and a set of auxiliary C++ modules for high-level APIs. Key entry points include the `wuffs` CLI tool for managing packages and generating C code, the `wuffs-c` tool for C-specific operations, and the generated `wuffs-unsupported-snapshot.c` file that can be dropped into any C project. External dependencies are minimal: the development toolchain requires Go, but the generated C library has no dependencies beyond standard C. The system is used in production (e.g., GIF decoder in Google Chrome) and is benchmarked as 1.3–6Γ— faster than equivalent C libraries.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
deepspeedai/DeepSpeed β˜… 43161 5013 APPLICATION

DeepSpeed is a comprehensive distributed training and inference optimization library for large-scale deep learning. It provides a suite of system innovations including ZeRO (Zero Redundancy Optimizer) memory optimization stages 1-3, 3D parallelism (data, tensor, pipeline), sequence parallelism (DeepSpeed-Ulysses), mixture-of-experts training and inference, automatic tensor parallelism (AutoTP), CPU/NVMe offloading, and compiler-based optimizations (DeepSpeed-DeepCompile). The architecture centers around a runtime engine that wraps PyTorch models, optimizers, and data loaders to provide transparent distributed training with JSON-based configuration. Key entry points include `deepspeed.initialize()` for training, `deepspeed.init_inference()` for inference, and CLI launchers (`deepspeed`, `ds_report`). The codebase spans Python runtime logic, C++/CUDA custom ops (fused optimizers, transformer kernels, async I/O, quantization), multi-backend communication (NCCL, MPI, HCCL, oneCCL), and accelerator abstraction for NVIDIA, AMD, Intel, and other hardware. Recent additions include ZenFlow stall-free offloading, SuperOffload for superchip architectures, Muon optimizer support, and DeepSpeed-FastGen for high-throughput LLM serving with Dynamic SplitFuse scheduling.

RATING: 9.8/10 MAINT: active DRIFT: low
β–Έ 10 reusable components found
headroomlabs-ai/headroom β˜… 74439 5761 APPLICATION

Headroom is a context optimization layer for LLM applications that reduces token usage by 50-90% through intelligent compression, caching, and memory systems. It provides a transparent proxy between LLM clients (like Claude Code, Cursor, etc.) and LLM providers (Anthropic, OpenAI, etc.), implementing CCR (Compress-Cache-Retrieve) for lossless compression with retrieval capability. The system features a hybrid polyglot architecture with a Rust-based high-performance proxy core, Python ecosystem for extensibility, and TypeScript SDK. Key capabilities include agent wrapping, cross-agent memory using Qdrant/Neo4j, observability through metrics and dashboard, and a learning system that analyzes interaction patterns to generate optimization rules. Deployment options include Docker, system services, and direct execution.

RATING: 9.5/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
gchq/CyberChef β˜… 36041 4167 APPLICATION

CyberChef is a web-based cybersecurity toolkit for data manipulation, analysis, and transformation. It operates entirely client-side, enabling users to perform operations like encoding, encryption, compression, and data analysis without transmitting data to external servers. The application features a modular architecture where each operation is a self-contained class that can be chained together in recipes to create complex data transformation pipelines. The system is built with a clear separation of concerns: a core processing engine (Chef) handles operation execution, a web interface provides user interaction, and web workers offload intensive tasks to maintain responsiveness. Operations define explicit input/output types, and a dish type system ensures safe data handling across transformations. The project includes a Node.js API for programmatic access and a comprehensive test suite to ensure reliability. Key reusable components include the Operation base class (enabling a plugin architecture for new transformations), the Utils library (providing encoding/decoding and conversion utilities), and the Dish type system (abstracting data handling). The project demonstrates strong engineering practices with active maintenance, low technical drift, and a focus on security and performance through client-side processing and worker-based offloading.

RATING: 9.5/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
facebook/zstd β˜… 27950 2615 APPLICATION

This repository is the reference implementation of the Zstandard (zstd) lossless compression algorithm, developed and maintained by Meta (Facebook). It is a production-grade C library (`libzstd`) that provides fast, high-ratio compression with configurable speed/ratio trade-offs, including negative compression levels for extreme speed. The library is accompanied by a full-featured command-line tool (`zstd`) that supports compression, decompression, streaming, multi-threading, dictionary training, and interoperability with gzip, xz, lz4, and lzma formats. The architecture is modular: a core library (`lib/`) with separate concerns for common utilities, compression strategies (fast, double-fast, lazy, optimal, long-distance matching), decompression, dictionary building (cover, fastCover), and legacy format decoders (v01–v07). The `programs/` directory houses the CLI entry point and file I/O utilities. The codebase is exceptionally well-tested with unit tests, fuzzing infrastructure, regression tests, and CLI integration tests. While the dominant character is an application/library, it also contains research-grade entropy coders (FSE, Huffman) and experimental contributions (edit-distance match finder, parallel pzstd, seekable format, educational decoder), making it a hybrid resource for both production use and compression algorithm study.

RATING: 9.5/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
php-memcached-dev/php-memcached β˜… 1000 326 APPLICATION

This repository contains the PHP memcached extension, which provides an interface to memcached servers using the libmemcached library. It's a PHP extension written in C that allows PHP applications to store and retrieve data from memcached servers with support for various serializers (PHP, igbinary, JSON, msgpack), compression methods (fastlz, zlib, zstd), SASL authentication, and session handling. The extension follows standard PHP extension architecture with MINIT, MSHUTDOWN functions and exposes an object-oriented Memcached class to PHP scripts.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
pcodec/pcodec β˜… 496 31 APPLICATION

pco/pcodec is a high-performance lossless compression library specializing in numerical sequences (integers and floats). It implements a novel three-stage pipeline: mode selection (classic, dictionary, integer/float multiplier, float quantizer), delta encoding (consecutive, lookback, conv1), and binning with tANS entropy coding. The library achieves near-Shannon-entropy compression ratios, particularly for structured numeric data like time series, columnar store blocks, and scientific datasets. It provides multiple APIs: a core Rust crate (`pco`), Python bindings via PyO3 (`pcodec` on PyPI), Java bindings via JNI (`pco-jni` on Maven Central), a C API (`pco_c`), and a feature-rich CLI for compression, decompression, inspection, and benchmarking against many other codecs (zstd, snappy, parquet, blosc, etc.). The codebase includes a legacy predecessor (`quantile-compression/q_compress`) also maintained in the same workspace. The architecture is modular, with separate crates for bit I/O (`better_io`), type dispatch macros (`dtype_dispatch`), and extensive testing including format backward compatibility and corruption recovery. It is actively developed with CI pipelines for Rust, Python, and Java.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
securevale/swift-confidential β˜… 312 30 APPLICATION

Swift Confidential is a sophisticated code obfuscation tool designed to protect string literals in Swift applications from static analysis and reverse engineering. The system employs a modular architecture consisting of Core obfuscation algorithms, a public API with Swift macros, utility functions, a YAML-based configuration parser, and a command-line tool. It provides two primary usage methods: compile-time macros (#Obfuscate) that transform plain string literals into obfuscated versions with runtime decryption capabilities, and a YAML-driven approach where a CLI tool processes configuration files to generate obfuscated Swift code. The core innovation lies in how each obfuscation technique (compression, encryption, randomization) not only obscures the data but also hides metadata about the method usedβ€”such as obfuscating compression magic bytes, encrypting key placement based on nonce bits, and obscuring shuffle patterns. This dual-layer approach significantly increases resistance to reverse engineering attempts. The project demonstrates strong maintenance with recent activity, up-to-date dependencies, and comprehensive testing.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
donmccurdy/glTF-Transform β˜… 1962 206 APPLICATION

glTF-Transform is a comprehensive SDK and CLI tool for processing, optimizing, and inspecting glTF/GLB 3D assets. It provides a rich property graph model (Document) for reading, editing, and writing glTF files, with full support for the glTF 2.0 specification and dozens of official extensions (KHR_materials_*, EXT_meshopt_compression, etc.). The library includes a broad set of transforms (compression, quantization, deduplication, welding, palette optimization, texture compression, etc.) that can be composed into custom pipelines. A command-line interface wraps all transforms for batch processing, and a viewer package provides real-time Three.js integration. Built as a monorepo with packages for core, extensions, functions, CLI, view, and docs, it demonstrates strong software engineering practices: property-graph architecture, extension system, observer patterns, and comprehensive unit/integration tests. Designed for both scripting in Node.js/Deno/Web and direct use from the command line.

RATING: 9.0/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
segmentio/kafka-go β˜… 8641 866 APPLICATION

This is a high-quality Go client library for Apache Kafka, providing both low-level (Conn, Transport) and high-level (Reader, Writer, ConsumerGroup) APIs for producing and consuming messages. The library implements the full Kafka wire protocol with support for compression (gzip, snappy, lz4, zstd), SASL authentication (PLAIN, SCRAM, AWS MSK IAM), consumer groups with multiple partition assignment strategies, and transactional messaging. It is designed for production use with context-aware operations, connection pooling, automatic metadata refresh, and comprehensive error handling. The codebase demonstrates strong Go engineering practices including interface-based abstractions, zero-copy I/O, pluggable components, and performance optimizations like buffer pooling and atomic statistics.

RATING: 8.9/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
JoshAtticus/Compressor β˜… 684 32 APPLICATION

Compressor is a native Android video compression application built entirely in Kotlin using Jetpack Compose and Material3 for the UI, and Android's Media3 Transformer for the actual encoding. It does not rely on FFmpeg; instead, it leverages hardware-accelerated codec APIs (H.264, H.265, AV1) to achieve fast, lightweight compression. The app follows a single-activity architecture with a ViewModel managing the full lifecycle: video selection via SAF (Storage Access Framework) or share intents, track probing to determine source properties, building a compression plan based on user-defined presets or target file size, executing the transformation, and saving the output to the gallery or a custom folder. The codebase is well-structured with clear separation between UI screens, reusable composable components (InfoRow, CheckboxRow, SelectionChip, etc.), utility classes for hardware detection and file operations, and a theme system that supports dynamic colors and Android 16 tokens. It includes comprehensive unit tests for the ViewModel, utilities, and audio processor, as well as CI/CD workflows and fastlane metadata for Play Store deployment. The project demonstrates strong Android engineering practices, with attention to edge cases (device-specific workarounds for MediaTek, Huawei, Pixel), fallback logic in audio encoding, and a customizable filename token system. While the core compression logic is tightly coupled to the app's domain, several utility modules and UI components are designed with reusability in mind and could be extracted for other Android media projects.

RATING: 8.7/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
fiddyschmitt/clonezilla-util β˜… 307 18 APPLICATION

The clonezilla-util is a command-line utility for managing Clonezilla backup images. It enables users to list, mount, and extract files from Clonezilla images without requiring a full restoration. The application leverages a modular architecture with separate libraries for handling Clonezilla specifics, compression formats, partclone parsing, and virtual file system integration via Dokan for Windows. Key features include efficient random-access reading through caching and indexing mechanisms, support for multiple compression formats (gzip, bzip2, xz, zstd), and the ability to mount images as virtual drives for seamless file explorer access. The codebase demonstrates strong engineering practices with interface-based design, reusable stream utilities, and performance-oriented components like buffer pools and caching streams. While the Dokan dependency limits cross-platform functionality to Windows, the core libraries (libCommon, libClonezilla, etc.) are designed to be portable and could be adapted to other platforms with alternative filesystem abstractions. The project is actively maintained with ongoing performance optimizations and a comprehensive test suite.

RATING: 8.7/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
cksac/turboquant-model β˜… 200 23 APPLICATION

TurboQuant Model is a Python library and CLI tool for near-lossless LLM weight quantization, implementing the TurboQuant algorithm from Zandieh et al. (2025). It provides a drop-in replacement for nn.Linear (TurboQuantLinear) that stores weights in packed 4-bit indices and dequantizes on-the-fly during matrix multiplication using fused GPU kernels (CuTile, Triton, Metal). The library supports single-pass 4-bit, multi-pass residual (e.g., 4+4), polar decomposition, and hash-based compression, achieving 4x compression vs bf16 with KLD as low as 0.002 nats. It includes a CLI for quantizing, evaluating, generating, and benchmarking HuggingFace models, with CPU offload for residual passes and advanced techniques like norm compression and entropy coding. The codebase is well-structured with comprehensive tests and benchmarks, though it targets cutting-edge CUDA 13.1+ and may have limited hardware compatibility.

RATING: 8.6/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
mizosoft/methanol β˜… 299 17 APPLICATION

Methanol is an extensible HTTP client library built on Java's java.net.http package. It provides core HTTP functionality enhanced with features like automatic decompression (gzip, deflate, Brotli), pluggable body adapters for JSON/XML/Protobuf, HTTP caching with multiple backends (memory, disk, Redis), request/response interceptors, retry mechanisms, progress tracking, and Kotlin DSL support. The library follows a modular architecture with separate modules for core functionality, format adapters, extensions, and testing. Key entry points include Methanol.Builder for client creation, MutableRequest for request building, and BodyAdapter for encoding/decoding. Data flows involve request interception, body encoding, HTTP exchange via java.net.http, response interception, body decoding, and optional caching/progress tracking. External dependencies vary by module: core requires only JDK 11+, while adapters depend on libraries like Jackson/Gson/Moshi, extensions on Redis Lettuce or native Brotli, and testing on JUnit5/MockWebServer.

RATING: 8.4/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
dm-vdo/vdo β˜… 197 33 APPLICATION

This repository implements the Virtual Data Optimizer (VDO) storage system, providing inline block-level deduplication, compression, and thin provisioning for Linux block devices. It consists of a kernel-level device-mapper target (not included in this repo) and user-space management tools. The core deduplication engine is the Universal Deduplication System (UDS) located in the utils/uds directory. Key user tools include vdoformat (volume creation), vdostats (statistics reporting), and various debugging/recovery utilities. The architecture is modular with clear separation between the UDS library, volume management layer, and command-line interfaces. The system integrates with LVM and is designed for enterprise storage environments requiring efficient data reduction.

RATING: 8.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
kjdev/php-ext-brotli β˜… 199 30 APPLICATION

php-ext-brotli is a PHP extension written in C that integrates the Brotli compression library into PHP. It exposes userland functions for one-shot compression/decompression, including serialized-value variants, and provides an output compression layer controlled by php.ini directives such as brotli.output_compression and brotli.output_compression_exclude_types. The extension can build against a bundled Brotli submodule or a system libbrotli, and reports library linkage and APCu serializer status in phpinfo().

RATING: 8.1/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
samtools/htsjdk β˜… 303 243 APPLICATION

htsjdk is a comprehensive Java library for reading, writing, and manipulating high-throughput sequencing (HTS) data formats, including SAM, BAM, CRAM, VCF, BCF, FASTQ, FASTA, BED, and GFF3. It provides format-specific codecs, indexing (BAI, CRAI, CSI, Tabix, tribble), block-compressed I/O (BGZF with libdeflate acceleration), and a plugin-based codec registry (beta package). The library is used by major bioinformatics tools like Picard, GATK, and IGV. It includes extensive CRAM compression support (rANS, FQZComp, range coding, name tokenisation) and versioned codec implementations for CRAM 3.0/3.1 and VCF 4.0-4.3. The architecture follows a layered design: low-level I/O streams, format-specific readers/writers, and a higher-level plugin framework for content-type decoupling. While the codebase is actively maintained and well-tested, it contains some deprecated APIs, experimental beta code, and a few unimplemented code paths, reflecting its long evolution and breadth of format support.

RATING: 8.0/10 MAINT: active DRIFT: medium
β–Έ 6 reusable components found
Lymphatus/libcaesium β˜… 208 29 APPLICATION

Libcaesium is a Rust library for lossy/lossless compression and conversion of JPEG, PNG, GIF, WebP, and TIFF images, with a C API for cross-language usage. It provides both file-based and in-memory compression, targeting specific output sizes, and preserving EXIF metadata or orientation. The architecture is modular, with format-specific compressors (jpeg.rs, png.rs, etc.) and shared utilities. The code is well-structured, tested across multiple platforms, and integrates advanced libraries like mozjpeg-sys, oxipng, gifski, and libwebp. It avoids framework boilerplate and demonstrates strong engineering practices, though some parts use unsafe Rust for direct JPEG manipulation.

RATING: 7.9/10 MAINT: maintained DRIFT: low
β–Έ 4 reusable components found
gopro/cineform-sdk β˜… 300 63 APPLICATION

The GoPro CineForm SDK is a production-grade, wavelet-based video codec library (SMPTE VC-5 super-set) implementing the full CineForm compression pipeline: recursive spatial/temporal wavelet transforms, quantization with rate control, run-length + Huffman entropy coding, and tag/value bitstream framing. It exposes a layered architecture: a C core codec engine (Codec/), high-level EncoderSDK (with asynchronous encoder pools) and DecoderSDK (with thumbnail fast-paths and output format negotiation), plus supporting libraries for color space conversion and scaling (ConvertLib/), geometric mesh warping for GoPro lens correction (WarpLib/), and an Active Metadata engine handling 3D LUTs, CDL color corrections, and timecode. Both encoder and decoder C APIs (CFHD_OpenEncoder/CFHD_EncodeSample, CFHD_OpenDecoder/CFHD_DecodeSample) are the primary integration points, with TestCFHD and WaveletDemo as example tools. The codec is cross-platform (Windows, macOS, Linux) and built with CMake, with a GitHub Actions CI workflow. The codebase is mature and battle-tested in commercial video production, with heavy SIMD (MMX/SSE2) hand-optimization in the wavelet and color conversion paths. However, it carries significant technical debt: large monolithic translation units (e.g., ImageScaler.cpp, DemoasicFrames.cpp with thousands of lines), extensive #ifdef platform conditionals, large blocks of disabled #if 0 code, hardcoded debug paths, and dated SIMD (Pentium 3 MMX) that underutilizes modern AVX-512 hardware. Several latent bugs exist (e.g., a copy-paste index error in ScaleB64ARow), and the FSM/Huffman entropy tables (Common/table17.inc, table18.inc) are checked-in generated artifacts that may silently drift from their generator. Overall it is a strong, working codec with cleanly separable infrastructure components, but the surrounding code style shows its commercial origins and accumulated debt.

RATING: 7.0/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
photopea/UTIF.js β˜… 502 93 APPLICATION

UTIF.js is a comprehensive, single-file JavaScript library for decoding and encoding TIFF, EXIF, DNG, CR2, NEF, and other TIFF-based image formats. It is the primary TIFF library used by the Photopea online image editor. The library handles a wide variety of compression schemes (JPEG, LZW, PackBits, Fax, Deflate, Nikon, Panasonic, etc.) and supports various bit depths, color spaces, and photometric interpretations. It provides a straightforward API: `UTIF.decode()` for parsing TIFF headers, `UTIF.decodeImage()` for decompressing pixel data, and `UTIF.toRGBA8()` for converting to RGBA. The code is monolithic, embedding its own JPEG decoder and many other decoders directly in a single file. While functional and battle-tested, the code is dense, uses ES5 patterns, and contains many minified-like variable names, making it less readable and maintainable. The library depends on the outdated `pako` v1.x for deflate compression. It is a mature, production-ready library but with medium technical drift and a maintenance status that appears active (last commit dated 2026-05-04, though this date is likely a mistake).

RATING: 6.5/10 MAINT: maintained DRIFT: medium
β–Έ 2 reusable components found
$ loading more...
$ submit: