zstandard 1.1.1 copy "zstandard: ^1.1.1" to clipboard
zstandard: ^1.1.1 copied to clipboard

Flutter plugin to implement Zstandard compression

pub package

Zstandard #

Zstandard is a high-performance Flutter plugin that provides a pure implementation of the zstd compression algorithm, developed by Meta. It integrates the zstd library in C through FFI for native platforms, ensuring efficient compression and decompression. For web platforms, it leverages WebAssembly to deliver the same robust compression capabilities. This plugin enables seamless, cross-platform data compression, making it ideal for applications requiring high-speed and efficient data processing.

Android iOS Web macOS Windows Linux Fuchsia
Status ✔️ ✔️ ✔️ ✔️ 🕘 🕘
Native FFI FFI WASM FFI FFI FFI

Usage #

void act() async {
  final zstandard = Zstandard();

  Uint8List original = Uint8List.fromList([...]);

  Uint8List? compressed = await zstandard.compress(original);
  
  Uint8List? decompressed = await zstandard.decompress(compressed ?? Uint8List(0));
}