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

@falkenslab/pseudonym

v0.2.1

Published

Stable aliases for people, so tools can tell a language model about them without names, and the person in charge can always resolve them

Readme

npm types node license docs

A pseudonymization library for AI tools. Your program passes each person through the library and sends A-7K3F9Q instead of a name, an email or an id; the person running your program resolves the alias on their own machine with pseudonym whois A-7K3F9Q.

Documentation: falkenslab.github.io/pseudonym: guides, the CLI, security and privacy, and the API reference.

Install

Node.js 20 or later, ESM only, with TypeScript types and no runtime dependencies.

npm install @falkenslab/pseudonym             # in your program
npm install --global @falkenslab/pseudonym    # the pseudonym command, for the people who run it

Quick start

import { remember, resolve, redact } from "@falkenslab/pseudonym";

const service = "[email protected]";

// Before a result reaches the model: people become aliases (one call for a whole list).
const aliases = await remember(users.map((user) => ({
  service,
  identifiers: { institutionalId: user.idnumber, email: user.email, serviceUserId: String(user.id) },
  displayName: user.fullname,
})));                                                   // ["A-7K3F9Q", ...]

// A write tool gets an alias back from the model.
const userId = await resolve("A-7K3F9Q", { service });  // keep it on your side

// Text people wrote: known names, emails, cards, IBANs and the ids and phones of your countries out.
const { text } = await redact(post.message, { service });
  • The alias is an HMAC of the person's strongest identifier under a key that never leaves the machine: stable, and impossible to undo without the key.
  • A local encrypted directory keeps each person's first alias and lets the person in charge resolve it offline.
  • Aliases are per service by default, so a model can't join what it learns about someone in different services.

Integrating it walks through it step by step, and examples/classroom-mcp is a complete MCP server that uses it.

The CLI

For the person in charge, never for an agent:

pseudonym whois A-7K3F9Q                  # who an alias is
pseudonym alias "ana perez"               # someone's aliases
pseudonym redact < post.txt               # a text safe to paste into a chat
pseudonym reveal < answer.txt             # the model's answer, with names
pseudonym remember --csv class.csv --only-aliases   # a class export, as aliases
pseudonym key export > pseudonym-key.txt  # back up the key, once

See the CLI for every command.

Before you use it

  • It's pseudonymization, not anonymization: the data stays personal data for whoever holds the key, and what people write about themselves can still identify them. Redaction doesn't catch street addresses, birth dates, people outside the directory, or ids without a check digit.
  • Keep agents away from the key: an agent on the same machine that can read the key folder or run pseudonym could undo it. Deny both in its client; the documentation gives tested rules for Claude Code and their limits.
  • Back up the key: losing it loses every way back, by design.

Read what it protects against and the legal frame before sending real people's data anywhere.

Contributing

The design lives in .minispec/ (start with core/project.md and decisions/); each planned feature has a note there and an issue here.

npm install
npm run typecheck && npm run lint && npm test
npm run build                  # dist/, with types; the CLI is dist/cli.js
npm run docs:install && npm run docs:start   # the documentation site, locally

License

MIT, Falkenslab.