shieldpipe
v0.1.0
Published
Privacy middleware for LLM & AI pipelines — PII detection, pseudonymization, and rehydration
Maintainers
Readme
ShieldPipe Node.js SDK
Privacy middleware for LLM & AI pipelines — PII detection, pseudonymization, and rehydration.
Installation
npm install shieldpipeQuick Start
import { createShield } from 'shieldpipe';
const shield = createShield();
const result = shield.shield("Send the report to [email protected]");
console.log(result.text); // "Send the report to EMAIL_1"
// Rehydrate LLM response
const llmResponse = "I've sent the report to EMAIL_1.";
console.log(result.rehydrate(llmResponse)); // "I've sent the report to [email protected]."License
MIT
