npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kwonlabs/openzl-wasm

v0.2.0

Published

WebAssembly port of Meta's OpenZL (Structured Data Compression Framework)

Readme

openzl-wasm

WebAssembly port of Meta's OpenZL (Structured Data Compression Framework).

Overview

openzl-wasm provides high-performance, structure-aware data compression for Web and Node.js environments. By leveraging WebAssembly and Emscripten, it brings the power of Meta's OpenZL to the JavaScript ecosystem with minimal overhead and full type safety.

OpenZL is designed to achieve superior compression ratios and speeds by explicitly modeling data structures and patterns, making it ideal for columnar data, JSON-like structures, and repetitive datasets.

Features

  • Blazing Fast: Near-native compression and decompression speeds using optimized WASM binaries.
  • Structure-Aware: Better compression ratios for structured data compared to general-purpose algorithms.
  • Universal: Runs in modern browsers and Node.js.
  • Type-Safe: First-class TypeScript support with comprehensive definitions.
  • Easy Integration: Seamless integration with Bun and other modern package managers.

Installation

bun add @kwonlabs/openzl-wasm

Usage

Basic Usage

import { OpenZL } from '@kwonlabs/openzl-wasm';

// Check if ready (non-blocking)
if (OpenZL.isReady()) {
    console.log("OpenZL is ready!");
}

// Or wait for it to be ready
await OpenZL.load();

Sync Usage (Blocking)

Sync calls require the module to be initialized. Use await OpenZL.load() before calling these if you aren't sure it's ready.

// Data to compress (define once for all examples)
const data = new TextEncoder().encode(JSON.stringify({ 
  id: 1, 
  name: "OpenZL", 
  tags: ["compression", "wasm"] 
}));

// Compress
const compressed = OpenZL.compress(data);
console.log(`Original: ${data.length} bytes, Compressed: ${compressed.length} bytes`);

// Decompress
const decompressed = OpenZL.decompress(compressed);
const originalJson = new TextDecoder().decode(decompressed);

Async Usage (Non-blocking & Auto-waiting)

Async versions will automatically wait for the module to load if it hasn't finished yet. You can call these immediately after import.

// Compress Asynchronously (Auto-waits if loading)
const compressed = await OpenZL.compressAsync(data);

// Decompress Asynchronously
const decompressed = await OpenZL.decompressAsync(compressed);

License

This project is licensed under the MIT License. See the LICENSE file for details.

[!NOTE] This project includes and links to OpenZL, which is developed by Meta and licensed under the BSD 3-Clause License. The original license is maintained within the submodule at vendor/OpenZL/LICENSE.