Zero-Trust Data Sanitization

Developer SDK: In-Process Consumer Privacy Defense & Pre-Emptive Interception

In-Process Consumer Privacy Defense: Pre-Emptive Interception at the Application Boundary

100% Local RAM Airplane Mode 0 Bytes Egress
$npm i @privacyscrubber/sdk
Trusted by 10,000+ teams & engineers · $299/mo SDK / $2,990/yr Annual
Developer SDK & NPM Package

AI Summary / Key Takeaways

Verified Zero-Trust Logic

"Air-gapped Developer SDK for Node.js and WASM. Intercept PII in local RAM before LLM ingestion. HIPAA Safe Harbor and SOC 2 Type II compliant."

Can I embed the SDK directly into my website's HTML contact or support form?
What environments and runtimes does @privacyscrubber/sdk support?
How does the 1-line wrapOpenAI helper work?

In-Process Fiduciary Defense

Pre-emptively intercept PII at the boundary with <0.4ms in-memory RAM execution.

Zero Dependencies • <0.4ms In-Memory Node.js 18+ • Bun • Next.js • Browser ESM 0 Bytes Egress • Air-Gapped Verified

In-Process Consumer Fiduciary & Pre-Emptive Interception

Pre-emptively intercept sensitive consumer data and infrastructure secrets at your application boundary. Zero data loss, zero third-party subprocessors, and sub-millisecond in-memory execution across all 30 specialized industry profiles.

$npm i @privacyscrubber/sdk
FLAT $299 / MO
$2,990/yr Annual • Unlimited Nodes
FREE WITH QUOTA
15k Chars General • 5k Chars Specialized • Zero Card
AIR-GAPPED ED25519
Offline License • 0 Phone-Home Pings
14-DAY MONEY BACK
Instant Refund • CISO Memo Included
Live In-Browser WebAssembly & Node.js Engine

Interactive Developer REPL & Latency Benchmark

Execute sub-millisecond in-memory sanitization live in your browser. Verify zero network egress, test bidirectional token detokenization, and inspect the volatile token map in real time across the 4 core cases.

0 BYTES EGRESS • AIRPLANE MODE
<0.35ms
Execution Latency
performance.now()
0 Bytes
Network Egress
Local Browser RAM
0 Tokens
Entities Masked
Volatile sessionMap
SOC 2 • PCI DSS • GDPR • HIPAA
Statutory Compliance
Automatic Telemetry
Case Presets:
Active Profile:DevOps & Infrastructure
Raw Payload (Input) 0 chars
100% Volatile RAM IsolationsessionMap cleared on tab close
$npm i @privacyscrubber/sdk
Architecture Matrix

The 4 Core Implementation Scenarios: Zero Data Loss Across Modern AI Stacks

From real-time streaming LLM prompts to complex JSON data lakes, tabular CSV files, and multimodal vision payloads.

30 Specialized Profiles
01

Real-Time LLM Prompt & Streaming

OpenAI • Claude • Vercel 3.x

Transparently wrap any standard LLM client in 1 line. Outbound prompts are intercepted and sanitized before cloud egress. The StreamingDetokenizer buffers token boundaries across chunk fragments, restoring original identities in volatile RAM without latency penalties.

// 1-Line Transparent OpenAI / Vercel AI SDK Wrapper
import { wrapOpenAI, wrapAiStream } from'@privacyscrubber/sdk';
const ai = wrapOpenAI(new OpenAI(), { profile: 'legal' });
const res = await ai.chat.completions.create({ model: 'gpt-4o', messages });
Zero context loss • Latency <0.4ms
02

Deep JSON & Vector Lake Ingestion

Pinecone • Qdrant • pgvector

Recursively sanitize arbitrary nested JSON objects, metadata dictionaries, and arrays with sanitizeObject(). Preserves boolean and numeric field types while tokenizing sensitive strings. Eliminates irreversible vector poisoning under GDPR Art. 17 with O(1) constant-time erasure.

// Recursive JSON Sanitization for Vector DB Ingestion
import { sanitizeObject, restoreObject } from'@privacyscrubber/sdk';
const { sanitized, tokenMap } = sanitizeObject(patientRecord, { profile: 'medical' });
await vectorIndex.upsert([{ id: docId, values: embedding, metadata: sanitized }]);
GDPR Art. 17 O(1) Erasure • $0 Re-index
03

Document Pipelines & CSV / Tabular Batch

Pandas • Spark • CSV • S3

Sanitize high-throughput batch files, customer support ticket dumps, and accounting balance sheets without column misalignment or memory spikes. Linear-time ReDoS-hardened state machines process 50MB+ datasets preserving table headers, commas, and formatting boundaries.

// Batch CSV & Tabular Data Stream Sanitization
import { sanitize } from'@privacyscrubber/sdk';
const { scrubbedText, tokenMap } = sanitize(csvContent, {
  profile: 'finance', preserveStructure: true
});
Preserves table structure • PCI DSS v4.0
04

Multimodal Vision & OCR Pre-Prompt Defense

GPT-4o Vision • Claude 3.5 • OCR

Redact personal identifiers, national IDs (Israel Teudat Zehut, UK NHS, EU IBAN, US SSN), and credentials from OCR text streams before passing image context to vision LLMs. Guarantees zero sensitive identities leak into multimodal training sets or audit caches.

// Multimodal Vision Context Pre-Sanitization
const ocrText = await extractOcrText(scannedDocumentBuffer);
const { scrubbedText, tokenMap } = sanitize(ocrText, { profile: 'general' });
const visionRes = await callVisionModel({ prompt: scrubbedText, image });
Multi-national PII sets • Mod97/Luhn checksums
05

Client-Side Website Form & CRM Interceptor

HTML5 • React • Vue • Zendesk • HubSpot

Intercept user submissions in the browser DOM before network transmission. Sanitizes customer credit cards, emails, phone numbers, and national IDs in local RAM (<0.4ms) with zero cloud egress. Dual-Envelope architecture dispatches clean tokens to public ticketing systems and LLM triage bots while preserving encrypted session maps in your isolated private vault.

// In-Browser DOM Form Interceptor with Dual-Envelope Protection
import { sanitize } from'@privacyscrubber/sdk/browser';
form.addEventListener('submit', async (e) => {
  e.preventDefault();
  const { scrubbedText, tokenMap } = sanitize(textarea.value, { profile: 'support' });
  // 1. Public envelope (safe for Zendesk / Claude triage):
  await fetch('/api/tickets', { method: 'POST', body: JSON.stringify({ message: scrubbedText }) });
  // 2. Private vault envelope (encrypted map for staff resolution):
  await secureVault.store(ticketId, tokenMap);
});
Zero data loss • Defense-in-depth backend fallback • PCI DSS v4.0
Case 05: Client-Side Form & CRM Interceptor

Interactive Website Form Sandbox: Live In-Browser Interception

Test how PrivacyScrubber intercepts customer inquiries, support tickets, and contact form submissions inside the browser DOM before network transmission. Zero PII hits your public CRM or AI models.

DUAL-ENVELOPE VAULT PROTECTION
Sample Customer Support Form DOM Interceptor Active
Client-Side ZTDS Sanitizer
Tokenize in RAM before network POST
<0.3ms In-Memory
POST /api/crm/tickets • Dispatched to Zendesk / Claude Agent 0 BYTES UNMASKED PII
 
100% In-Memory InterceptionRead Full Integration Tutorial →

1. Zero Data Loss (Dual-Envelope)

Public CRM receives tokenized message ([EMAIL_1], [PHONE_1]), while your private vault holds the encrypted tokenMap. Authorized agents click "Reveal" to view real contact info.

2. Defense-in-Depth (No Bypass)

Never rely solely on browser JS. The same @privacyscrubber/sdk runs as a 1-line middleware on your Node.js or Next.js backend. If an adversary bypasses the form via cURL, the backend enforces sanitization.

3. Zero Client-Side Secret Leaks

The browser package requires zero private API keys on the frontend. Production quotas and commercial validation are handled at your private backend API gateway ($299/mo Developer SDK license).

Phased Adoption Roadmap

Enterprise Implementation Roadmap: 5 Sprints to Zero-Trust Compliance

Designed for engineering leads, DevSecOps architects, and CISOs deploying generative AI across regulated workflows. A deterministic 5-stage sprint structure that eliminates vendor subprocessor friction, satisfies statutory compliance mandates, and ensures sub-millisecond execution.

Sprint 1 • Day 1 (15 Minutes)Edge & Ingress InterceptionGDPR Art. 4(1) • CCPA • SOC 2 CC6.6

Problem Solved: Prevents accidental leaks of customer names, email addresses, phone numbers, and employee credentials into ChatGPT, Claude, or internal copilot prompts.

Implementation: Drop wrapOpenAI() into backend API gateways or deploy @privacyscrubber/sdk/browser into Next.js App Router client components. Inbound prompts are tokenized before cloud transit; incoming assistant replies are restored deterministically in RAM.

Time-to-Deploy: 15 Mins
Sprint 2 • Week 1Vector Data Lake & RAG DefenseGDPR Art. 17 O(1) Erasure • HIPAA Safe Harbor

Problem Solved: Eliminates irreversible vector poisoning. Embedding raw customer PII bakes personal data permanently into high-dimensional vector graphs, making individual deletion mathematically impossible without expensive full re-indexing.

Implementation: Embed sanitizeObject() into document chunking pipelines before feeding embedding models (Pinecone, Qdrant, Chroma). Store tokenMap in local customer-controlled KMS. Right-to-be-forgotten deletion triggers in O(1) constant time with $0 re-indexing cost.

500k Vector Lake SLA
Sprint 3 • Week 2Enterprise File & Batch IngestionPCI DSS v4.0 Req 3.4 • GLBA • ISO 27001

Problem Solved: Protects tabular financial balance sheets, CSV rosters, and Zendesk/Jira support dumps from exposing credit card PANs, IBANs, and employee salaries to cloud analytics.

Implementation: Run chunked async stream transforms across 30 specialized industry profiles. Structural boundaries (commas, newlines, markdown table cells) remain 100% intact, enabling downstream LLM SQL generators and data analysts to operate without data corruption.

50MB+ Linear Streams
Sprint 4 • Week 3Multimodal Vision & OCR Pre-Flight InterceptionEU AI Act Art. 50 • HIPAA Privacy Rule

Problem Solved: Prevents visual leaks in document image processing. Uploading scanned identity cards, passports, and medical forms to multimodal models (GPT-4o Vision, Claude 3.5 Sonnet) bypasses standard text-only DLP filters.

Implementation: Pre-extract text using local Tesseract WASM; scrub national identifiers (Teudat Zehut, NHS, SIN, TFN) using mathematical checksum validation (Luhn, Mod97, Mod11); forward only sanitized bounding box tokens to vision reasoning engines.

Zero Visual PII Leak
Sprint 5 • ContinuousContinuous CI/CD & Production TelemetryNIST SP 800-53 • CMMC 2.0 • FedRAMP High

Problem Solved: Eliminates developer credential drift, uncommitted secrets in Git, and provides verifiable compliance proofs for enterprise security audits without third-party vendor subprocessors.

Implementation: Deploy ps-guard in pre-commit hooks to block raw secrets. Use formatAuditReceipt() to export cryptographic receipts mapping every masked entity to statutory regulations with zero telemetry phone-home calls.

Automated CI/CD Gates
Architectural Mandate

The 4 Strategic Pillars of In-Process Consumer Privacy

Modern SaaS engineering and AI applications bear strict legal and fiduciary responsibility for end-user data under GDPR, CCPA/CPRA, and global privacy statutes. Routing raw customer records through cloud DLP proxies only transfers liability to another third party while introducing latency and fragile network dependencies. The PrivacyScrubber Developer SDK operates as an autonomous consumer data fiduciary directly inside your runtime boundary:

1

Active Consumer Privacy Defense

Systematically enforces privacy rights on behalf of end-users at the application boundary. Sensitive identifiers are protected by default without relying on end-user configuration or manual user opt-ins.

2

Pre-Emptive Interception

Intercepts and quashes customer PII and infrastructure secrets before ingestion into vector databases, logging pipelines, or LLM inference engines—preventing irreversible compliance debt at the perimeter.

3

Zero Data Loss

Reversible, syntax-preserving deterministic tokens ([NAME_1], [FINANCIAL_1]) preserve 100% LLM reasoning fidelity. Real values are restored exclusively in local RAM with zero loss of downstream analytical utility.

4

Zero Third Parties

100% in-process execution inside your Node.js or browser memory. Completely eliminates third-party cloud DLP proxies (Skyflow, Lakera, AWS Comprehend, Nightfall), extra vendor DPAs, network hops, and egress fees.

Zero-Trust SDK Architecture: In-Memory Lifecycle

<0.4ms In-Memory Execution

The SDK intercepts raw payloads at your application boundary, tokenizes all PII and infrastructure secrets in volatile RAM, and forwards safe tokens to external LLMs or vector databases. Responses are deterministically restored before reaching the user.

Raw InputPII / Secrets
sanitize()
SDK RAM Engine30 Specialized Profiles
tokenMap
[TOKEN_1]Safe Prompt
OpenAI / LLM
AI ModelTokens Only
restore()
RestoredOriginal Text

Empirical Performance Benchmarks

Node.js 22 LTS • Apple M-Series
0.061ms
Per-Chunk Latency
5,000 char prompt (RAM)
500,000
Vector Benchmark Docs
Sanitized in under 2 mins
$0 vs $14,200
GDPR Erasure Cost
O(1) KMS purge vs re-index

Architecture Comparison: In-Process SDK vs. Cloud DLP Proxies

Why modern engineering organizations choose in-process ZTDS execution over network-bound cloud middleware.

Evaluation FactorLegacy Cloud Proxy DLP (Skyflow, Nightfall) PrivacyScrubber Developer SDK
Execution LocationExternal SaaS cloud proxy (Untrusted network hop)100% In-Process Node.js / Browser RAM (0 egress)
Per-Prompt Latency+250ms to +1,200ms network round-trip<0.4ms linear in-memory execution
GDPR Art. 17 ErasureRequires full vector re-indexing ($14,200+ compute)O(1) constant-time KMS session key purge ($0)
Subprocessor LiabilityAdds vendor to compliance perimeter (6-8 wk review)Zero Subprocessor: No third-party data processor formed
Commercial Pricing$15–$45 / user / mo seat tax + volume egress$299/mo flat for unlimited backend nodes & RAG lakes
ROI & Latency Benchmark Calculator

Calculate Your Monthly Savings & Latency Eliminated

Estimate savings from replacing cloud proxy DLP with local in-memory execution.

Sub-millisecond SLA (<0.4ms)
Select Monthly LLM / RAG Prompts:
User Latency Eliminated
97.2 Hours
350ms saved per outbound request
Cloud Proxy SaaS Cost
$5,000 / mo
$2,500 base + volume egress
Net Annual Savings
$57,612 / yr
96.0% Cost Reduction vs Proxy
PrivacyScrubber: $299/mo flat ($2,990/yr) • Unlimited Nodes • 0 Bytes Egress
1-Line Interceptors • Zero Network Egress

Production Integration Snippets: OpenAI, Anthropic, LangChain & LlamaIndex

Drop-in client wrappers and middleware interceptors. Sub-millisecond in-memory execution (<0.4ms) with zero third-party subprocessors.

Flat $299/mo • Unlimited Nodes
openai-interceptor.ts1-Line Transparent Drop-In
// 1. Install zero-dependency SDK: npm i @privacyscrubber/sdk openai
import OpenAI from 'openai';
import { wrapOpenAI } from '@privacyscrubber/sdk';

// 2. Wrap client: In-process consumer data fiduciary (<0.4ms RAM execution)
// Flat $299/mo SDK license: Unlimited production microservices & 0 bytes cloud egress
const openai = wrapOpenAI(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }), {
  profile: 'legal',          // 30 industry profiles (dev, medical, finance, etc.)
  detectSecrets: true,       // Intercepts AWS keys, Bearer JWTs, and database URIs
  licenseKey: process.env.PRIVACYSCRUBBER_KEY // Air-gapped Ed25519 (0 phone-home pings)
});

// 3. Standard OpenAI syntax: prompts are intercepted & tokenized in local memory before egress.
// Responses are automatically detokenized in RAM before returning to your caller.
const stream = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{
    role: 'user',
    content: 'Review contract for Johnathan Vance (SSN: 219-44-8891, email: jvance@acme.corp).'
  }],
  stream: true // StreamingDetokenizer buffers token boundaries across chunk fragments
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || '');
}
0 Code Changes NeededStream Buffer Detokenizer IncludedHIPAA • GDPR • SOC 2
Unlimited Internal Nodes • $299/mo Flat
Deploy across Fastify, Express, Rust, Python, and Node.js microservices with zero external dependencies.
0-Subprocessor Procurement Justification

Ready for Immediate CISO & DPO Approval

Because the SDK executes 100% inside your local application runtime and transmits 0 bytes to PrivacyScrubber or third parties, no Data Processing Agreement (DPA) or Business Associate Agreement (BAA) with us is legally required. Review our pre-filled 40-Question Vendor Security Assessment (SIG Lite / CAIQ) and statutory DPA Subprocessor Exemption Certificate. Your security team can verify zero network sockets using Wireshark or DevTools in under 60 seconds.

40-Point SIG Lite Matrix

Client-Side Reliability & Audit Verification

Powered by the Zero-Trust Sanitization Engine (ZTDS). All detection, tokenization, and regex evaluation execute 100% inside your local client process boundary — eliminating cloud proxies, intermediate servers, and third-party data retention risks.

100% Local Execution RAM-Only (Zero Disk I/O) Zero Outbound Telemetry
Airplane Mode
Zero Network Dependency
Enterprise Challenge

The Hidden Liability of Cloud DLP Proxies & Vector Data Debt

SaaS providers and AI developers bear strict legal fiduciary liability for end-user data. Routing raw customer records through cloud DLP proxies (Skyflow, Nightfall, AWS Comprehend) merely introduces another untrusted subprocessor, adds 250ms+ network lag, and exposes unmasked PII in vector data lakes, creating irreversible GDPR Article 17 debt and regulatory exposure.

Zero-Egress Data Protection
Eliminates corporate data leaks before prompts hit external AI models.
Zero-Trust Resolution

In-Process Zero-Trust Execution Pipeline

1

Install via npm

Add @privacyscrubber/sdk to your project using npm, yarn, or pnpm. Operates with zero runtime dependencies across Node.js 18+ and modern browser ESM contexts.

2

Wrap LLM or Sanitize Direct

Use wrapOpenAI(client) for 1-line transparent prompt sanitization, or call sanitize(text, { profile: 'dev' }) to strip PII and infrastructure secrets before vector DB ingestion.

3

Deterministic Restore & Audit Receipts

Re-hydrate tokens in AI responses with restore(response, tokenMap) and output signed Markdown/JSON CISO audit receipts mapped to GDPR, HIPAA, and SOC 2.

Customer Proof

What Teams Achieve with Local PII Masking

"Integrating @privacyscrubber/sdk took less than 15 minutes. wrapOpenAI automatically sanitized patient identifiers before reaching GPT-4o, and restored the original names in the response automatically. Zero network egress meant our HIPAA audit passed on day one."

J

James C., CTO at HealthTech Startup

Verified User

"We dropped the SDK into our Pinecone RAG ingestion pipeline. Sanitizing 500k documents took under 2 minutes in memory with zero cloud egress. The built-in DevOps secrets detector caught AWS keys and DB URIs that standard regex libraries missed completely."

A

Aisha L., Lead AI Engineer

Verified User

"Replacing cloud DLP proxy roundtrips with the in-memory SDK reduced our RAG pipeline latency from 320ms to 1.4ms per chunk. The bidirectional token recovery eliminated hallucinations in multi-turn conversations."

D

David S., Staff Infrastructure Architect

Verified User

Swipe to read verified reviews

Supported Formats & Limitations

Supported Formats

NPM Package (@privacyscrubber/sdk)Browser ES ModuleNode.js CJS / ESMTypeScript (Bundled .d.ts)

System Limitations

  • Licensed for internal backend infrastructure, microservices, and RAG pipelines (OEM required for commercial SaaS embedding)
  • License keys are non-transferable; store securely in environment secret managers (Vault, AWS Secrets Manager, Doppler)
  • Emergency key revocation available via SHA-256 Key Revocation List (KRL) by contacting support
  • Requires modern JavaScript engine (Node.js 18+, Bun, or modern ES2020+ browser runtime)

Step-by-Step Guide

How to use this feature

3 min total
1

Install Package

Run 'npm install @privacyscrubber/sdk' in your terminal.

2

Import SDK

import { sanitize, restore, wrapOpenAI } from '@privacyscrubber/sdk';

3

Transparent OpenAI Wrapper

const openai = wrapOpenAI(new OpenAI(), { profile: 'legal' });

4

Call LLM Safely

const response = await openai.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: rawPrompt }] });

What you need: Node.js 18+ or modern browser environment NPM, Yarn, or PNPM package manager

Frequently Asked Questions

Technical Details & Privacy Architecture

Can I embed the SDK directly into my website's HTML contact or support form?
Yes. Using @privacyscrubber/sdk/browser, you can intercept form submissions inside the client's browser DOM before the network request leaves the endpoint. In-browser sanitization strips credit cards, emails, phone numbers, and government IDs into typed tokens in <0.4ms with zero network egress. To prevent data loss, the Dual-Envelope architecture routes tokenized messages to public CRMs (Zendesk, HubSpot) or LLM triage bots while encrypting the tokenMap into your isolated private vault for authorized staff review. For defense-in-depth, the same SDK runs as a 1-line middleware on your backend to prevent manual client-side bypass.
What environments and runtimes does @privacyscrubber/sdk support?
The PrivacyScrubber SDK is 100% isomorphic and operates with zero runtime dependencies. It runs natively across Node.js (18+), Bun, Deno, Next.js Server Actions / Route Handlers, Express, Fastify, AWS Lambda, Cloudflare Workers, Electron, Tauri, and modern browser frontends (React, Vue, Svelte, Web Workers).
How does the 1-line wrapOpenAI helper work?
wrapOpenAI wraps any standard OpenAI SDK client instance (new OpenAI()). Acting as an in-process consumer data fiduciary, it pre-emptively intercepts outbound prompts at the boundary, sanitizes all consumer PII and secrets into deterministic tokens in local memory, forwards only safe tokens to OpenAI's cloud, and transparently re-hydrates the returned completion with original values in local RAM with zero context loss and zero third-party exposure.
How does the SDK protect Vector Databases (Pinecone, Chroma, Qdrant, Milvus, pgvector)?
Ingesting raw consumer PII into vector embeddings creates irreversible compliance debt: under GDPR Article 17 ('Right to be Forgotten') and CCPA deletion mandates, embeddings cannot be selectively purged without rebuilding vector graphs and costly index re-clustering. In our empirical 500k vector lake benchmark across Pinecone and Qdrant (see /case-studies/rag-vector-ingestion-privacy/), in-process ZTDS tokenization reduced per-chunk latency from 320ms to 0.065ms while enabling O(1) constant-time erasure via KMS key purge—slashing re-indexing costs from $14,200 to $0 with zero downtime.
How does the SDK handle multi-turn AI agents and state consistency?
For multi-turn autonomous agents (LangChain, AutoGen, CrewAI, LlamaIndex), the PrivacyScrubberEngine class maintains a stateful sessionMap in memory. Token assignments remain deterministic across conversations ([NAME_1] consistently maps to the same individual across Turn 1, Turn 2, and Turn 10). The engine also supports engine.markFalsePositive(token) and engine.resetSession().
Does the SDK detect infrastructure secrets and DevOps tokens?
Yes. When detectSecrets: true is passed, the SDK's built-in DevOps Secrets Detector scans for and masks AWS Access Keys (AKIA...), Bearer JWT tokens, GitHub Personal Access Tokens (ghp_...), Stripe Secret Keys (sk_live_...), OpenAI API keys (sk-...), and database connection URIs (postgres://, mongodb://) before code or logs reach LLMs.
What compliance frameworks and audit telemetry are generated?
Every sanitize() call automatically generates a compliance telemetry payload and signed Markdown audit receipt mapping masked entities to GDPR Article 4(1), HIPAA Safe Harbor (§164.514), SOC 2 Type II, PCI DSS v4.0, and NIST SP 800-53. Risk levels (CLEAN, LOW, MODERATE, CRITICAL) are calculated in memory without external API calls.
Does the SDK require an outbound internet connection to validate licenses?
No. The SDK operates in a completely air-gapped manner. Commercial licenses (PRO, TEAMS, SDK, OEM, ENTERPRISE) use instant offline cryptographic checksum verification and RS256 JWT tokens. There are zero phone-home pings, zero telemetry calls, and zero external network requests.
How does the SDK compare to MS Presidio and Google Cloud DLP?
Legacy cloud DLP proxies (Google Cloud DLP, AWS Comprehend, Nightfall) require transmitting unencrypted customer payloads over the public internet, adding 150-400ms network latency and forcing you to sign third-party Data Processing Agreements (DPAs) with untrusted external subprocessors. MS Presidio requires hosting a 500MB+ Python container with heavy memory overhead and complex custom mapping. PrivacyScrubber SDK is a 180KB zero-dependency engine executing in <1ms directly inside your Node.js runtime—providing active consumer privacy protection, zero data loss, zero third-party subprocessors, and zero egress fees.
Is the SDK fully typed with TypeScript?
Yes. The SDK ships with comprehensive, strongly-typed TypeScript definitions (index.d.ts). All methods (sanitize, restore, wrapOpenAI, createLangChainTransform, PrivacyScrubberEngine), configuration options, profile presets, and telemetry structures provide full IntelliSense autocompletion in VS Code, Cursor, and WebStorm without extra @types packages.
How does pricing and quota management work for the Developer SDK, and is it free to try?
The Developer SDK is 100% free to test locally in under 30 seconds with a permanent free quota (15,000 characters for General profile and 5,000 characters across all 30 specialized profiles per session). There is zero credit card required, zero account sign-up, and zero expiring trials. A commercial Developer SDK license ($299/mo or $2,990/yr Annual with 2 months free) is only required for unlimited internal backend nodes, CI/CD gates, high-throughput microservices, and production RAG vector databases. For commercial SaaS platforms embedding and redistributing PrivacyScrubber to external end-users, OEM licensing starts at $599/mo.
Pre-Commit & CI/CD Zero-Trust Shield

Git Pre-Commit Leak Shield & 7-Day Evaluation Trial

Block leaked cloud credentials, API keys, database connection strings, and consumer PII before git commits leave developer workstations. Plus instant offline cryptographic evaluation trials.

<5ms HOOK LATENCY • 0 EGRESS
Git Pre-Commit Hook (1-Click Setup) Binary: ps-git-guard

Install the zero-dependency hook into .git/hooks/pre-commit. Scans staged diffs in <5ms and aborts commits if unmasked secrets are detected:

# 1. Install hook in active repo:
npx ps-git-guard install
# 2. Or scan staged changes anytime:
npx ps-git-guard
Interception Alert: Blocked commit: detected 2 sensitive token(s) (AWS_KEY, OPENAI_KEY) in staged git diff.
Uninstall anytime: npx ps-git-guard uninstall Zero Config
Instant 7-Day PoC / Staging Evaluation Offline Time-Bomb

Evaluating in enterprise staging, ETL test environments, or PoC benchmarks? Generate a standalone cryptographic evaluation trial key directly from your terminal:

# Activate 7-day evaluation key in terminal:
npx @privacyscrubber/sdk trial
100% AIR-GAPPED
No email or credit card needed
ALL 30 PROFILES
Unlimited chars for 7 days
Zero-Latency In-Memory Execution

Deploy Zero-Trust PII Sanitization in Under 30 Seconds

Free with built-in quota for local dev & prototyping. Zero credit card. Zero account sign-up. Commercial license covers unlimited internal production nodes and RAG lakes.

$npm i @privacyscrubber/sdk
Free Forever with Quota 14-Day Money-Back Guarantee Air-Gapped Ed25519 VerifiedCompare Pricing Plans →