Open Source

Ship AI Without
Leaking PII.

Strip emails, SSNs, and credit cards before they hit OpenAI. One npm install. Zero dependencies. <1ms per call.

View Docs →

LLMs are a compliance nightmare.

You're shipping AI features, but your team is nervous. "What if a user's SSN or email gets logged by OpenAI? What about SOC 2? What about HIPAA?" You can't send sensitive user data to third-party APIs, but you can't not ship AI.

Redact in 5 lines of code.

RedactPII is a zero-dependency, blazing-fast regex-based library that finds and strips sensitive data before it ever leaves your server.

Free Forever

Simple regex-based PII redaction

No setup required - just install and use

// 1. Install
import { Redactor } from '@redactpii/node';

// 2. Redact
const redactor = new Redactor();
const clean = redactor.redact(
  'Hi David Johnson, call 555-555-5555'
);

// Result: "Hi PERSON_NAME, call PHONE_NUMBER"
🔍

Built-in Regex Patterns

Detects emails, SSNs, credit cards, phone numbers, and names using optimized regex patterns. Works completely offline.

Blazing Fast. Zero Dependencies.

Built for production. <1ms per operation and zero external dependencies. Pure, modern TypeScript.

🎨

Fully Customizable

Enable or disable specific patterns, add custom regex rules, configure replacements, and enable anonymization mode.

🤖

Built for the Modern AI Stack

Protect data before it hits OpenAI, Anthropic, or LangChain. Copy-paste examples to secure your LLM features in minutes.

What gets detected?

Built-in regex patterns for common PII types

👤

Names

Person identification (greeting-based detection)

📧

Emails

Email addresses

📞

Phones

US phone numbers (all formats)

💳

Credit Cards

Visa, Mastercard, Amex, Diners Club

🆔

SSN

US Social Security Numbers

Stop worrying. Start shipping.

Install the free module and get your first redaction running in 60 seconds.