OpenRedaction Documentation
Welcome to the OpenRedaction documentation. OpenRedaction is an open-source PII (Personally Identifiable Information) detection and redaction library with optional AI assist.
What is OpenRedaction?
OpenRedaction is a regex-first PII redaction engine that:
- Detects PII using 500+ tested regex patterns
- Redacts sensitive data with configurable strategies
- Optional AI assist for better detection on unstructured text
- Self-hostable for complete privacy and control
- Open source and free to use
Quick Start
npm install openredactionimport { redact } from 'openredaction';
const text = "My name is John Doe and my email is john@example.com";
const result = await redact(text);
console.log(result.redacted_text);
// "My name is [REDACTED] and my email is [REDACTED]"Key Features
- Regex-first detection - Transparent, deterministic, and fast
- Optional AI assist - Better coverage on messy, unstructured text
- Self-hostable - Run entirely on your infrastructure
- Privacy-first - No data leaves your environment by default
- GDPR/HIPAA/CCPA ready - Built for compliance
Next Steps
- Getting Started - Install and configure OpenRedaction
- API Reference - Complete API documentation
- Tutorials - Real-world use cases and step-by-step guides
- Examples - Code examples and use cases
- Self Hosting - Deploy on your own infrastructure
- Security & Compliance - Security practices and compliance information
- Changelog - Version history and release notes
API Documentation
- OpenAPI Specification - Download OpenAPI 3.0 spec
- API Reference - Complete API documentation
- View in Swagger UI - Interactive API explorer