Redact AI Stream

Overview
Redact AI Stream is a Node.js stream transformer that automatically detects and redacts Personally Identifiable Information (PII) like emails, credit card numbers, and phone numbers from data streams. It is optimized for AI chat applications where data flows in real-time.
The Status Quo
To comply with GDPR and CCPA, companies must not send PII to third-party LLM providers. Traditional redaction often requires buffering the entire message, examining it, and then sending it, which ruins the "streaming" user experience inherent to modern AI interfaces.
Market Proposition
Privacy without latency.
- Streaming Architecture: Redacts chunks on the fly. It intelligently buffers only enough to ensure a PII pattern (like a credit card number) isn't split across chunks.
- Reversible Redaction: Can map redacted tokens (e.g.,
<PERSON_1>) back to the original values in the response, allowing the AI to "process" the data without "seeing" the PII. - Customizable Patterns: Add your own Regex for proprietary IDs.
Usage
import { RedactStream } from 'redact-ai-stream';
const userInputStream = getUserInput(); // Readable stream
const toLLM = getLLMStream(); // Writable stream
const redactor = new RedactStream({
patterns: ['email', 'credit_card', 'ssn']
});
userInputStream
.pipe(redactor)
.pipe(toLLM);
Hashtags
#Privacy #AI #GDPR #NodeJS #Streaming #DataSecurity