JSON OS Redact — VS Code ExtensionA zero-network, client-side VS Code extension companion to JSON OS and its sibling Chrome extension. JSON OS Redact prevents accidental leakage of API keys, passwords, customer PII, credit cards, prices, and secrets while coding or preparing code/JSON to paste into AI models (ChatGPT, Claude, Gemini, Copilot).
⚡ Key Features1. Live Warning Diagnostics & Status Bar
2. One-Click Quick Fixes (
|
| Category | Patterns & Examples Detected | Default |
|---|---|---|
| API Keys & Secrets | OpenAI (sk-...), AWS (AKIA...), GitHub tokens, Slack webhooks, Stripe keys, JWT tokens, generic password: "...", secret: "...", token: "..." |
true |
| Prices & Currency | $100, $99.99, Rs. 1000, €49.00, ₹50,000, £250, ¥1000 |
true |
| Email Addresses | Standard and complex emails (user@company.com, john.doe+tag@domain.co.uk) |
true |
| Credit Cards | Visa, MasterCard, Amex, Discover (13–19 digits with Luhn checksum validation) | true |
| IPv4 Addresses | Public and internal IPv4 addresses (192.168.1.1, 10.0.0.1) |
true |
| Web URLs | Endpoints, API URLs, webhook addresses (https://api.domain.com/v1/...) |
true |
| Names & Authors | Key-value name assignments (name: "John Doe", author: "Alice") |
false |
| Phone Numbers | International and US phone formats (disabled by default to prevent log false positives) | false |
⚙️ Configuration Settings
Access settings via Preferences: Open User Settings (Cmd+, / Ctrl+,) and search for jsonosRedact:
| Setting | Type | Default | Description |
|---|---|---|---|
jsonosRedact.mode |
string |
"redact" |
Redaction style: "redact" ([EMAIL]), "mask" (u***@dom.com), or "hash" (SHA-256) |
jsonosRedact.liveSuggestions |
boolean |
true |
Enable live warning squiggles while typing |
jsonosRedact.redactAllValues |
boolean |
false |
JSON files: Treat every value as sensitive regardless of key/pattern |
jsonosRedact.maskSecrets |
boolean |
true |
Detect passwords, API keys, JWTs, and token assignments |
jsonosRedact.maskPrices |
boolean |
true |
Detect prices and currency amounts |
jsonosRedact.maskEmails |
boolean |
true |
Detect email addresses |
jsonosRedact.maskCards |
boolean |
true |
Detect credit card numbers |
jsonosRedact.maskIps |
boolean |
true |
Detect IPv4 addresses |
jsonosRedact.maskUrls |
boolean |
true |
Detect web URLs and endpoints |
jsonosRedact.maskPhones |
boolean |
false |
Detect mobile/phone numbers |
jsonosRedact.maskNames |
boolean |
false |
Detect key-value name assignments |
jsonosRedact.excludeGlobs |
array |
[...] |
Excluded file patterns (node_modules, .git, dist, build, etc.) |
⌨️ Commands Reference
Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) to run:
JSON OS Redact: Redact Current File— Scan active file with side-by-side diff preview.JSON OS Redact: Redact ALL Values in Current File— Sanitize all payload values in current file.JSON OS Redact: Redact Selection— Sanitize currently selected text.JSON OS Redact: Redact Project...— Batch scan workspace with interactive webview report.
🌐 Ecosystem
- Web Workbench: jsonos.online — Free, browser-based JSON schema validator, formatter, repair, diff, and query workbench.
- Source Code & Issues: GitHub Repository
- License: MIT