awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
pieroxy avatar

pieroxy/lz-string

0
View on GitHub↗
4,416 stars·570 forks·TypeScript·MIT·18 views

Lz String

lz-string is a JavaScript library and command-line tool for compressing and decompressing string data using Lempel-Ziv algorithms. It provides utilities to reduce the size of strings and files to optimize storage and network bandwidth.

The project includes specialized encoders to ensure compressed data is compatible with different transport layers. These include options for Base64 encoding, UTF-16 string mapping for increased storage density, and URI-safe translation for use in web addresses.

The library supports client-side data compression for local storage optimization and provides a command-line interface for performing compression and decompression operations on files or standard input.

Features

  • String Compression - Provides a utility for reducing the size of string data using an LZ-based algorithm to optimize storage.
  • JavaScript - Reduces the size of text data in JavaScript to save storage space or reduce network bandwidth.
  • LZ-Based String Compressors - Compresses and decompresses string data using Lempel-Ziv algorithms to save storage or bandwidth.
  • Dictionary-Based Compression - Implements compression by replacing repeated substrings with references to a dictionary of previously encountered patterns.
  • Sliding Window Matching - Uses a sliding window to identify the longest matching prefixes for efficient back-referencing during compression.
  • Client-Side Compression - Allows data compression within the web browser to improve page load times and reduce transmission size.
  • Browser-Based Compression Libraries - Implements LZ-based compression specifically for reducing string and file sizes within JavaScript environments.
  • Compression and Decompression - Provides a utility for restoring compressed strings to their original form using a matching LZ-based algorithm.
  • Browser Local - Shrinks string data before saving it to browser storage to bypass strict character limits and capacity constraints.
  • Transport-Layer Encodings - Outputs compressed data as Base64, UTF-16, or URI-safe strings to ensure compatibility with different transport layers.
  • CLI Compression Tools - Provides a command line interface for compressing and decompressing files or standard input.
  • URI Encoding Utilities - Converts compressed data into formats that can be safely passed through URLs without breaking the request.
  • File Compression and Decompression - Enables the compression and decompression of files via a terminal interface.
  • URI-Safe Translations - Replaces reserved characters in compressed output to ensure strings remain valid when used in web addresses.
  • UTF-16 Encodings - Encodes compressed bits directly into 16-bit Unicode characters to maximize storage density in JavaScript strings.

Star history

Star history chart for pieroxy/lz-stringStar history chart for pieroxy/lz-string

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Lz String

These projects share indexed features with Lz String. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • facebook/zstdfacebook avatar

    facebook/zstd

    27,259View on GitHub↗

    Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast real-time processing. It functions as a real-time data compressor and multi-threaded compression engine capable of distributing workloads across multiple CPU cores to increase throughput. The system features a dictionary-based compressor that trains on sample data to improve the compression ratio and speed of small files. It also provides long distance pattern matching to identify repeated sequences across large files. The library covers a broad range of capabilities including st

    C
    View on GitHub↗27,259
  • nodeca/pakonodeca avatar

    nodeca/pako

    6,081View on GitHub↗

    Pako is a pure JavaScript compression library that ports the C zlib library to JavaScript, providing deflate and gzip compression and decompression capabilities. It runs in both browser and Node.js environments by using typed arrays and universal JavaScript, avoiding platform-specific APIs for cross-platform compatibility. The library handles data through bitwise operations for Huffman coding and LZ77 matching, and automatically encodes string inputs to UTF-8 before compression while decoding them back on decompression. It supports streaming chunk-based processing, allowing incremental data h

    JavaScript
    View on GitHub↗6,081
  • google/brotligoogle avatar

    google/brotli

    14,753View on GitHub↗

    Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce file sizes. It provides tools for shrinking data streams and files while ensuring every bit of original information is preserved for perfect restoration. The project focuses on optimizing web content and network bandwidth by reducing the size of HTML, CSS, and JavaScript files. It is designed for integration into web servers and browsers to improve the efficiency of data transmission. The library includes capabilities for both compressing and decompressing data streams. It al

    TypeScript
    View on GitHub↗14,753
  • lz4/lz4lz4 avatar

    lz4/lz4

    11,882View on GitHub↗

    This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed data reduction and maximum decompression speed. It functions as a stream-oriented compression engine, a software library for encoding and decoding data blocks, and a command-line tool for managing interoperable compressed frames. The system distinguishes itself through the use of predefined pattern dictionaries to improve compression ratios for small data sets and small packets. It supports multiple processing modes, including high-speed block compression for minimal latency

    Cccompressionlz4
    View on GitHub↗11,882
Compare all 30 related projects→

Frequently asked questions

What does pieroxy/lz-string do?

lz-string is a JavaScript library and command-line tool for compressing and decompressing string data using Lempel-Ziv algorithms. It provides utilities to reduce the size of strings and files to optimize storage and network bandwidth.

What are the main features of pieroxy/lz-string?

The main features of pieroxy/lz-string are: String Compression, JavaScript, LZ-Based String Compressors, Dictionary-Based Compression, Sliding Window Matching, Client-Side Compression, Browser-Based Compression Libraries, Compression and Decompression.

Which projects share features with pieroxy/lz-string?

Projects with overlapping indexed features include: facebook/zstd — Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast… nodeca/pako — Pako is a pure JavaScript compression library that ports the C zlib library to JavaScript, providing deflate and gzip… google/brotli — Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce… lz4/lz4 — This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed… dop251/goja — Goja is a JavaScript engine and ECMAScript compliant interpreter implemented entirely in Go. It serves as an embedded… donaldcwl/browser-image-compression — Browser image compression is a JavaScript utility designed to reduce image file sizes directly within the web browser.…