Prompts
Wrap OpenAI and Anthropic clients so sensitive values are transformed before a request leaves your application.
Open source · Runs where your code runs
Detect and transform sensitive data before it reaches a model, log sink, or third-party API. Deterministic, streaming-first, and portable across modern JavaScript runtimes.
npm install sensoredimport { createRedactor } from "sensored";
const redactor = createRedactor({
presets: ["pii"],
rules: {},
});
redactor.redact(
"Email maya@example.com"
);
// "Email [EMAIL_1]"See the boundary
This demo uses the same library in your browser. Try an email, phone number, or payment card. The text stays on your device.
Use synthetic data only. Nothing is uploaded.
Customer Maya Chen wrote from [EMAIL]. Call [PHONE]. Card: [PAYMENT_CARD].Three sensitive values redacted.
Built for the path data takes
Wrap OpenAI and Anthropic clients so sensitive values are transformed before a request leaves your application.
Use adapters for Pino, Winston, Bunyan, Morgan, log4js, or the console without rewriting your logging pipeline.
Redact continuous text with Unicode-safe boundaries instead of buffering an entire response in memory.
For teams with stricter requirements
We are exploring how sensored can support teams with operational and security needs beyond the open-source core. Scope, availability, and pricing are not final.
What we are learning
Start with the free core