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

@goodboy008/labelize-wasm

v1.4.1

Published

Labelize ZPL/EPL label renderer compiled to WebAssembly — render ZPL/EPL to PNG/PDF in browsers, Node.js, and bundlers

Readme

@goodboy008/labelize-wasm

The Labelize ZPL/EPL label engine compiled to WebAssembly. Parse and render ZPL/EPL label data to PNG (or PDF) entirely in the browser, Node.js, or your bundler — no server needed.

Usage

Bundlers (webpack 5, Vite with vite-plugin-wasm)

import { lz_render } from "@goodboy008/labelize-wasm";

const zpl = new TextEncoder().encode("^XA^FO50,50^A0N,40,40^FDHELLO WORLD^FS^XZ");
const png = lz_render(zpl, 102.0, 152.0, 8, false, false, false);
// png is a Uint8Array — pass it to an <img> via URL.createObjectURL

The package is the standard wasm-bindgen bundler output: labelize_wasm.js initializes the engine at module top level and exports lz_render / lz_playground_html.

Node.js (≥ 20)

import { lz_render } from "@goodboy008/labelize-wasm/init";

const zpl = Buffer.from("^XA^FO50,50^A0N,40,40^FDHELLO WORLD^FS^XZ", "ascii");
const png = lz_render(zpl, 102.0, 152.0, 8, false, false, false);

The /init subpath instantiates the engine from the packaged .wasm directly, without bundler support or Node flags.

API

lz_render(src, width_mm, height_mm, dpmm, antialias, want_pdf, is_epl) -> Uint8Array

| param | meaning | |---|---| | src | raw label bytes (ZPL, or EPL when is_epl = true) | | width_mm / height_mm | label canvas size in millimetres (defaults: 102 × 152) | | dpmm | dots per millimetre (default 8) | | antialias | keep renderer greys instead of thresholding to 1-bit | | want_pdf | return a PDF instead of PNG | | is_epl | parse input as EPL instead of ZPL |

Errors throw a string prefixed with the failure stage: 1: parse error, 2: rendering error.

lz_playground_html() -> string returns the Labelize playground page (identical to the HTTP server's /).

Release assets

GitHub releases also attach labelize-wasm-wasm32.zip with the raw glue + .wasm files, for direct use without npm. See workers/build.sh to rebuild the engine:

cd workers && ./build.sh   # requires Rust wasm32 target + wasm-bindgen-cli

License

MIT AND BSD-3-Clause