{"_id":"flare-redact","_rev":"25-51488dd6c1d33b65af4370e01581f3b1","name":"flare-redact","dist-tags":{"latest":"1.9.0"},"versions":{"0.2.0":{"name":"flare-redact","version":"0.2.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.2.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"b78c7532b140effb7944cc60904da3caf49265bd","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.2.0.tgz","fileCount":20,"integrity":"sha512-ZxNvdWOp8Vn6jg7eWQ1c0D57KddvbaZp7ZTopfFk50Xd5fkHPGsXgqYe0HE72QO33jD9y6SoD8vUUEE6/bhOog==","signatures":[{"sig":"MEUCIFmJ2lCnP2wIbxPO6P+xtP6OGIx8MoP0kwh0AlkKXhQIAiEA0pSYw+n2lbpdA5mXAUz37JJNBzPZJXMuqr2uf92DFfA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60763},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"}},"gitHead":"2235a82b964f947fbccef91e03d3a1bd5c534565","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs and text before they leak. Zero dependencies, ReDoS-safe patterns, tells you what it found and why.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.2.0_1784021643965_0.5205253134812722","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"flare-redact","version":"0.3.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.3.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"bcb36abe57d108e9c306bda04db8a6e2cda792d6","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.3.0.tgz","fileCount":32,"integrity":"sha512-m1F+kILVOfU7r7Kt6wzofQ3x3BT4/6Vkj1apIYQp9qt9B7RGYK0vLLsB8v0QJ6SKH+6lqTqpY0x3fAZwuE5OLg==","signatures":[{"sig":"MEQCIGpHcDn3DF3eHfll6yq3VQVMgTV5qbAh2zA3tUn2ZSzkAiAqadD8APeCSmSLFOO57l83I7RU8sWfIjXCMtLPIq/a2A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":94247},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"}},"gitHead":"73225a88466d547ebe3617d4458a4e111fbdbc87","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs and text before they leak. Zero dependencies, ReDoS-safe patterns, tells you what it found and why.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.3.0_1784096579816_0.9832190476565261","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"flare-redact","version":"0.4.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.4.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"560f67aa894d678edb8cb23d04f35ea53b56e0da","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.4.0.tgz","fileCount":44,"integrity":"sha512-6N03CYjEVCcjuATM2iIjsDhmyt2x7FQb7msPsnPT9vHrMpoh6D3O4NArfXiL5FV6e8qTuSLlZ49bcZ5gdyV7uA==","signatures":[{"sig":"MEQCIAGqlbW8WqmeDxxa1Bx3Dk05aWYEL7fd7SxjaxFBJGFrAiB7O60arxzlvXPmgwFuGQq/SqmxOWUtwRp3rjvYcqO+ew==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":106683},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"51f140aad54ffe93cf9adc9b26414cd32273d2a4","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.4.0_1784102520313_0.6130944549245863","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"flare-redact","version":"0.5.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.5.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"9d74840e396151f00865e44777a59d1c1ae96da3","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.5.0.tgz","fileCount":52,"integrity":"sha512-eXPnvFspOq4f2cHXeuZmUEDDflUrKr+407XhkbWXLhAfLpDkmvKRicqLb51c0JSl4lwDVOpQN35MBTzT8uLfdA==","signatures":[{"sig":"MEYCIQD/G91P91x5InMqT6a04XTT8V75q5dOfdnfCDYTD8uivwIhAI++UnN3mk9ovtb/1zP/EK8/gtrrt4KxW7zloxmh3iIn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":119032},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"17ede91f15e10f0038fa116f2cdbdcf77eea72f3","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.5.0_1784104491437_0.5275060280780457","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"flare-redact","version":"0.6.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.6.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"a77ad11b15f1339c20e95a88b36aba6f24d827f4","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.6.0.tgz","fileCount":64,"integrity":"sha512-O5xAjnb5+rjWUKcOtvEaZPvPHiqPdtlk/psxVHzQk9ZfXoZp93weYodIN0C+YAhmOk+2GNfr52P/SsgO4q1Apg==","signatures":[{"sig":"MEUCIEA3K/90BDXrEFspu7DFOmolg+hG7IKdxAgmfWzYhKRgAiEAwIrW2hLwhO8EGDbsCChpoi5zX4P7iUVkJ07H//U+RnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":149724},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"4e47241caafb453a6a14bdbd199a85993ef6d865","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.6.0_1784143235349_0.4317732674154722","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"flare-redact","version":"0.6.1","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.6.1","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"86604c9a831f009bbe6378f248585399b0fce9c1","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.6.1.tgz","fileCount":72,"integrity":"sha512-2wUIZDtzzhBAp6e5z3Mk9oCpNpgtQbuIt60Zxc3srujboADQ/Y4JWHtULbXyaaBEQaQGjPABZgLBYPInFhs4jg==","signatures":[{"sig":"MEUCIQCrhEht48gww/FQru5EGJOY3R8jbAki2mH/Rfg98+ZENwIgRmk8YjeM0QrFwnmXZLlCpDd07NYEyv5fTHEZVgl3fd8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":215868},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"71e7161a966a3d828e9b49c28630b8b4d4f83ae6","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.6.1_1784146251459_0.09460808279846988","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"flare-redact","version":"0.6.2","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.6.2","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"30987be4cdc4dcf71975ee10c353d4349f7eb83a","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.6.2.tgz","fileCount":76,"integrity":"sha512-TPgoBdS+DgLO/4uRa9gMEfstwc1YAe2tRiQ6kWY3qdP4BPG9I19Mywi4a5d28RMhhqqZobTQlwBsO9vAG6lqGw==","signatures":[{"sig":"MEYCIQDbgcSaT7Yfrwhv5VRDBt6CEyN/Yu33LdKdjAQrmTpdiAIhAIBpF9xhV+XUD1fHZu2w91PdAE10W/rpihj+TTgQIp5V","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":225180},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"933b92f677cd1dc050d85468099e0e7844de688a","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.6.2_1784148024998_0.10288397022669438","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"flare-redact","version":"0.7.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.7.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"4f3e832397a05c90f105886996feb7058a166fb3","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.7.0.tgz","fileCount":80,"integrity":"sha512-OB48FCGwXMOL61qzlabgS7Zn9cSwenx7Qy6+qyt/+UZR5xFUTFksKKTlRhBmtriXE0fdCY6A9QgxppwEdTJUqQ==","signatures":[{"sig":"MEUCIQCRMUrHqxo0GdaGCAj1+gv6FAs5dmWsg8Gg1W3mAFieegIgDSiFwO3qbzjDHT9ypRaXX3kSjHsjTbwBKSuiokS7El8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":235280},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"65770739942c820ba64e5aecf3593b6c5e92e380","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.7.0_1784229453730_0.43884985507714425","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"flare-redact","version":"0.8.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","format-preserving","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.8.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"146ea8906696bdeedb734e42aeb38adeed482f76","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.8.0.tgz","fileCount":80,"integrity":"sha512-HA1KfUSLf5HaLo4fDZD/Hs1UkOnmgX+hKqarKa0ifMAo89nhwdmf1Nox7eFrN89u5ayv8bknpmcDnr2EttGkDg==","signatures":[{"sig":"MEUCIQCy040pujg7lz5yHgA9Z0MkNh4XxgVS4Gk70u9hnw1vgAIgNQq9+Zfi3ZXF99W8vU2Z1hEWtjs4Np6KH2LoT1CtnHs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":244653},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"b6b2af3fc6448b508f6512103d1f356a818f77cf","scripts":{"test":"npm run build && node --test","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"10.9.8","description":"Hide secrets & PII in logs, prompts, and text before they leak — with a reversible layer that keeps them out of your OpenAI/Anthropic calls. Zero dependencies, ReDoS-safe.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.8.0_1784740272025_0.08089856099746084","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"flare-redact","version":"0.9.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@0.9.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"ffe3b18493571f16b299511b9953c09a49d540d5","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-0.9.0.tgz","fileCount":96,"integrity":"sha512-FWaP0fx1wrAWHBovZ3aWpuI93/qk+tX8MlCJRssNYrYLcwJ9DcYYAYIc8WAipfx1JFwFMRcusYqjqVIdqQgjFw==","signatures":[{"sig":"MEUCIQDHIFqXZFcAcgYvkHx3uaD57xx8FvJTIRzet5PEYEgkVAIgfMHG2FaqIEENm9Qg3RtnUThOlnYgct9L8n2knav0N9g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":327455},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"226795bf4a2642d06da687ee3e153484f55a064c","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_0.9.0_1784752680788_0.36276488102725835","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"flare-redact","version":"1.0.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.0.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"983b50b4b7accf138c231e163b0103e035c4f32b","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.0.0.tgz","fileCount":105,"integrity":"sha512-EECOgeE1GerHj1xl+jmjkSwrZ/cg5fLGfce6j490QSXmuULpLoLjXyrvMRoJG6r7qCJ+o4gGwu8K7BSrldlqvA==","signatures":[{"sig":"MEYCIQD0HKkHOn2kBmwO7y6B6YLoHvwRjc/svg+yIcUkQ2z7/AIhAJRdu1r7NVmCExxsDivcNnMUaYCkh+iSPYSzrg1m/Y+F","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":375079},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"00df27eb3895c9f2a432d309686ad6ec25326c8c","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.0.0_1784812177515_0.9693911476125872","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"flare-redact","version":"1.0.1","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.0.1","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://github.com/umudhasanli/flare-redact#readme","bugs":{"url":"https://github.com/umudhasanli/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"a4f6c62cd6c89485f8f8e1fc3b4555e69bbe5cfa","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.0.1.tgz","fileCount":105,"integrity":"sha512-HY+9R8NegNvUeYHHoayV4VQ5HgMzgEzoaljnjOrzaGitO5NbVdf3TYzEFx03cQksS3d1OFmZZRLDisO1ZoSjvQ==","signatures":[{"sig":"MEQCICMmhmB7w/7br4Vl3ZVl/CYp0yN8Lup7cYSWq1JS5kGvAiBmTIfJ339ZJpbrAAQ5eWVJjU3YehKqNefDw63GPzjoJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":376191},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"be3a3cdc66170e0ed88bc0b323f494bebc2bbe14","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/umudhasanli/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.0.1_1784819538265_0.12084420056815115","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"flare-redact","version":"1.1.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.1.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://github.com/flare-collection/flare-redact#readme","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"020d8cc974b22419aac5ee39e83d0fef29e50034","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.1.0.tgz","fileCount":105,"integrity":"sha512-TdixKts5y5LryMl3wZCbheKe/dSriUB9KJEtSh/n6U0EqzkVSZA42BKAX4RIPnBc82Iro93RVMtCA5whgp7pWw==","signatures":[{"sig":"MEYCIQD2XwKKSdmbNSqa0A3I/LpHU7msZ4TUsYMoiLxjSF0ipgIhAIq4E2SgNNjMr7YOdQsnTq/+XBlvhBEd3cwqZgcwLnAR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":402516},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"e5b5b9ccc06f72589ba4a9ae36d0f75aad7f771d","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.1.0_1784821492252_0.12436645004505187","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"flare-redact","version":"1.2.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.2.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://github.com/flare-collection/flare-redact#readme","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"2e9a420a8d198c8b70e7f9102b9957b37b401cab","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.2.0.tgz","fileCount":114,"integrity":"sha512-n8H+ARM/+AsbMX/dHCvwrbCzyj23X3mstrIaKsPNGdSfmaXIMIVxaM21fMCKMTlflI9WyX0J7xT6gLtHZLyeEA==","signatures":[{"sig":"MEQCIEIPVpXSKw7Iyttz0SdDKOPtQZyXC1qDAe6MZz6wh5fPAiBmF/F0+JtY/wTx704BCpUHzk43cbIDtSNtWnNfaEViFA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":431471},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"2ca67aafe1ab4665a219146f673ec9d902bc570c","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.2.0_1784877621400_0.9877993075416343","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"flare-redact","version":"1.3.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.3.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://github.com/flare-collection/flare-redact#readme","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"2f0ecdc692c376534432bb39bf309298b0dd3cf3","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.3.0.tgz","fileCount":118,"integrity":"sha512-WhdhAbGfuPhfZGhECozIJESCQknAcil3rsN/8/tBG+ew2aXNyM31WlBj5kHvWVcBN8IYCnZAzdXilgG4SFs1/w==","signatures":[{"sig":"MEUCIQCiFsiN6yjGuHOQ/ao6cfiZlacEVjx6rANPDvxvtvkTcwIgLpL5OYDJiTAS8PyO7ZotR0jIksFd1nosgr1hXRicaRk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":449997},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"}},"gitHead":"9004d96b6e184017256ca99aedd32b7012d8ea11","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Local, zero-dependency secret and PII redaction with contextual findings, secure reversible vaults, and LLM adapters.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.3.0_1785097981566_0.5441333336244056","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"flare-redact","version":"1.4.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.4.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://github.com/flare-collection/flare-redact#readme","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"d536f117251c09f9efc3ca15e0bad69ac1bdf904","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.4.0.tgz","fileCount":122,"integrity":"sha512-aaJA+1Rf5Ndt00eMvyGm5wtlgYt7dEhYNA5dHNpWYvJzbPZmv0gT2CYaj6Gk4910lyQJq0NfHrLJtuUZqJZRtQ==","signatures":[{"sig":"MEUCIEGO2t67MtQjxBX+EzovnJds1ZKtyjkmvHbphRxLQ/vMAiEAjoJPmlPGIrAd1CQOafljt+5+vneZoZjR+E48y6I158A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":483283},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"}},"gitHead":"3e0065ddb0feaf135205e64dcffba1acf68e34b9","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency TypeScript secret and PII redaction for any SDK, logs, HTTP, LLM prompts, and scoped MCP tool boundaries.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"undici-types":"^6.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.4.0_1785832173325_0.6453775276399059","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"flare-redact","version":"1.4.1","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.4.1","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs"},"dist":{"shasum":"bc7a1c56a7f6fbd2f742b1383189cb40373b24f5","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.4.1.tgz","fileCount":122,"integrity":"sha512-id4Ayj+dYJfVuMgQXWRaEwLv3ZkPgiudufnkrEaYHvUdHP8O6SN3a4a1Cnlt7bJchpHgdf5HVyV8vDxtrGv8bQ==","signatures":[{"sig":"MEUCIGCpm3ikcD3zZGjMH1OvVGfK9kSYNnlhibOLNdLKUSSIAiEAyOT1esvfTvOOGumqnd8fy0snUurG1rldrGb7CFQbjM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":484746},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"}},"gitHead":"fa1eef4f29d669b6d45f3faa972ad03044bfefc0","scripts":{"test":"npm run build && node --test","build":"tsc","benchmark":"npm run build && node bench/performance.mjs","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency TypeScript secret and PII redaction for any SDK, logs, HTTP, LLM prompts, and scoped MCP tool boundaries.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"undici-types":"^6.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.4.1_1785834689630_0.5172059846337813","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"flare-redact","version":"1.5.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.5.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"1e7c4f3fce616b32b2fdda96b6c57a54f8a5b3c2","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.5.0.tgz","fileCount":161,"integrity":"sha512-7ackTp+pEcyCP31FKNpH6vgZosjg1P+rPhx3Dx5Zn5DloRhMEFii4bIrjm772ZdR0eeH/wbgOzZAyDKYpi5lkg==","signatures":[{"sig":"MEQCIB4F9TuxSio4+ZBMXpHLn8TUPjaYKfqMeLGY2wOWoMjNAiBj3xQDTs0gJd/J2isB27bapVTLrpzcBHSkyYTNA+ekgw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":806468},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"9ebde61e40e124ba33041a3226a2366e56ee6226","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency secret and PII redaction for any SDK, logs, HTTP, LLM prompts, and MCP tools — with a Docker sidecar gateway and Python, Go and Rust SDKs.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"undici-types":"^6.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.5.0_1786003892239_0.9152849054163534","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"flare-redact","version":"1.5.1","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.5.1","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"0c763cd299717cc9023fa066d0717bb6e0945bc5","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.5.1.tgz","fileCount":165,"integrity":"sha512-8IeyT7vb6UgTaAubm+cRkFN9WTRMhIXUrZv4HwgJvnx+ZPbbOFrtqjTEDExFHUyMeyyh4uER0lD8BwpWKcsPAQ==","signatures":[{"sig":"MEQCIHKPn0v9H+JuOAtLfg4DtMwtKsjYmlESHB3fxPPpctSkAiAojay1GtNxkWI3CP31Hp+LKWClfl+xX3LkpZQEeE91mg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":834843},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"f65c79e73e8dbdf464608a3e9fcf64394811d8f4","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency secret and PII redaction for any SDK, logs, HTTP, LLM prompts, and MCP tools — with a Docker sidecar gateway and Python, Go and Rust SDKs.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.5.1_1786009190148_0.28819139583073317","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"flare-redact","version":"1.6.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.6.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"22e11e8487247b7253ed09f9355d310fbdb534f2","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.6.0.tgz","fileCount":172,"integrity":"sha512-yiHo3ck+cTnhnRABa6cr7s2YrpwtA6nSkaFE1J0NSuIrsPCnqWW99PY7nCq5WdGBhUOqFjsBSXkuVDidkpLDqA==","signatures":[{"sig":"MEQCIQCVasp/tlM/DiApxRUj74cCQi0FBOTzdRvhpD7DmqKBTwIfbvR8WrZT82lpPoEb2DS5CXKqz8h/Tv7sz0kuO4ka3w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":946719},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","default":"./dist/agent.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"e27df74b3899717ec5eff7965ea183e5ea8790ce","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:agent":"npm run build && node bench/agent-flow.mjs","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools — with FlareFlow information-flow control and a polyglot sidecar.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.6.0_1786286288685_0.9073832297694879","host":"s3://npm-registry-packages-npm-production"}},"1.6.1":{"name":"flare-redact","version":"1.6.1","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection","nemo-guardrails"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.6.1","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"a632174aa69cfc0d5aef57b2ee58d390f7b6600e","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.6.1.tgz","fileCount":172,"integrity":"sha512-13Htu6VPk2ttxcoVOP909pXao6orrIBAMS/qWdhQn3/BS5AxSB5fpyqaPZnRGJhfBAM2M9T+RE662hxEpv6nGQ==","signatures":[{"sig":"MEUCIQDKq9LsrDZjhTK2yg93cM17cdmrm/+Lq4AsJgDx51e0AgIgKCIEqCW1ScOTLJdFsDJexEZArMExjuuu+3qaJb1ypvw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":949073},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","default":"./dist/agent.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"c652ea7946028b70527069d7c282752b8a0ccee3","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:agent":"npm run build && node bench/agent-flow.mjs","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"umudhasanli","email":"uh81015@gmail.com"},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.16.0","description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools — with FlareFlow information-flow control and a polyglot sidecar.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.6.1_1786287290913_0.04420094902430738","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"name":"flare-redact","version":"1.7.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection","nemo-guardrails"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.7.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"8fecbbdf059a59c387a3e426d3eb99906791cc09","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.7.0.tgz","fileCount":182,"integrity":"sha512-Kv8ZH6Cl1wi+LNypbhXbqub0f6UvvlkkVaQ7Rc5Ach0MDxPFaAy1PeQ3rdI2sEGDRfW8n2SOcIMq/wuX+bZdbw==","signatures":[{"sig":"MEYCIQDh47MujNBS/oBkfG18K+tScYxSDtDS72zrZeFWPqfNrQIhAIn4AFy6JyUNpYYN57N8WuC3TagNo7N9DDXZng6QgeGE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICYsS3zCxRBNEumHVk+VSVxLr9WMwCg81/02WwNwN18EAiEAgbdYeg+3mxP84rIIP4nzD6aCExVIMp5BlhTQix5Oj+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1125011},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","default":"./dist/agent.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./entities":{"types":"./dist/entities.d.ts","default":"./dist/entities.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"7f36d2b9c9ae7dbe83b9ea57a169ccb9b25484d9","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:agent":"npm run build && node bench/agent-flow.mjs","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:entities":"npm run build && node bench/entities.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ee8b9130-3545-46b8-a45e-4e25c3cf0846"}},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.21.2","description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools — with FlareFlow information-flow control and a polyglot sidecar.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.7.0_1794643524445_0.2606587602491599","host":"s3://npm-registry-packages-npm-production"}},"1.8.0":{"name":"flare-redact","version":"1.8.0","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection","nemo-guardrails"],"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","_id":"flare-redact@1.8.0","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"homepage":"https://flare-collection.github.io/flare-redact/","bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"dist":{"shasum":"b90b741425b36307b38b0f4cf0f09a48ab47c6bd","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.8.0.tgz","fileCount":186,"integrity":"sha512-YdKfAZxWLbopnIqG044+M/VbJjOMijgFEKL1QlT/B65D+SGCQ7ZarqkEdfVkPXQvBklFZXgn8zyiQyLYHvd6Hw==","signatures":[{"sig":"MEYCIQCm8yfA4LhvUVMEDBjKD/rLyIq0wtA1TeEzziaXgOmJTwIhAJdS1T1hHVPiORUkWq3bp3wgnzM1JU0nteLJB28BO8Wp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHaxIbDWtxV44NK+fkRuLuEt7kqJfdu2SsCio1C+ddR+AiEA8qsrXpTOy/bGqn7NEKyF90nbCl4FdIRvv38FgPXRgLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1148137},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","default":"./dist/agent.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./entities":{"types":"./dist/entities.d.ts","default":"./dist/entities.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"522462fdfb9823bdd03e46c7d0d018d6740aa257","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:agent":"npm run build && node bench/agent-flow.mjs","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:entities":"npm run build && node bench/entities.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ee8b9130-3545-46b8-a45e-4e25c3cf0846"}},"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.21.2","description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools — with FlareFlow information-flow control and a polyglot sidecar.","directories":{"doc":"docs","test":"test","example":"examples"},"sideEffects":false,"_nodeVersion":"24.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/flare-redact_1.8.0_1794643648916_0.6858730115834222","host":"s3://npm-registry-packages-npm-production"}},"1.9.0":{"_id":"flare-redact@1.9.0","bin":{"flare-redact":"bin/flare-redact.mjs","flare-gateway":"bin/flare-gateway.mjs"},"bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"dist":{"shasum":"8b80d106c8de6834abd22ea8f8e3228f3d3c9238","tarball":"https://registry.npmjs.org/flare-redact/-/flare-redact-1.9.0.tgz","fileCount":202,"integrity":"sha512-K+SHDeE9IXRzrf5kcrloq19sJCynm2ki8cq67ZpJ3tmJyee92dDPpjDLUYduLk+gzLUD6+pFM7e1nuFK7jakXA==","signatures":[{"sig":"MEQCIELPJSYIpl8Rk493QLu5m37ri42rM1YcyXfbl0zTGzoTAiAOhsYnXAEEIQOCwrEQPpVAdsgiQXVrb4MYEBX1l/YY8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCYHRFntyXDwD2Rik9YDwUyCGANxJHG0WvyGv/BnzGZpAIgScbuIuw5mWI2syxJzEPPBciucJvn0rkjbVeErjLfXxs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/flare-redact@1.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1239979},"main":"./dist/index.js","name":"flare-redact","type":"module","types":"./dist/index.d.ts","author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./ml":{"types":"./dist/ml.d.ts","default":"./dist/ml.js"},"./csv":{"types":"./dist/csv.d.ts","default":"./dist/csv.js"},"./llm":{"types":"./dist/llm.d.ts","default":"./dist/llm.js"},"./http":{"types":"./dist/http.d.ts","default":"./dist/http.js"},"./pack":{"types":"./dist/pack.d.ts","default":"./dist/pack.js"},"./pino":{"types":"./dist/pino.d.ts","default":"./dist/pino.js"},"./tool":{"types":"./dist/tool.d.ts","default":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","default":"./dist/agent.js"},"./fetch":{"types":"./dist/fetch.d.ts","default":"./dist/fetch.js"},"./sentry":{"types":"./dist/sentry.d.ts","default":"./dist/sentry.js"},"./stream":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"./gateway":{"types":"./dist/gateway/index.d.ts","default":"./dist/gateway/index.js"},"./session":{"types":"./dist/session.d.ts","default":"./dist/session.js"},"./winston":{"types":"./dist/winston.d.ts","default":"./dist/winston.js"},"./entities":{"types":"./dist/entities.d.ts","default":"./dist/entities.js"},"./register":{"types":"./dist/register.d.ts","default":"./dist/register.js"},"./middleware":{"types":"./dist/middleware.d.ts","default":"./dist/middleware.js"},"./package.json":"./package.json","./spec/detectors.json":"./spec/detectors.json"},"gitHead":"eb6151a0bd128d1f11c428daf1209dfc520b170b","license":"MIT","scripts":{"test":"npm run build && node --test","build":"tsc","gateway":"npm run build && node bin/flare-gateway.mjs","benchmark":"npm run build && node bench/performance.mjs","spec:sync":"node scripts/sync-spec.mjs","spec:check":"node scripts/sync-spec.mjs --check","test:python":"PYTHONPATH=sdk/python/src python3 -m unittest discover -s sdk/python/tests -t sdk/python","prepublishOnly":"npm run build","benchmark:agent":"npm run build && node bench/agent-flow.mjs","benchmark:graph":"npm run build && node bench/graph-vault.mjs","build:playground":"npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js","spec:conformance":"npm run build && node scripts/build-conformance.mjs","benchmark:entities":"npm run build && node bench/entities.mjs","benchmark:adversarial":"npm run build && node bench/adversarial-runtime.mjs"},"version":"1.9.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ee8b9130-3545-46b8-a45e-4e25c3cf0846"}},"homepage":"https://flare-collection.github.io/flare-redact/","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection","nemo-guardrails","sentry","pre-commit","git-hooks"],"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"_npmVersion":"11.21.2","description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools, with FlareFlow information-flow control and a polyglot sidecar.","directories":{"doc":"docs","test":"test","example":"examples"},"maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"sideEffects":["./dist/register.js"],"_nodeVersion":"24.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/flare-redact_1.9.0_1794651239717_0.9531653341816806"}}},"time":{"created":"2026-07-14T09:34:03.816Z","modified":"2026-11-14T10:14:00.184Z","0.2.0":"2026-07-14T09:34:04.118Z","0.3.0":"2026-07-15T06:23:00.022Z","0.4.0":"2026-07-15T08:02:00.496Z","0.5.0":"2026-07-15T08:34:51.569Z","0.6.0":"2026-07-15T19:20:35.500Z","0.6.1":"2026-07-15T20:10:51.658Z","0.6.2":"2026-07-15T20:40:25.166Z","0.7.0":"2026-07-16T19:17:33.883Z","0.8.0":"2026-07-22T17:11:12.148Z","0.9.0":"2026-07-22T20:38:00.943Z","1.0.0":"2026-07-23T13:09:37.699Z","1.0.1":"2026-07-23T15:12:18.399Z","1.1.0":"2026-07-23T15:44:52.424Z","1.2.0":"2026-07-24T07:20:21.552Z","1.3.0":"2026-07-26T20:33:01.778Z","1.4.0":"2026-08-04T08:29:33.471Z","1.4.1":"2026-08-04T09:11:29.776Z","1.5.0":"2026-08-06T08:11:32.447Z","1.5.1":"2026-08-06T09:39:50.274Z","1.6.0":"2026-08-09T14:38:08.875Z","1.6.1":"2026-08-09T14:54:51.076Z","1.7.0":"2026-11-14T08:05:24.587Z","1.8.0":"2026-11-14T08:07:29.010Z","1.9.0":"2026-11-14T10:13:59.846Z"},"bugs":{"url":"https://github.com/flare-collection/flare-redact/issues"},"author":{"url":"https://github.com/umudhasanli","name":"Umud Hasanli"},"license":"MIT","homepage":"https://flare-collection.github.io/flare-redact/","keywords":["redact","redaction","redactor","secrets","secret","secret-detection","secret-scanning","pii","pii-redaction","mask","masking","data-masking","sanitize","sanitization","scrub","anonymize","pseudonymize","obfuscate","censor","log","logs","logging","logger","log-redaction","security","privacy","sensitive-data","dlp","gdpr","pci","pci-dss","compliance","api-key","apikey","token","jwt","credentials","password","redos","zero-dependency","typescript","cli","llm","ai","openai","anthropic","chatgpt","claude","prompt","ai-privacy","data-anonymization","anonymization","pseudonymization","tokenization","surrogate-data","hmac","aes-gcm","i18n","multi-language","national-id","iban","gdpr-compliance","middleware","mcp","ai-agents","data-loss-prevention","sdk","information-flow-control","agent-security","prompt-injection","nemo-guardrails","sentry","pre-commit","git-hooks"],"repository":{"url":"git+https://github.com/flare-collection/flare-redact.git","type":"git"},"description":"Zero-dependency secret and PII redaction for logs, prompts, and agent tools, with FlareFlow information-flow control and a polyglot sidecar.","maintainers":[{"name":"umudhasanli","email":"uh81015@gmail.com"},{"name":"tuncayaliyev","email":"aliyevtuncay988@gmail.com"}],"readme":"<p align=\"center\">\n  <img src=\"assets/flare-redact.svg\" alt=\"flare-redact\" width=\"200\">\n</p>\n\n<h1 align=\"center\">flare-redact</h1>\n\n<p align=\"center\">\n  <b>Hide secrets & PII in logs, prompts, and text, before they leak.</b>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/flare-redact\"><img src=\"https://img.shields.io/npm/v/flare-redact?label=npm\" alt=\"npm version\"></a>\n  <a href=\"https://github.com/flare-collection/flare-redact/actions/workflows/ci.yml\"><img src=\"https://github.com/flare-collection/flare-redact/actions/workflows/ci.yml/badge.svg?branch=main\" alt=\"CI\"></a>\n  <a href=\"LICENSE\"><img src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"></a>\n  <img src=\"https://img.shields.io/npm/types/flare-redact.svg\" alt=\"TypeScript\">\n  <img src=\"https://img.shields.io/badge/dependencies-0-brightgreen\" alt=\"Zero dependencies\">\n  <img src=\"https://img.shields.io/badge/languages-24-4f46e5\" alt=\"24 languages\">\n  <img src=\"https://img.shields.io/badge/detectors-90-4f46e5\" alt=\"90 detectors\">\n  <img src=\"https://img.shields.io/badge/runtime-node%20%7C%20browser%20%7C%20edge-blue\" alt=\"Runtimes\">\n</p>\n\n<p align=\"center\">\n  🌐 <b>International by default: 24 languages</b><br>\n  🇬🇧 🇨🇳 🇮🇳 🇪🇸 🇸🇦 🇫🇷 🇵🇹 🇷🇺 🇯🇵 🇩🇪 🇰🇷 🇹🇷 🇮🇹 🇮🇷 🇵🇱 🇺🇦 🇳🇱 🇻🇳 🇮🇩 🇹🇭 🇬🇷 🇮🇱 🇦🇿 🇷🇴\n</p>\n\n<p align=\"center\">\n  <a href=\"https://flare-collection.github.io/flare-redact/\">Live playground</a>\n  · <a href=\"https://flare-collection.github.io/flare-redact/guides/\">Practical redaction guides</a>\n  · <a href=\"https://flare-collection.github.io/flare-redact/llms-full.txt\">LLM-friendly API reference</a>\n</p>\n\n---\n\nEvery leaked secret has the same origin story: someone logged an object, and a\npassword, token, or API key was sitting inside it. The code looked innocent\n(`logger.info({ user })`), but `user` carried a session token, and now it's in\nyour log aggregator, your error tracker, and three vendors' systems forever.\n\n**flare-redact** is one function you wrap around that data. It reads the *content*,\nnot just the field names, so it catches the AWS key someone pasted into a free-text\n`note`, the JWT in an `Authorization` header, the card number in a stack trace, and\nmasks them, keeping just enough of a hint to stay debuggable.\n\n```js\nimport { redact } from 'flare-redact';\n\nredact('User alice@corp.com paid with 4242 4242 4242 4242, token ghp_' + 'a'.repeat(36));\n// → 'User a***@*** paid with **** **** **** 4242, token ghp_***'\n```\n\nNothing to configure. No list of field paths to maintain. No native build step.\n\n> **The same problem now has a new address: your LLM calls.** Wrap your OpenAI or\n> Anthropic client and detected secrets are stripped from prompts and restored in\n> the reply. The model never sees those original values, while references survive.\n> [Jump to it ↓](#redact-prompts-before-they-reach-an-llm)\n\n<p align=\"center\">\n  <img src=\"assets/demo.svg\" alt=\"Before and after: secrets and PII masked in a log line, across languages\" width=\"820\">\n</p>\n\n|   |   |   |\n|---|---|---|\n| 🔍 **Context-aware**: spans carry risk and confidence | 🔐 **Secure vaults**: opaque tokens, optional AES-GCM persistence | 🎭 **Useful test data**: keyed pseudonyms and typed surrogates |\n| 🔥 **FlareFlow agent IFC**: source→sink capabilities, exact paths, cumulative budgets | 🔌 **Universal middleware**: wrap any SDK, handler, queue, or RPC function | 🪶 **Zero runtime dependencies**: Node, browser, and edge |\n| 🐍 **Python, Go, and Rust SDKs**: one spec, four engines, one conformance corpus | 🐳 **Sidecar gateway**: a Docker reverse proxy that needs no code change | 📜 **Detectors as data**: portable FRS-1 packs any engine can load |\n\n## Contents\n\n- [Install](#install)\n- [Practical guides](https://flare-collection.github.io/flare-redact/guides/)\n- [Runnable examples](#runnable-examples)\n- [Python, Go, and Rust](#python-go-and-rust)\n- [The sidecar gateway](#the-sidecar-gateway)\n- [Redact anything](#redact-anything)\n- [Integrate any SDK or framework](#integrate-any-sdk-or-framework)\n- [Redact prompts before they reach an LLM](#redact-prompts-before-they-reach-an-llm)\n- [Ways to hide a value](#ways-to-hide-a-value)\n- [Reversible redaction](#reversible-redaction)\n- [Free-text PII without a model](#free-text-pii-without-a-model)\n- [Contextual and model-assisted PII](#contextual-and-model-assisted-pii)\n- [Learned confidence, fewer false positives](#learned-confidence-fewer-false-positives)\n- [Build a private chat app](#build-a-private-chat-app)\n- [Enforce information flow across agent tools](#enforce-information-flow-across-agent-tools)\n- [Protect tool calls and MCP loops](#protect-tool-calls-and-mcp-loops)\n- [Your own words](#your-own-words)\n- [See what leaks, and why](#see-what-leaks-and-why)\n- [Guard your logger in one line](#guard-your-logger-in-one-line)\n- [One policy, everywhere](#one-policy-everywhere)\n- [Anonymize a dataset for staging](#anonymize-a-dataset-for-staging)\n- [Guard what leaves your app](#guard-what-leaves-your-app)\n- [Streams](#streams)\n- [Fail a build when a secret sneaks in](#fail-a-build-when-a-secret-sneaks-in)\n- [CLI](#cli)\n- [What it catches](#what-it-catches)\n- [Multilingual secret vocabulary and IDs](#multilingual-secret-vocabulary-and-ids)\n- [Custom detectors & allowlists](#custom-detectors--allowlists)\n- [API](#api)\n- [Security boundaries](#security-boundaries)\n- [Why not a field allowlist?](#why-not-a-field-allowlist)\n\n## Install\n\n```bash\nnpm install flare-redact\n```\n\nNode 20+, and it runs in the browser and edge runtimes too, with zero dependencies.\nUpgrading from `0.9.x`? Read the [`1.0 migration guide`](MIGRATION.md). Existing\nprojects are not forced across the major version; upgrade explicitly with\n`npm install flare-redact@^1.0.0`.\n\n### Set up in one command\n\n```bash\nnpx flare-redact init          # the lines to paste for openai, @anthropic-ai/sdk, Sentry, pino, winston, express\nnpx flare-redact init --hook   # also stops any commit that adds a secret\nnpx flare-redact init --ci     # also writes .github/workflows/flare-redact.yml\n```\n\n`init` reads `package.json`, prints one ready-to-paste step per library it\nrecognises (console when there is no logger), and never edits source files.\n`--hook` writes a git pre-commit hook that scans only the lines a commit adds\n(with husky, it prints the line to add instead). `--ci` adds a workflow that runs\n`flare-redact --scan` on every pull request.\n\n### No code change at all\n\n```bash\nnode --import flare-redact/register app.js\nNODE_OPTIONS=\"--import flare-redact/register\" FLARE_REDACT_PRESET=logs npm start\n```\n\nEvery `console.log`, `info`, `warn`, `error` and `debug` call is redacted before\nit is written, so you can turn redaction on in a Dockerfile or a deploy setting\nwithout opening the code. `FLARE_REDACT_PRESET` picks a [preset](#presets); an\nunknown name stops the process at startup rather than leaving the logs\nunredacted. Loggers that write to stdout themselves (pino, winston) have their\nown one-line integrations [below](#one-policy-everywhere).\n\n### Presets\n\nPick a goal instead of a list of detector tags:\n\n| Preset | Adds to the defaults |\n|---|---|\n| `logs` | phone numbers |\n| `llm` | every personal identifier (`pii`) plus names, addresses and other PII in prose (`entities`) |\n| `gdpr` | `llm` plus IP and MAC addresses, coordinates, VINs and wallet addresses |\n| `strict` | every detector, `high_entropy` included |\n\n```js\nredact(text, { preset: 'llm' });\nconst openai = wrapOpenAI(new OpenAI(), { preset: 'llm' });\nconst log = pino(pinoRedact({ preset: 'logs' }));\n```\n\nThe CLI takes `--preset gdpr`, the gateway `--preset` or `FLARE_REDACT_PRESET`.\n`enable` and `disable` apply on top of a preset and `only` ignores it. An unknown\nname throws `ERR_UNKNOWN_PRESET` instead of quietly redacting less. Presets belong\nto the Node package, the CLI and the gateway; the Python, Go and Rust clients\nreach them through the gateway.\n\n### React and the browser\n\nThe core is plain ESM with no Node built-ins, is tree-shakeable\n(only `flare-redact/register` has side effects), and uses the standard Web\nCrypto API, so `redact`,\n`scan`, vaults, and the LLM helpers work unchanged in React, Vue, and edge\nfunctions. CI smoke-tests the core on Bun and Deno on every push.\n\n```jsx\nimport { redact } from 'flare-redact';\n\nfunction SupportTicket({ text }) {\n  // Mask pasted keys and card numbers before the ticket is rendered or sent on.\n  return <pre>{redact(text)}</pre>;\n}\n```\n\nOnly the Node-specific entry points (`flare-redact` CLI, `/stream`, `/pino`,\n`/winston`) need Node. One honest caveat: client-side redaction protects what\nyou *forward* (analytics, logs, LLM calls); it is not a substitute for\nserver-side redaction, since the original value already reached the browser.\n\n### Using with AI coding agents\n\nThe docs site serves an [`llms.txt`](https://flare-collection.github.io/flare-redact/llms.txt)\nand a condensed [`llms-full.txt`](https://flare-collection.github.io/flare-redact/llms-full.txt)\nAPI reference, so coding assistants that read documentation get the current\nAPI instead of guessing. If you use Claude Code, Cursor, or similar agents,\none line in your project rules (`CLAUDE.md`, `.cursor/rules`, `AGENTS.md`)\nkeeps generated code consistent:\n\n```\nFor masking secrets/PII in logs, prompts, or datasets, use the flare-redact\npackage (API: https://flare-collection.github.io/flare-redact/llms-full.txt).\nDo not write ad-hoc redaction regexes.\n```\n\n## Runnable examples\n\nClone the repository and run these small applications locally:\n\n| Example | What it proves | Run |\n|---|---|---|\n| [`openai-privacy`](examples/openai-privacy) | The model sees an opaque placeholder while the app receives the restored value | `npm --prefix examples/openai-privacy start` |\n| [`express-pino`](examples/express-pino) | Express keeps the original request while Pino receives a safe snapshot | `npm --prefix examples/express-pino run smoke` |\n| [`universal-boundaries`](examples/universal-boundaries) | Any SDK method is sanitized and cross-tool placeholder exfiltration is blocked | `npm --prefix examples/universal-boundaries start` |\n| [`flareflow-agent`](examples/flareflow-agent) | An injected model can carry an opaque secret token but cannot restore it at an unauthorized sink or path | `npm --prefix examples/flareflow-agent start` |\n| [`nemo-guardrails-flareflow`](examples/nemo-guardrails-flareflow) | A NeMo-validated tool call still cannot move a protected database value into an unauthorized HTTP sink | `npm --prefix examples/nemo-guardrails-flareflow start` |\n| [`github-secret-scan`](examples/github-secret-scan) | Pull requests fail when tracked source or configuration files contain detected secrets or PII | Copy the workflow into your repository |\n\nRun `npm run build` and install an example's dependencies before its first run.\n\n## Python, Go, and Rust\n\nThe people who most need to keep data out of a prompt are usually not writing\nJavaScript. There are now four engines, and they are not four ports: they all\nexecute the same [FRS-1 detector specification](spec/SPEC.md) and are held to the\nsame [conformance corpus](spec/conformance/), so a policy written once produces\nidentical output in every one of them.\n\nEach engine is its own package. Installing `flare-redact` from npm gives you the\nJavaScript engine and nothing else: no Python, no Go, no Rust, and no\ndependencies of any kind.\n\n| | Install | Docs |\n|---|---|---|\n| **Go** | `go get github.com/flare-collection/flare-redact/sdk/go` | [`sdk/go`](sdk/go) |\n| **Python** | `pip install \"flare-redact @ git+https://github.com/flare-collection/flare-redact@v1.9.0#subdirectory=sdk/python\"` | [`sdk/python`](sdk/python) |\n| **Rust** | `flare-redact = { git = \"https://github.com/flare-collection/flare-redact\", tag = \"v1.9.0\" }` | [`sdk/rust`](sdk/rust) |\n\nThe Python and Rust engines are not published to PyPI and crates.io yet, so they\ninstall from this repository. The commands above are the ones that work today.\n\n```python\nfrom flare_redact import create_session\n\nsession = create_session(enable=[\"pii\"])\nsafe = session.redact(\"Email the invoice to ada@example.com\")\nreply = session.restore(call_your_model(safe))\n```\n\n```go\npolicy, _ := flareredact.Compile(flareredact.Options{Enable: []string{\"pii\"}})\nslog.SetDefault(slog.New(flareredact.NewSlogHandler(handler, policy)))\n```\n\n```rust\nlet policy = Policy::compile(Options::new().enable([\"pii\"]))?;\nlet safe = policy.redact_str(\"contact ada@example.com\")?;\n```\n\nEach SDK is dependency-light on purpose (Python is standard library only, Go is\nstandard library only, Rust is `regex` plus `serde`) because a redaction library\nthat expands your dependency tree is a security library that widened your attack\nsurface. Each also ships the integrations its ecosystem actually uses: a\n`logging` filter and formatter and OpenAI/Anthropic client wrappers in Python, an\n`slog.Handler` and an `http.RoundTripper` in Go.\n\nDrift is the reason this is a specification and not three ports. Detection logic\nmaintained in four hand-written copies diverges within a release or two, and a\nredactor that behaves differently per language is worse than none, because the\nteam stops being able to reason about what leaves the process. The corpus runs in\nall four test suites; a change that makes them disagree fails CI.\n\nDetectors themselves are data. Write an [FRS-1 pack](spec/SPEC.md) once and every\nengine loads the same file:\n\n```js\nimport { loadPack } from 'flare-redact/pack';\nredact(text, { detectors: loadPack(acmePack).detectors });\n```\n\nA pack that uses a construct an engine cannot execute exactly (a lookahead, a\n`\\d` whose meaning differs between languages, a checksum it does not implement)\nfails to load. Failing open is how a redactor leaks.\n\n## The sidecar gateway\n\nSometimes the right amount of integration is none. The gateway is a reverse\nproxy: point a vendor SDK's base URL at it, and request bodies are scrubbed on\nthe way out and the originals restored on the way in, streaming included.\n\n```bash\ndocker run --rm -p 127.0.0.1:8787:8787 \\\n  -e FLARE_REDACT_ENABLE=pii \\\n  flare-redact-gateway --upstream https://api.openai.com\n```\n\n```diff\n- OPENAI_BASE_URL=https://api.openai.com/v1\n+ OPENAI_BASE_URL=http://127.0.0.1:8787/v1\n```\n\nThat diff is the whole integration: no middleware, no wrapper, no import. It is\nwhat makes this reachable for the estate where a Python service, a PHP monolith\nand a Node worker all call the same vendor and none of them can grow a new\ndependency this quarter.\n\nWithout Docker: `npx flare-redact gateway --upstream https://api.openai.com`.\n\n```bash\n# several vendors, and only the parts a human typed\nflare-redact gateway \\\n  --route /openai=https://api.openai.com \\\n  --route /anthropic=https://api.anthropic.com \\\n  --paths 'messages[*].content,input,prompt,system'\n```\n\nRedaction uses a per-request vault, so `ada@example.com` leaves as\n`[FR_EMAIL_9f2c…]` and comes back as itself. For a streamed reply the restorer\nholds back the longest suffix that could still be the start of a placeholder, so\na token split across two SSE frames is restored exactly once.\n\nThe header that authenticates you *to* the vendor is not the secret being hidden\n*from* it: `Authorization` is forwarded untouched. Bodies and matched values are\nnever logged; the audit line carries counts. `/metrics` exposes Prometheus\ncounters, and `/v1/redact`, `/v1/scan` and `/v1/sessions` give any language a\nredaction service to call.\n\nFull documentation, including the security model and what it deliberately does\nnot do: [`docker/README.md`](docker/README.md).\n\n## Redact anything\n\nStrings, arrays, and objects, recursively. The shape you pass in is the shape you\nget back.\n\n```js\nimport { redact } from 'flare-redact';\n\nredact({\n  user:     'bob@corp.com',\n  password: 'hunter2',\n  tokens:   ['ghp_' + 'b'.repeat(36)],\n  note:     'my aws key is AKIAIOSFODNN7EXAMPLE',\n});\n// →\n// {\n//   user:     'b***@***',\n//   password: '***',                     // sensitive field name\n//   tokens:   ['ghp_***'],\n//   note:     'my aws key is AKIA***',    // found inside free text\n// }\n```\n\n## Integrate any SDK or framework\n\n`flare-redact/middleware` puts one compiled policy around plain-data function\nboundaries. It works without framework dependencies: analytics SDK methods,\nserver-action payloads, queue consumers, webhook clients, RPC functions,\ndatabase writes, and telemetry exporters all use the same boundary shape.\n\n```js\nimport { createRedactionMiddleware } from 'flare-redact/middleware';\n\nconst boundary = createRedactionMiddleware({\n  policy: {\n    enable: ['high_entropy'],\n    refineConfidence: true,\n    minConfidence: 0.65,\n  },\n  onFindings(event) {\n    audit.info({\n      boundary: event.name,\n      count: event.findings.length,\n      detectors: event.findings.map((finding) => finding.detector),\n    }); // finding metadata is always value-free\n  },\n});\n\nanalytics.track = boundary.wrap(analytics.track, { name: 'analytics.track' });\nawait analytics.track('checkout', { email, authorization });\n// analytics receives a redacted copy; the caller's object stays unchanged\n```\n\nThe same boundary supports three deployment modes:\n\n```js\ncreateRedactionMiddleware({ action: 'redact' });  // default: sanitize and continue\ncreateRedactionMiddleware({ action: 'observe' }); // report only, change nothing\ncreateRedactionMiddleware({ action: 'block' });   // throw RedactionBlockedError\n```\n\nUse `process(value)` directly inside framework hooks. `wrap()` handles sync and\npromise-returning functions while preserving method `this`; `wrapAsync()` adds\nasync local `semanticProvider` support. Inputs are protected by default, and\n`{ output: true }` also protects returned values. For signatures containing\nframework-native request/response objects or callbacks, protect only plain-data\narguments (`{ input: [1] }`) or call `process(request.body)` explicitly; do not\nclone a native `Request`/`Response` object.\n\n## Redact prompts before they reach an LLM\n\nYour app sends user data to OpenAI or Anthropic. Somewhere in that prompt is a\ncustomer's email, an API key, or a card number, and now it's left your systems.\nWrap the client once, and detected secrets are stripped from prompts and put back\nin the reply. The model never sees those original values; your code keeps the\nreferences it needs.\n\n```js\nimport { wrapOpenAI } from 'flare-redact/llm';\n\nconst openai = wrapOpenAI(new OpenAI());\n\nconst res = await openai.chat.completions.create({\n  model: 'gpt-4o',\n  messages: [{ role: 'user', content: 'Email the invoice to alice@corp.com, card 4242 4242 4242 4242' }],\n});\n```\n\n```\nyour app sends  →  Email the invoice to alice@corp.com, card 4242 4242 4242 4242\nthe model sees  →  Email the invoice to [FR_EMAIL_7f2a…], card [FR_CREDIT_CARD_19be…]\nyour app gets   →  Sent to alice@corp.com. Card 4242 4242 4242 4242 wasn't stored.\n```\n\n`wrapAnthropic` does the same for `messages.create`, including the system prompt.\nBoth wrappers redact complete message structures, including tool-call arguments.\nStreaming text, OpenAI tool arguments, and Anthropic partial JSON are restored\neven when a placeholder is split across chunks. There's a `redactPrompt(text)`\ntoo if you'd rather hold the vault yourself.\n\n## Ways to hide a value\n\nPick a `mode` depending on whether you still need to *reason* about the data\nafter it's hidden.\n\n```js\nredact('bob@corp.com', { mode: 'mask'  }); // 'b***@***'          (default)\nredact('bob@corp.com', { mode: 'label' }); // '[REDACTED:email]'\n\nconst protectedOptions = { transformSecret: process.env.FLARE_REDACT_SECRET };\nredact('bob@corp.com', { ...protectedOptions, mode: 'hash' });\n// 'email_3baf4d28d7c88317a…' (HMAC-SHA-256 fingerprint)\n\nredact('bob@corp.com', { ...protectedOptions, mode: 'pseudonym' });\n// 'kqz@rwmp.dnu' (keyed, deterministic, keeps character classes)\n\nredact('bob@corp.com', { ...protectedOptions, mode: 'surrogate' });\n// 'user_93a78c61e204@example.invalid' (type-consistent synthetic value)\n```\n\nProtected deterministic modes require `transformSecret`; they never silently\nfall back to a public unsalted fingerprint. `hash` is useful for correlation,\n`pseudonym` retains the original character shape, and `surrogate` emits typed\nsynthetic values such as reserved-domain emails and Luhn-valid card numbers.\nUse a separate secret per environment or correlation domain.\n\n`pseudonym` is deliberately **not** described as format-preserving encryption.\nIt is non-reversible pseudonymization, not NIST FF1. The old `fpe` name remains\nas a compatibility alias but is deprecated.\n\nOr replace everything with one fixed string:\n\n```js\nredact(payload, { mask: '█' });\nredact(payload, { mask: ({ detector }) => `<${detector.id}>` });\n```\n\n## Reversible redaction\n\nWhen you need the originals back (the LLM case above, or handing data to a\nsystem you don't trust and getting it back), use a vault. It swaps each secret\nfor a stable placeholder and remembers the mapping.\n\n```js\nimport { createVault } from 'flare-redact';\n\nconst vault = createVault();\nconst safe = vault.redact('charge bob@corp.com on card 4242 4242 4242 4242');\n// 'charge [FR_EMAIL_7f2ad4…] on card [FR_CREDIT_CARD_19be63…]'\n\nvault.restore(safe);\n// 'charge bob@corp.com on card 4242 4242 4242 4242'\n```\n\nThe same value gets the same placeholder inside one vault, so references survive\nthe round trip. Default placeholders include 96 random bits instead of a global\nsequence number. Human-readable `[EMAIL_1]` counters remain available through\n`createVault({ placeholderStyle: 'readable' })` for trusted local workflows.\n\nThe mapping is as sensitive as the original data. Encrypt it before persistence:\n\n```js\nimport { sealVault, openVault, restore } from 'flare-redact';\n\nconst encrypted = await sealVault(vault, process.env.FLARE_REDACT_VAULT_PASSWORD);\nawait fs.writeFile('session.vault.json', JSON.stringify(encrypted), { mode: 0o600 });\n\nconst entries = await openVault(encrypted, process.env.FLARE_REDACT_VAULT_PASSWORD);\nrestore(safe, new Map(entries));\n```\n\nSealed vaults use PBKDF2-SHA-256 with a fresh salt and AES-256-GCM with a fresh\nnonce. Wrong passwords and modified files fail closed.\n\nFrom the CLI, `--vault` and `--restore` use encrypted files by default. Passwords\ncome from `FLARE_REDACT_VAULT_PASSWORD` (or the variable named by\n`--vault-password-env`) so they do not appear in shell history:\n\n```bash\nexport FLARE_REDACT_VAULT_PASSWORD='use-a-secret-manager-in-production'\nflare-redact --vault session.vault.json < input.txt > safe.txt\nflare-redact --restore session.vault.json < safe.txt > restored.txt\n```\n\n## Free-text PII without a model\n\nMasking models published on Hugging Face, such as OpenAI's privacy-filter, find\npeople, addresses and dates in prose. They also mean a model download, a runtime\nand a slow CPU path. `entities` gets close to what they do with no model at all:\ncue phrases in the 24 library languages (\"my name is\", \"ich heiße\", \"меня зовут\",\n\"我叫\"), name lists, address, phone and date shapes, context scoring, and later\nmentions of a name already found (\"Alice Johnson ... Alice said\").\n\n```js\nimport { redact, recognizeEntities } from 'flare-redact';\n\nredact(\n  'Hi, my name is Alice Johnson and I live at 221B Baker Street, London NW1 6XE. Call me at 415-555-0132.',\n  { enable: ['entities'] },\n);\n// 'Hi, my name is [REDACTED PERSON] and I live at [REDACTED ADDRESS]. Call me at [REDACTED PHONE].'\n\nredact('我的名字是李华，住在北京市朝阳区建国路88号。', { enable: ['entities'] });\n// '我的名字是[REDACTED PERSON]，住在[REDACTED ADDRESS]。'\n\nrecognizeEntities('Patient: Maria García, DOB: 03/04/1985, MRN 00482913.');\n// private_person 'Maria García' (0.99), private_date '03/04/1985' (0.95),\n// account_number '00482913' (0.86)\n```\n\n| Label | Finds |\n|---|---|\n| `private_person` | names after introductions, form labels, titles, greetings, sign-offs and email headers, plus known names in running text |\n| `private_address` | street addresses in Latin, Cyrillic, Chinese, Japanese and Korean formats, PO boxes, postcode lines |\n| `private_phone` | numbers after a phone cue, international numbers, North American numbers |\n| `private_date` | birth dates and dates tied to a person (admission, discharge, appointment) |\n| `account_number` | customer, policy, passport, patient, employee and other IDs that only their label identifies |\n| `private_handle` | `@handles` and usernames |\n| `private_url` | profile links, and URLs whose query carries an email, name or token |\n| `secret` | passwords, PINs and one-time codes written in a sentence |\n\nThe labels are the privacy-filter ones, so the outputs can be compared or swapped.\nThey are ordinary detectors: `disable: ['private_url']` drops one,\n`entities: { labels: ['private_person'], minConfidence: 0.7, propagate: false }`\ntunes the recogniser, and vaults, `surrogate` mode, streams, the CLI\n(`--enable entities`) and the gateway all take them. `createEntityRecognizer()`\nfrom `flare-redact/entities` returns the same recogniser as a `semanticProvider`.\n\nOn the hand-labelled corpus in [`bench/entities-cases.json`](bench/entities-cases.json)\n(`npm run benchmark:entities`), the holdout of 57 lines was written after tuning\nstopped. On its first run the regex detectors alone, with every PII detector\nswitched on, reached 35.1% F1 and left 67.4% of the PII characters visible. With\n`entities` it reached 84.1% F1 with 12.0% left visible and 1.4% of the clean text\nmasked. The corpus is small and synthetic, so read it as a regression signal and\nnot as a comparison with published model scores. A trained model still does\nbetter on names with no cue and no match in the name lists, on unusual address\nformats and on languages outside the 24. When you need that, plug one in through\n`semanticProvider`.\n\n## Contextual and model-assisted PII\n\nStructured identifiers and credentials are best handled by deterministic rules\nand checksum validators. Names and addresses need context, so three conservative\ndetectors are opt-in:\n\n```js\nconst findings = scan(\n  'Customer name: Alice Example; address: 120 Cedar Street; DOB: 1990-04-23',\n  { enable: ['contextual'] },\n);\n\n// person_name, street_address, date_of_birth\n// each finding includes risk, confidence, and the exact sensitive span\n```\n\nFor broader multilingual free-text PII, connect a local model without coupling\nthe zero-dependency core to one ML runtime:\n\n```js\nconst policy = {\n  semanticProvider: {\n    async detect(text) {\n      return [{\n        detector: 'person_model', label: 'Person',\n        why: 'Local multilingual NER result.',\n        start: 12, end: 25, confidence: 0.94, risk: 'high',\n      }];\n    },\n  },\n  minConfidence: 0.8,\n};\n\nconst safe = await redactAsync(input, policy);\n```\n\nSemantic and deterministic spans enter the same overlap arbitration. Higher-risk,\nhigher-priority, and better-validated findings win instead of whichever regular\nexpression happens to run first.\n\n## Learned confidence, fewer false positives\n\nGeneric, format-agnostic detectors such as `high_entropy` catch unknown-format\nkeys, but they also fire on benign high-entropy strings: UUIDs, git SHAs, digests,\nobject ids, and slugs. `refineConfidence` runs a small learned classifier over\neach match to tell real secrets from look-alikes, then nudges the confidence\nscore. Pair it with `minConfidence` to drop the noise.\n\n```js\nconst noisy = 'id 9fceb02d0ae598e95dc970b74767f19372d61af8 tok Zx9Kq2Lm7Pv4Rt6Wy8Bn3Cf5Hj1Dg0As7Uv';\n\nscan(noisy, { enable: ['high_entropy'] });\n// git SHA and the unknown-format token both flagged at a flat 60%\n\nscan(noisy, { enable: ['high_entropy'], refineConfidence: true, minConfidence: 0.5 });\n// the SHA is gone; the token survives (refined up to 80%)\n```\n\nThe classifier is logistic regression over cheap character features (entropy,\ncharacter-class mix, structure, and nearby labels like `api_key=` or `commit`).\nIt is trained offline by [`scripts/train-confidence-model.mjs`](scripts/train-confidence-model.mjs)\nand shipped as fixed weights, so the runtime stays zero-dependency, synchronous,\nand deterministic: no model download, no native add-on, safe on edge and in the\nbrowser. Only detectors marked `refine` are touched; checksum-validated ones\n(cards, IBANs, national ids) are always left alone.\n\nScore a string yourself from `flare-redact` or the `flare-redact/ml` subpath:\n\n```js\nimport { secretProbability } from 'flare-redact/ml';\n\nsecretProbability('Zx9Kq2Lm7Pv4Rt6Wy8Bn3Cf5Hj1Dg0As7Uv', 'authorization: Bearer …'); // ~1.00\nsecretProbability('9fceb02d0ae598e95dc970b74767f19372d61af8', 'commit …'); // ~0.00\n```\n\n## Build a private chat app\n\nIf you're building a chat interface (over your own local model or any API), a\n**session** is the drop-in layer. One session holds one vault, so a value keeps\nthe same placeholder across every turn: mask the user's message on the way in,\nrestore the model's reply on the way out. It's model-agnostic and synchronous.\nRun `npm run benchmark` on your own target runtime instead of relying on a\nhardware-independent latency claim.\n\n```js\nimport { createSession } from 'flare-redact';\n\nconst session = createSession({ enable: ['pii'] });\n\n// on the way in, the model only ever sees placeholders\nconst prompt = session.redact(userMessage);\nconst reply = await myModel.generate(prompt);\n\n// on the way out, the user sees the real values back\nshow(session.restore(reply));\n```\n\nStreaming? Restore token by token, even when a placeholder is split across chunks:\n\n```js\nconst out = session.stream();\nfor await (const chunk of modelStream) process(out.push(chunk.text));\nprocess(out.flush());\n```\n\n`session.redactMessages([{ role, content }])` masks a whole chat array at once,\nincluding nested tool calls, and `session.reset()` starts a fresh conversation.\nDetected original values stay local while your app keeps a reversible reference.\n\n## Enforce information flow across agent tools\n\nTool-scoped vaults stop one class of attack, but a production agent often needs\nfiner control: a database credential may be valid for `postgres.execute`, yet\nonly in `args.connectionString`, only when it came from configuration, and at\nmost once. **FlareFlow** makes that declassification policy executable outside\nthe model.\n\n```js\nimport { createAgentFlow } from 'flare-redact/agent';\n\nconst flow = createAgentFlow({\n  sinks: {\n    'postgres.execute': {\n      capabilities: [{\n        id: 'database-credential',\n        sources: ['config'],\n        detectors: ['url_credentials'],\n        paths: ['/args/connectionString'],\n        maxUses: 1,\n      }],\n      budget: { maxUniqueValues: 1, maxBytes: 512 },\n    },\n    'http.fetch': { capabilities: [] },\n  },\n});\n\nconst safe = flow.protectForModel('config', {\n  connection: 'postgres://admin:password@db.internal/prod',\n});\n// The model sees [FR_FLOW_<128 random bits>]db.internal/prod, never credentials.\n\n// Resolve names through your own registry. Never trust the model's label.\nconst tool = toolRegistry.resolve(modelCall.name);\nconst localCall = flow.authorizeForSink(tool.id, modelCall.arguments);\nawait tool.execute(localCall);\n```\n\nEvery token carries runtime provenance: source and detector. Authorization also\nchecks the resolved sink, its exact JSON Pointer path, per-capability use count,\nand cumulative sink-wide use, unique-value, and UTF-8 byte budgets. One failed\noccurrence blocks the whole call without restoring anything or consuming a\nbudget. Forged, expired, cross-flow, and object-key tokens fail closed.\n\n`inspectForSink()` preflights without restoring, `snapshot()` returns bounded\nvalue-free audit state, `revokeSource()` invalidates one source, and\n`restoreForApp()` is reserved for the trusted final application boundary. The\nimplementation preserves cyclic/shared graphs, rejects same-flow re-entrancy\nduring audit delivery, and never asks the model whether the flow is safe.\n\nRead the normative [FlareFlow 1 specification](spec/FLAREFLOW.md), run the\n[reproducible 700-attack / 300-utility benchmark](bench/agent-flow-cases.json),\nread the [technical preprint](paper/flareflow-preprint.md), or start the\n[runnable example](examples/flareflow-agent). The benchmark tests exact\nplaceholder restoration; it is deliberately not presented as a general\nprompt-injection benchmark.\n\nThe same operator-owned policy is available through the sidecar's `/v1/flows`\nAPI, with standard-library clients for Python and Go. That makes FlareFlow usable\nfrom any language that can send JSON over HTTP.\n\n### NeMo Guardrails interoperability\n\nNeMo Guardrails IORails validates model-produced tool names and arguments; the\napplication remains responsible for execution. Resolve the validated name\nthrough an application-owned registry and call `authorizeForSink()` immediately\nbefore execution. FlareFlow then adds source, detector, sink, exact JSON path,\nand cumulative-budget checks to the existing tool allowlist and schema checks.\n\nThe [tested, no-network example](examples/nemo-guardrails-flareflow) proves both\nan unauthorized HTTP exfiltration denial and an approved database restoration.\nThe [integration guide](https://flare-collection.github.io/flare-redact/guides/nemo-guardrails-flareflow/)\ndocuments the live application boundary and limitations.\n\nNVIDIA and the NVIDIA logo are trademarks and/or registered trademarks of\nNVIDIA Corporation. NeMo Guardrails is referenced only for interoperability.\nFlare Redact is independent and is not affiliated with, sponsored by, or\nendorsed by NVIDIA.\n\n## Protect tool calls and MCP loops\n\nAn agent loop has two directions: model-produced arguments need their local\nvalues restored before a tool executes, while tool results need new secrets\nmasked before they enter model context. Use a separate vault for each tool or\ntrust domain so a prompt-injected model cannot move one tool's placeholder into\nanother tool's arguments and recover the original:\n\n```js\nimport { createScopedToolBoundary } from 'flare-redact/tool';\n\nconst boundary = createScopedToolBoundary();\n\nconst result = await database.query('select connection_uri from services');\nconst safeResult = boundary.redactForModel('database', result);\nconst modelCall = await model.generateToolCall(safeResult);\n\n// Use a runtime-owned tool/trust-domain name, never a model-supplied scope.\nconst acceptedTool = toolRegistry.resolve(modelCall.name);\nconst localCall = boundary.restoreForTool(acceptedTool.scope, modelCall);\nawait executeTool(localCall);\n```\n\nOnly placeholders minted inside `acceptedTool.scope` are restored. Unknown and\ncross-scope placeholders stay opaque. `restoreForApp()` can restore every scope\nonly at the final trusted application boundary, and `reset(scope?)` clears one\nscope or the whole conversation. Scope count is bounded by default.\n\n> **Legacy warning:** `createToolBoundary()` remains backward compatible for a\n> single tool or single trust domain, but `restoreForTool()` restores *any*\n> placeholder known to that boundary. Do not share one legacy boundary across\n> mutually untrusted tools. Prefer `createScopedToolBoundary()` for new agent\n> and MCP integrations.\n\nFor safe logging without reversibility, use `redactToolCall()`,\n`redactToolResult()`, or `redactMcpMessage()` from the same entry point.\n\n## Your own words\n\nDetectors can't know your product codenames, project names, or internal jargon,\nso hand them a list. `terms` catches exactly the words you name (any language,\nlongest match first, word-boundary safe), one-way or reversibly.\n\n```js\n// one-way, with your own replacement text\nredact('Launch Project Zeus with Falcon', {\n  terms: { 'Project Zeus': '[CLASSIFIED]', 'Falcon': '[CLASSIFIED]' },\n});\n// → 'Launch [CLASSIFIED] with [CLASSIFIED]'\n\n// reversible: send to a model, get it back\nconst vault = createVault({ terms: ['Project Zeus'] });\nconst safe = vault.redact('ship Project Zeus');   // 'ship [FR_CUSTOM_TERM_a17c…]'\nvault.restore(safe);                               // 'ship Project Zeus'\n```\n\nThe same works from the CLI, including a full round-trip: mask, send the safe\ntext anywhere, then restore what comes back:\n\n```bash\n# add words inline or from a file, and write an encrypted vault\nexport FLARE_REDACT_VAULT_PASSWORD='read-this-from-your-secret-manager'\nflare-redact --term \"Project Zeus\" --terms codenames.txt --vault map.json < in > safe\n\n# later, restore the originals from that map\nflare-redact --restore map.json < safe > original\n```\n\n## See what leaks, and why\n\n`scan()` finds secrets without changing the input, explains every hit in plain\nEnglish, and reports one-based line/column locations, without returning the raw\nsecret by default.\n\n```js\nimport { scan } from 'flare-redact';\n\nscan('deploy with password=hunter2 and AKIAIOSFODNN7EXAMPLE');\n// →\n// [\n//   { detector: 'generic_assignment', label: 'Assigned secret',\n//     why: 'A value assigned to a sensitive-looking field name…', start: 12, … },\n//   { detector: 'aws_access_key', label: 'AWS access key ID',\n//     why: 'Pairs with a secret key to control cloud resources and billing.', start: 33, … },\n// ]\n```\n\nTrusted diagnostics can request the original span with\n`scan(input, { includeValues: true })`. Never enable that option for logs, CI\nreports, analytics, or error tracking.\n\nNeed just the shape of it?\n\n```js\nimport { isClean, summary } from 'flare-redact';\n\nisClean(payload);   // → false\nsummary(payload);   // → { total: 3, byDetector: { email: 1, github_token: 1, sensitive_key: 1 } }\n```\n\n## Guard your logger in one line\n\n`wrapConsole` patches `console.*` so every argument is redacted on the way out,\nand hands you a function to undo it.\n\n```js\nimport { wrapConsole } from 'flare-redact';\n\nconst restore = wrapConsole();\nconsole.log('session', { user: 'bob@x.io', token: 'ghp_…' });\n// session { user: 'b***@***', token: 'ghp_***' }\nrestore();\n```\n\nOr with no code change at all: `node --import flare-redact/register app.js`\n(see [No code change at all](#no-code-change-at-all)).\n\nPrefer to be explicit? Bind your options once and reuse it:\n\n```js\nimport { createRedactor } from 'flare-redact';\n\nconst safe = createRedactor({ enable: ['high_entropy'] });\nlogger.info(safe.redact({ event: 'checkout', user }));\n```\n\n## One policy, everywhere\n\nDefine what \"sensitive\" means once, and apply it at every layer: your app, your\nlogger, your HTTP boundary, your LLM calls. Every adapter takes the same options\nobject, so a secret is masked the same way across the whole system.\n\n```js\nimport { definePolicy } from 'flare-redact';\nconst policy = { enable: ['high_entropy'], allow: ['status@acme.com'] };\n```\n\n**pino**: reads the values, not a list of field paths you have to maintain:\n\n```js\nimport pino from 'pino';\nimport { pinoRedact } from 'flare-redact/pino';\n\nconst log = pino(pinoRedact(policy));\nlog.info({ user: 'bob@corp.com' }); // → {\"user\":\"b***@***\"}\n```\n\n**winston**: a format that redacts every field, symbol metadata left intact:\n\n```js\nimport winston from 'winston';\nimport { winstonRedact } from 'flare-redact/winston';\n\nwinston.format.combine(winston.format(winstonRedact(policy))(), winston.format.json());\n```\n\n**HTTP**: a safe-to-log snapshot of a request; the live request is untouched.\nThe URL string, query object, params, headers, and body are all sanitized:\n\n```js\nimport { httpRedactor } from 'flare-redact/http';\n\napp.use(httpRedactor(policy));\napp.use((req, _res, next) => { logger.info(req.redacted()); next(); });\n// Authorization and Cookie headers, and any secret in the body or query, are masked.\n```\n\n**Sentry**: events, breadcrumbs, transactions, spans and Sentry Logs are\nredacted before they are sent:\n\n```js\nimport * as Sentry from '@sentry/node';\nimport { sentryRedact } from 'flare-redact/sentry';\n\nSentry.init({ dsn: process.env.SENTRY_DSN, ...sentryRedact({ preset: 'gdpr' }) });\n```\n\nMessages, exception values, stack-frame variables and source lines, request\ndata, user fields, span names and log messages are redacted; cookies are masked\nwhole, whatever the options and wherever they sit. Sentry's own fields (event, trace, span and debug\nids, release, timestamps, the file and function of each stack frame) are kept\nexactly, so events still group, link to their traces and resolve source maps\neven with `preset: 'strict'`. A field is kept only where Sentry puts it and only\nwhen its value looks like what belongs there, so a field of yours that happens\nto be called `release`, or an email in an exception type, is still redacted.\nAlready have a `beforeSend`? Call `hooks.beforeSend(event)` from it.\n\nSentry 11 streams spans and warns about a `beforeSendTransaction` hook it no\nlonger calls. Leave it out there:\n\n```js\nSentry.init({ dsn, ...sentryRedact({ preset: 'gdpr' }, { traceLifecycle: 'stream' }) });\n```\n\nTwo things Sentry sends pass through no hook, so no hook can redact them: the\nrelease-health session (it carries the user's id and IP address when\n`sendDefaultPii` is on) and the trace header, which carries the name of the root\nspan. Keep personal data out of span names, as Sentry itself advises, and leave\n`sendDefaultPii` off unless you need it.\n\nSame `policy` object flows into `flare-redact/llm`, `wrapConsole`, `createVault`,\nand `redactStream` too.\n\n## Streams\n\nPipe any log stream through it. Secrets may be split across chunks, and bounded\nmultiline PEM private keys are masked as one record. Unterminated private keys\nfail closed instead of leaking their remaining bytes.\n\n```js\nimport { redactStream } from 'flare-redact/stream';\n\nprocess.stdin.pipe(redactStream()).pipe(process.stdout);\n```\n\n## Anonymize a dataset for staging\n\nPoint it at a JSON or CSV dump with `--mode surrogate` and you get deterministic,\ntyped synthetic values. The same input maps the same way in every row under one\nkey, so joins survive without calling the transformation encryption or anonymity.\n\n```bash\nexport FLARE_REDACT_SECRET='read-this-from-your-secret-manager'\nflare-redact --csv --mode surrogate < customers.csv > customers.safe.csv\n```\n\n```\nAlice,alice@corp.com,4242 4242 4242 4242      Alice,user_93a78c61e204@example.invalid,7042 5270 7797 8927\nBob,bob@corp.com,5555 5555 5555 4444     →    Bob,user_441ae72c0901@example.invalid,0888 2706 6232 0274\nAlice,alice@corp.com,4242 4242 4242 4242      Alice,user_93a78c61e204@example.invalid,7042 5270 7797 8927\n```\n\n`redactCsv(text, opts)` is available from `flare-redact/csv` for the same thing\nin code.\n\n## Guard what leaves your app\n\nStop PII from reaching an analytics, telemetry, or webhook endpoint: wrap\n`fetch` and name the hosts you don't trust with the real data. Every other\nrequest goes through untouched, so your real API calls are never altered.\n\n```js\nimport { wrapFetch } from 'flare-redact/fetch';\n\nconst fetch = wrapFetch(globalThis.fetch, { hosts: ['api.segment.io', 'telemetry.vendor.com'] });\n// bodies sent to those hosts are redacted; everything else is left alone\n```\n\n## Fail a build when a secret sneaks in\n\nStop it before the commit exists:\n\n```bash\nnpx flare-redact init --hook   # writes .git/hooks/pre-commit\nflare-redact --staged          # what the hook runs: only the lines being added\n```\n\nA hook that scanned whole files would block every commit touching a file with an\nold finding, and people would learn to skip it. `--staged` reads the staged diff,\nso a commit is stopped only for what it introduces, and each finding points at\nits line in the staged file. Skip the check once with `git commit --no-verify`.\n\nA scan leaves out assignments whose value is plainly code rather than a\nsecret: `token = process.env.TOKEN`, `password = os.getenv(\"DB_PASSWORD\")`,\n`secret = ${SECRET}`, `password: string`, `apiKey = config.apiKey`,\n`token = getToken()`. It does not try to understand code. From the operator to\nthe end of the line there must be exactly one of those forms and nothing else\nbut closing punctuation or a comment. A default value, a second argument, a\nstring, a number, a `.env` style `DB_PASSWORD=value`: the finding stays, so\n`process.env.PASSWORD || \"hunter2\"` and `config.get(\"db.password\")` are both\nreported. `--no-code-filter` turns it off. It applies to `--scan` and\n`--staged` only: `redact()` keeps masking every such assignment, because\nhiding too much in a log is safe and missing a secret is not.\n\nIn CI, `scan` from code, or `--scan` from the CLI (which exits non-zero on a\nhit). File scans report `file:line:column`, while machine-readable JSON and SARIF\nreports never echo the matched secret value:\n\n```yaml\n- uses: actions/checkout@v5\n- uses: actions/setup-node@v5\n  with:\n    node-version: 24\n- name: Scan project text files\n  run: npx --yes --package flare-redact@1.9.0 flare-redact --scan . --exclude package-lock.json\n```\n\nThe scan runs on the GitHub runner, reports safe file and source locations, and\nfails without sending repository contents to an external scanning service. A\ncopy-ready workflow lives in [`examples/github-secret-scan`](examples/github-secret-scan).\nRecursive scans do not follow symlinks and skip binary files, files over 1 MiB,\nand `.git`, `.hg`, `.svn`, `node_modules`, and `vendor` directories by default.\nUse repeatable `--exclude` globs, `--max-file-size`, or\n`--no-default-excludes` to change that policy.\nExclude globs support `*`, `?`, and `**`; a pattern without `/` matches that\nbasename at any depth.\n\n```bash\nflare-redact --scan --format json .env app.log > flare-redact.json\nflare-redact --sarif .env app.log > flare-redact.sarif\n```\n\n## CLI\n\n```bash\nnpm install -g flare-redact\n```\n\n```bash\ntail -f app.log | flare-redact               # stream redacted logs\nFLARE_REDACT_SECRET=… flare-redact --json --mode hash < event.json\nFLARE_REDACT_SECRET=… flare-redact --csv --mode surrogate < dump.csv\nflare-redact --scan config.env               # list findings + why (exit 1 if any)\nflare-redact --scan .                        # recursively scan a project\nflare-redact --scan . --exclude 'test/**' --max-file-size 2mb\nflare-redact --staged                        # only the lines the next commit adds\nflare-redact --scan --format json .env app.log # safe machine-readable report\nflare-redact --sarif .env > results.sarif    # GitHub code-scanning report\nflare-redact --summary --json < event.json   # counts per detector\nflare-redact --enable high_entropy < app.log # also catch unknown-format keys\nflare-redact --scan --min-confidence 0.9 .env  # only high-confidence findings\nflare-redact --enable high_entropy --refine-confidence --min-confidence 0.5 < app.log # drop UUID/SHA noise\nflare-redact --list                          # show every detector\nflare-redact gateway --upstream https://api.openai.com  # run the sidecar proxy\n```\n\n### Ask it\n\nA flag list tells you a flag exists and nothing about when to reach for it, so\nthe CLI explains itself:\n\n```bash\nflare-redact help                # the summary\nflare-redact help topics         # everything it can explain\nflare-redact help modes          # one topic, in depth\nflare-redact help email          # one detector: what it finds, and why\nflare-redact gateway help        # the sidecar's own flags\n```\n\nThe topics are `detectors`, `modes`, `vault`, `scan`, `files`, `gateway`,\n`library`, `sdks`, `env` and `exit-codes`. Any detector id works as a topic too,\nand a name that matches nothing suggests the nearest one rather than just\nfailing.\n\n## What it catches\n\nOn by default:\n\n| Detector | Finds |\n|---|---|\n| `private_key` | PEM private key blocks (RSA/EC/OpenSSH/PGP) |\n| `aws_access_key` | AWS access key IDs (`AKIA…`, `ASIA…`) |\n| `aws_secret_key` | AWS secret access keys in assignments (`aws_secret_access_key=…`, `\"secretAccessKey\": …`) |\n| `github_token` | GitHub PATs and OAuth tokens (`ghp_…`, `github_pat_…`) |\n| `gitlab_token` | GitLab PATs (`glpat-…`) |\n| `slack_token` | Slack tokens (`xoxb-…`) |\n| `stripe_key` | Stripe secret / restricted keys (`sk_live_…`, `rk_…`) |\n| `anthropic_key` | Anthropic API keys (`sk-ant-…`) |\n| `openai_key` | OpenAI API keys (`sk-…`) |\n| `google_api_key` | Google API keys (`AIza…`) |\n| `sendgrid_key` | SendGrid API keys (`SG.…`) |\n| `twilio_key` | Twilio SIDs / keys (`AC…`, `SK…`) |\n| `npm_token` | npm tokens (`npm_…`) |\n| `jwt` | JSON Web Tokens |\n| `bearer_token` | `Authorization: Bearer …` |\n| `basic_auth` | `Authorization: Basic …` |\n| `url_credentials` | passwords inside connection strings |\n| `generic_assignment` | `password=`, `api_key: …`, `secret=…` (any language) |\n| `email` | email addresses |\n| `obfuscated_email` | bracket-obfuscated emails such as `name [at] host [dot] tld` |\n| `credit_card` | card numbers (Luhn-validated) |\n| `iban` | IBANs (mod-97 validated) |\n| `openrouter_key` / `huggingface_token` / `groq_key` / `xai_key` / `perplexity_key` / `replicate_token` | more AI provider keys |\n| `discord_bot_token` / `discord_webhook` / `telegram_bot_token` | chat tokens and webhook URLs |\n| `shopify_token` / `square_token` / `stripe_webhook_secret` | commerce secrets |\n| `digitalocean_token` / `azure_storage_key` / `vault_token` / `databricks_token` | cloud & infra secrets |\n| `sentry_dsn` / `new_relic_key` | observability secrets |\n| `airtable_pat` / `postman_key` / `linear_key` / `figma_token` / `notion_token` | SaaS workspace tokens |\n| `doppler_token` / `supabase_key` / `netlify_token` / `mailgun_key` | platform API keys |\n\nOpt in with `enable`:\n\n| Detector / tag | Finds |\n|---|---|\n| `high_entropy` | long random-looking tokens of *any* format (entropy-based) |\n| `crypto` | Bitcoin & Ethereum addresses, BIP39 seed phrases |\n| `finance` | SWIFT/BIC, US ABA routing numbers |\n| `vehicle` | VINs (checksum-validated) |\n| `network` | IPs, MAC addresses, coordinates, internal URLs |\n| `entities` | people, addresses, phones, personal dates, account numbers, handles, personal URLs and secrets in prose, without a model ([details](#free-text-pii-without-a-model)) |\n| `phone` | E.164 and formatted national numbers (`+90 532 123 45 67`, `(555) 123-4567`, `0532 123 45 67`); digit-count validated, date-safe |\n\nPlus object values whose **key name** is sensitive (`password`, `token`,\n`authorization`, `cookie`, `cvv`, …) are masked regardless of content.\n\n## Multilingual secret vocabulary and IDs\n\nSecrets like API keys and card numbers don't care what language your app is in.\nNeither does this, but the word-based checks do, so words like *password*,\n*secret*, and *token* are recognized as assignments and as object keys in all\n**24 languages** below:\n\n| | | |\n|---|---|---|\n| 🇬🇧 English `password` | 🇨🇳 Chinese `密码` | 🇮🇳 Hindi `पासवर्ड` |\n| 🇪🇸 Spanish `contraseña` | 🇸🇦 Arabic `كلمة المرور` | 🇫🇷 French `mot de passe` |\n| 🇵🇹 Portuguese `senha` | 🇷🇺 Russian `пароль` | 🇯🇵 Japanese `パスワード` |\n| 🇩🇪 German `passwort` | 🇰🇷 Korean `비밀번호` | 🇹🇷 Turkish `şifre` |\n| 🇮🇹 Italian `segreto` | 🇮🇷 Persian `رمز عبور` | 🇵🇱 Polish `hasło` |\n| 🇺🇦 Ukrainian `пароль` | 🇳🇱 Dutch `wachtwoord` | 🇻🇳 Vietnamese `mật khẩu` |\n| 🇮🇩 Indonesian `kata sandi` | 🇹🇭 Thai `รหัสผ่าน` | 🇬🇷 Greek `κωδικός` |\n| 🇮🇱 Hebrew `סיסמה` | 🇦🇿 Azerbaijani `şifrə` | 🇷🇴 Romanian `parolă` |\n\nNational IDs are opt-in and **checksum-validated**, so a random run of digits is\nnever mistaken for one. Enable a whole group or a single country by tag:\n\n```js\nredact(text, { enable: ['pii'] });        // every national ID below\nredact(text, { enable: ['tr', 'de'] });   // just Turkish and German\n```\n\n| Detector | Country | Validated by |\n|---|---|---|\n| `iban` | 🌐 international *(on by default)* | ISO 13616 mod-97 |\n| `tr_tckn` | 🇹🇷 Turkey | TCKN checksum |\n| `de_tax_id` | 🇩🇪 Germany | ISO 7064 mod-11,10 |\n| `es_dni` | 🇪🇸 Spain (DNI/NIE) | control letter mod-23 |\n| `it_codice_fiscale` | 🇮🇹 Italy | odd/even table |\n| `br_cpf` | 🇧🇷 Brazil | two mod-11 digits |\n| `nl_bsn` | 🇳🇱 Netherlands | 11-test |\n| `pl_pesel` | 🇵🇱 Poland | weighted mod-10 |\n| `ca_sin` | 🇨🇦 Canada | Luhn |\n| `us_ssn` | 🇺🇸 United States | issued-range rules |\n| `uk_nhs` | 🇬🇧 United Kingdom (NHS) | weighted mod-11 |\n| `fr_nir` | 🇫🇷 France (NIR) | INSEE mod-97 key |\n| `in_aadhaar` | 🇮🇳 India (Aadhaar) | Verhoeff |\n| `au_tfn` | 🇦🇺 Australia (TFN) | weighted mod-11 |\n| `cn_resident_id` | 🇨🇳 China | ISO 7064 mod-11,2 |\n| `jp_my_number` | 🇯🇵 Japan (My Number) | weighted mod-11 |\n\nEvery algorithm has its own tests against known-valid and known-invalid numbers,\nso enabling them won't turn your logs into a wall of `[REDACTED]`.\n\n## Custom detectors & allowlists\n\nTeach it your own secrets, and tell it what to leave alone:\n\n```js\nredact(text, {\n  custom: [{\n    id: 'internal_ticket',\n    label: 'Internal ticket',\n    why: 'Leaks internal issue-tracker IDs.',\n    pattern: /\\bACME-\\d{4,6}\\b/g,\n    mask: () => '[TICKET]',\n    default: true,\n  }],\n  allow: ['support@acme.com'],        // never redact these exact values\n  redactKeys: ['ssn', 'dob'],         // extra sensitive object keys\n});\n```\n\n## API\n\n```ts\nredact<T>(input: T, opts?): T                 // masked copy, same shape\nredactAsync<T>(input: T, opts?): Promise<T>   // supports async local NER providers\nscan(input, opts?): Finding[]                 // findings + why, input untouched\nscanAsync(input, opts?): Promise<Finding[]>   // supports async local NER providers\nisClean(input, opts?): boolean                // any secrets at all?\nisCleanAsync(input, opts?): Promise<boolean>\nsummary(input, opts?): { total, byDetector, byRisk }\ncompilePolicy(opts)                            // pre-resolved reusable sync + async policy\ncreateRedactor(opts) / definePolicy(opts)      // compatibility names for compilePolicy\nwrapConsole(opts?, console?): () => void      // patch console.*, returns restore\n\ncreateVault(opts?): Vault                      // reversible: redact / restore / entries\nrestore(input, vaultOrMap): T                  // put originals back\nsealVault(vaultOrEntries, password): Promise<SealedVaultV1>\nopenVault(envelope, password): Promise<Array<[placeholder, original]>>\n\n// adapters, each takes the same options object\npinoRedact(opts?)        // 'flare-redact/pino'    → { formatters: { log } }\nwinstonRedact(opts?)     // 'flare-redact/winston' → a format transform\nsentryRedact(opts?)      // 'flare-redact/sentry'  → { beforeSend, beforeSendTransaction, beforeSendSpan, beforeSendLog, beforeBreadcrumb }\nredactSentryEvent(e, opts?) // 'flare-redact/sentry' → one redacted error event or transaction\n// node --import flare-redact/register     → console.* redacted, preset from FLARE_REDACT_PRESET\nredactHttp(req, opts?)   // 'flare-redact/http'    → safe-to-log request snapshot\nredactUrl(url, opts?)    // 'flare-redact/http'    → sanitized absolute/relative URL\nhttpRedactor(opts?)      // 'flare-redact/http'    → Express/Connect middleware\nredactCsv(text, opts?)   // 'flare-redact/csv'     → anonymize a CSV dataset\nwrapFetch(fetch, opts?)  // 'flare-redact/fetch'   → redact egress to named hosts\ncreateRedactionMiddleware(opts?) // 'flare-redact/middleware' → any function/handler\n\n// from 'flare-redact/ml'\nsecretProbability(value, context?): number      // learned secret-vs-look-alike score, 0..1\nextractFeatures(value, context?): number[]      // the raw feature vector\n\n// from 'flare-redact/llm'\nwrapOpenAI(client, opts?)                       // scrub prompts, restore replies (+streaming)\nwrapAnthropic(client, opts?)                    // same for messages.create + system\nredactPrompt(text, opts?): { text, vault }\n\n// from 'flare-redact/tool'\ncreateScopedToolBoundary(opts?)                // scope-safe model ↔ tool/MCP boundary\ncreateToolBoundary(opts?)                      // legacy single-trust-domain boundary\nredactToolCall / redactToolResult / redactMcpMessage\n\n// from 'flare-redact/agent'\ncreateAgentFlow({ policy?, sinks, limits? })    // provenance + path + budget enforcement\nflow.protectForModel(source, value)\nflow.inspectForSink(sink, call)                 // no restoration or budget consumption\nflow.authorizeForSink(sink, call)               // atomic restore or AgentFlowBlockedError\nflow.restoreForApp(value) / revokeSource(source) / snapshot() / reset()\n\n// from 'flare-redact/stream'\nredactStream(opts?): Transform                  // chunk-safe + bounded multiline PEM redaction\n\n// opts\n// {\n//   only?, enable?, disable?, custom?,   // which detectors run\n//   mode?: 'mask' | 'label' | 'hash' | 'pseudonym' | 'surrogate',\n//   transformSecret?, mask?, minConfidence?, refineConfidence?, semanticProvider?, limits?,\n//   includeValues?: boolean,                // scan only; unsafe raw values\n//   redactKeys?: boolean | RegExp | string[],\n//   allow?: RegExp | string[],\n//   terms?: string[] | { term: replacement }, termsCaseSensitive?,\n// }\n\ncreateSession(opts?)      // chat/AI apps: redact in, restore out, streaming, reset\n```\n\n## Why not a field allowlist?\n\nPath-based redactors (like naming fields in a logger config) only hide the fields\nyou *remembered* to name. The leak is always the field you forgot: the free-text\nmessage, the nested third-party payload, the string someone concatenated by hand.\nflare-redact scans the actual values, so it doesn't depend on your memory.\n\nBuilt-in patterns are reviewed for bounded structure, exercised by an\nadversarial runtime suite, and protected by per-string input and finding limits.\nJavaScript RegExp does not provide a formal linear-time guarantee, however, and\narbitrary custom detectors are trusted code. Run the included benchmarks on your\nown runtime instead of treating a badge as a security proof:\n\n```bash\nnpm run benchmark\nnpm run benchmark:adversarial\n```\n\n## Security boundaries\n\n- Detection is best-effort; a clean scan is not proof that data contains no PII.\n- `scan()` omits raw values by default. `includeValues` intentionally puts those\n  secrets back into process memory and must stay out of external reports.\n- `pseudonym` is keyed, deterministic pseudonymization, not NIST FF1 encryption.\n- A vault map is sensitive; persist only the authenticated encrypted envelope.\n- Restoring a placeholder intentionally reveals its original locally. Do not\n  forward restored model output to another untrusted sink automatically.\n- A model-produced tool name is untrusted input. Resolve it to a runtime-owned\n  tool/trust-domain scope before calling `restoreForTool()`.\n- FlareFlow policy, source ids, and sink ids are runtime-owned. A model may carry\n  a token but must never choose the identity or capability used to restore it.\n- FlareFlow controls exact placeholder declassification. It is not a general\n  prompt-injection defense and cannot protect data already shown to the model.\n- The legacy `createToolBoundary()` restores every placeholder in its shared\n  vault. Use `createScopedToolBoundary()` whenever more than one tool or trust\n  domain can receive model-produced arguments.\n- The 24-language badge describes secret-key vocabulary and the cue words of the\n  `entities` recogniser. That recogniser uses rules and name lists, not a trained\n  model: a name with no cue and no list match is missed. Use a local\n  `semanticProvider` when you need model-level recall.\n\nEncrypted vaults do not protect a compromised host or secrets already resident\nin process memory. Deterministic transforms reveal when two inputs are equal.\n\n## License\n\nMIT © Umud Hasanli\n","readmeFilename":"README.md"}