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

@dusrel/image-jxl

v1.0.1

Published

JPEG XL codec (libjxl, WASM). Experimental.

Readme

@dusrel/image-jxl

JPEG XL codec (libjxl v0.11.2, WASM, lazy-loaded). Separate encode/decode entries; the WASM is never bundled into any other package.

EXPERIMENTAL: browser JPEG XL decode support is still limited; use only where you control the viewing environment. This package exists so your app can produce and read JXL regardless of native browser support.

import { encode, decode } from "@dusrel/image-jxl";

const bytes = await encode(imageData, { quality: 85, effort: 7 });
const lossless = await encode(imageData, { lossless: true });
const pixels = await decode(bytes); // ImageData

Options: quality 0..100 (default 85, mapped to a butteraugli distance by libjxl's own JxlEncoderDistanceFromQuality), lossless (default false), effort 1..10 (default 7). Encoding is sRGB-in/sRGB-out (uses_original_profile — required by libjxl for lossless). Output is a bare JXL codestream (FF 0A signature).

Single-threaded by construction (ADR-0006): the glue sets libjxl's NULL parallel runner, so no SharedArrayBuffer and no COOP/COEP headers are ever required.

Artifact sizes (built by the wasm-build workflow from native/jxl, functionally smoke-gated in Docker and re-verified locally before commit): encoder 2,404,041 B, decoder 905,079 B.

Engine licence: BSD 3-Clause (bundled brotli BSD 3-Clause, highway Apache-2.0, skcms BSD-style) — see THIRD_PARTY_LICENSES.md.