flare-redact weekly downloads statistics
By flare-collection · npm · AI SDKs
Keep secrets and PII out of logs, Sentry, LLM prompts and commits. Reads values, not field names. Zero dependencies.
flare-redact has 11,895 recorded weekly downloads on npm, an increase of 416% over the past 30 days, ranking #1209 of 3,247 tracked listings.
About flare-redact
Someone logs an object, a session token was inside it, and now that token sits
in your log aggregator, your error tracker and an LLM provider's servers.
Redaction by field name only hides the fields you remembered to list.
flare-redact looks at the values themselves, so the AWS key pasted into a
note field and the card number inside a stack trace are masked too.
import { redact } from 'flare-redact';
redact('User alice@corp.com paid with 4242 4242 4242 4242, token ghp_' + 'a'.repeat(36));
// → 'User a***@*** paid with **** **** **** 4242, token ghp_***'
redact({ user: 'bob@corp.com', password: 'hunter2', note: 'my key is AKIAIOSFODNN7EXAMPLE' });
// → { user: 'b***@***', password: '***', note: 'my key is AKIA***' }
Highlights
- 🔍 Reads content, not field names. 155 detectors for API keys, tokens, JWTs, private keys, cards, IBANs, emails and national IDs, checksum-validated wherever a checksum exists.
- ⚡ No code change needed.
node --import flare-redact/register app.jsredacts everythingconsoleprints: log, warn, error, trace, table, dir and the rest. - 🤖 Private LLM calls. Wrap the OpenAI or Anthropic client, or add one middleware to the Vercel AI SDK for every provider: the model sees placeholders, your app gets the real values back, streaming included.
- 🔌 Fits what you already run. pino, winston, Sentry, Express,
fetch, streams, and any SDK through one middleware. - 🚫 Stops leaks before the commit. A pre-commit hook that scans only the lines you add, and a CI scan with SARIF output.
- 🌍 International by default: 24 languages of secret vocabulary and national ID formats.
- 🧭 Keeps your path rules. The
pathssyntax of fast-redact and pino (items[*].card,headers["x-api-key"], plus**.email) andremove, with value detection on top. Switching guide. - 🪶 Zero dependencies. Node 20+, browsers, edge runtimes, Bun and Deno;
importorrequire, and a 34 KB gzippedflare-redact/litefor the browser. - 🐍 Python, Go, Rust, Java and .NET engines that run the same detector spec and pass the same conformance suite.
Quick start
npm install flare-redact
Then pick the way that suits you:
# No code change: everything console prints is redacted
node --import flare-redact/register app.js
# Let it read your package.json and print the lines to paste
npx flare-redact init # openai, @anthropic-ai/sdk, ai, Sentry, pino, winston, express
npx flare-redact init --hook # also stop any commit that adds a secret
npx flare-redact init --ci # also scan every pull request
<p align="center">
<img src="https://raw.githubusercontent.com/flare-collection/flare-redact/main/assets/demo.gif" alt="node app.js prints an email, a password, a GitHub token, a database password and a card number; the same app started with --import flare-redact/register prints them masked" width="760">
</p>
Want more than the defaults? Choose a goal instead of a detector list:
{ preset: 'logs' }, 'llm', 'gdpr' or 'strict' (what each adds).
Where it plugs in
Logs
ORM query logs too: Prisma, Drizzle, TypeORM, Knex and Sequelize hooks from
flare-redact/db mask bound parameters by the column they go into, so the
password in ["ada@example.com", "hunter2"] is caught (details).
import pino from 'pino';
import { pinoRedact } from 'flare-redact/pino';
const log = pino(pinoRedact());
log.info({ user: 'bob@corp.com', token: 'ghp_…' }, 'login');
// {"user":"b***@***","token":"***","msg":"login", …}
```…
Description from the npm listing.
- redact
- redaction
- redactor
- secrets
- secret
- secret-detection
- secret-scanning
- pii
- pii-redaction
- mask
- masking
- data-masking
- sanitize
- sanitization
- scrub
- anonymize
- pseudonymize
- obfuscate
- censor
- log
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm AI SDKs plugins
All 20 flare-redact alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/flare-redact. First seen Nov 19, 2026; last successful collection Dec 6, 2026. See the methodology.