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 🙏

© 2025 – Pkg Stats / Ryan Hefner

unwrite-images

v0.1.3

Published

Unwrite Images: Squoosh-based image tools with a simple mount API.

Readme

Unwrite Images - Image optimisation for Unwrite.co

Use it live: https://Unwrite.co/images

Unwrite Images is a fork of Squoosh that keeps everything client‑side and provides a simple mount API for embedding inside Unwrite (or any web app).

It helps you optimise images for the web: reduce file size while keeping quality, preview results side‑by‑side, and save the version that looks best.

Original repo

https://github.com/GoogleChromeLabs/squoosh

Please contribute here instead of via this repo - unless your contribution is specific to Unwrite Images!

For transparency, Unwrite Images is not associated with, or endorsed by, the Squoosh authors.

Privacy

All processing happens locally in your browser using Web Workers and WebAssembly. Images are not uploaded to a server.

Installation

Via NPM

npm install unwrite-images

Via CDN (jsDelivr)

<script type="module">
  import mountUnwriteImages from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/mount.js';

  const container = document.getElementById('image-editor');
  const dispose = mountUnwriteImages(container);
</script>

Usage

Mount API

import mountUnwriteImages from 'unwrite-images';

const el = document.getElementById('container')!;
const dispose = mountUnwriteImages(el, {
  theme: 'inherit',
  // Optional: Override CDN configuration
  cdnBase: 'https://cdn.jsdelivr.net/npm/unwrite-images',
  version: '0.1.1',
});

// Clean up when done
dispose();

Options

  • theme: 'inherit' | 'light' | 'dark' (default: 'inherit')
  • cdnBase: Optional CDN base URL override
  • version: Optional version for CDN URLs

CDN Hosting

When installed via npm and published, Unwrite Images is automatically available via jsDelivr CDN:

  • Main bundle: https://cdn.jsdelivr.net/npm/unwrite-images@VERSION/dist/mount.js
  • WASM codecs: https://cdn.jsdelivr.net/npm/unwrite-images@VERSION/dist/chunks/codecs/

This significantly reduces the bundle size of your main application by loading image processing codecs on-demand from the CDN.

Developing

  1. Install dependencies
    npm install
  2. Build the project (generates static site build and the mount wrapper in dist/)
    npm run build
  3. Start the dev server for the static app
    npm run dev

Branches

  • main - Stable production releases
  • dev - Active development

License

Licensed under Apache-2.0. See LICENSE and NOTICE for attributions and third‑party licences.