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

@desert-ant-labs/redact

v0.4.0

Published

On-device multilingual PII redaction for JavaScript with local WebAssembly and LiteRT.js inference.

Readme

@desert-ant-labs/redact

On-device multilingual PII redaction for JavaScript (node and browsers). Finds names, addresses, emails, phone numbers, cards, IBANs, national IDs and more across the 24 official EU languages, fully locally: the package runs through a local WebAssembly runtime with inference via LiteRT.js (@litertjs/core).

Inference runs in the browser (LiteRT.js is a browser runtime, using an XNNPACK-accelerated CPU path by default and optional WebGPU). In plain Node the WebAssembly pipeline still loads, but the model session is unavailable, so use this in a browser (or a browser-like environment) for redaction.

npm install @desert-ant-labs/redact @litertjs/core
import { Redact } from "@desert-ant-labs/redact";

const redact = await Redact.load();            // downloads the model on demand, cached
const r = await redact.redaction("Email Anna at [email protected].");

r.redactedText;      // "Email [GIVEN_NAME_1] at [EMAIL_1]."
r.items;             // detections: label, original, placeholder, confidence, offsets
const reply = await llm(r.redactedText);       // the LLM sees only placeholders
r.restore(reply);    // originals filled back in

Redact.load() accepts:

  • directory (node): an explicit model directory; files already there are used offline, otherwise the model is downloaded into it. Omit for the managed cache (~/.cache/desert-ant-models/...).
  • onProgress: download progress callback, fraction in [0, 1].
  • litert: bring-your-own LiteRT.js module (the @litertjs/core namespace, e.g. a bundler-managed import).
  • litertWasmDir: URL/path to the LiteRT.js Wasm files (defaults to the installed package, or the jsDelivr CDN in the browser).
  • accelerator: "wasm" (XNNPACK CPU, default), "webgpu", or "webnn".

The model repo and revision are pinned to the package version. @litertjs/core is an optional peer dependency.

The same model ships as a Swift package (iOS/macOS) and an Android AAR from the same repository: https://github.com/Desert-Ant-Labs/redact

License

Desert Ant Labs Source-Available License 1.0: free below 100,000 monthly active devices per platform; above that a commercial license is required ([email protected]). Full terms: https://license.desertant.ai/1.0