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

@maskflow/detection

v0.1.0

Published

PII detection and reversible masking -- regex/structural detectors, TypeScript port of maskflow-core's non-NER layer

Readme

@maskflow/detection

PII detection and reversible masking, in TypeScript. A port of core's regex/structural detection layer -- shares the same API shape as the Python SDK.

import { mask, unmask } from "@maskflow/detection";

const result = mask("Email me at [email protected] or call 415-555-0132.");
result.maskedText; // "Email me at <EMAIL_1> or call <PHONE_1>."
result.mapping;     // { "<EMAIL_1>": "[email protected]", "<PHONE_1>": "415-555-0132" }

unmask(result.maskedText, result.mapping); // original text, restored

Scope

Covers the 10 PII types that are pure regex + structural validation (Luhn, mod-97, etc.): email, phone, SSN, credit card, IP address, AWS key, API key, JWT, IBAN, street address.

PERSON_NAME and DATE_OF_BIRTH are not included -- those need spaCy's NER, which has no practical browser/Node equivalent here. They stay Python-only, in core.

Why a separate package

This logic is meant to be shared by more than one consumer -- the marketing site's live demo today, potentially a Chrome extension or a TypeScript SDK later -- without duplicating (and silently drifting from) the same regex rules in each place.

Tests

Runs against the same fixtures as core's Python test suite (scripts/generate_js_fixtures.py regenerates tests/fixtures.json from the Python source of truth), so both implementations are held to the same accuracy bar.

npm test -w @maskflow/detection