@privacyscrubber/sdk 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # PrivacyScrubber Developer SDK License Agreement
2
+
3
+ **Copyright (c) 2026 Ilya Sibiryakov (BrandMeWeb). All Rights Reserved.**
4
+
5
+ ### 1. Grant of License — Community / Development Tier
6
+ Subject to the terms and conditions of this Agreement, BrandMeWeb grants you a personal, non-exclusive, non-transferable license to install and use the PrivacyScrubber Developer SDK (`@privacyscrubber/sdk`) for local software development, evaluation, and test suites under published Free Tier quotas (15,000 characters baseline / 5,000 characters specialized profiles).
7
+
8
+ ### 2. Commercial & Enterprise Production Deployment
9
+ Deploying this SDK in production servers, cloud microservices, customer-facing applications, RAG pipelines, or autonomous AI agent clusters beyond Free Tier quotas requires a valid commercial license:
10
+ - **Developer Pro**: Up to 5 backend microservice nodes ($199/mo or $1,990/yr).
11
+ - **Enterprise Air-Gapped**: Up to 5 production nodes, AWS Nitro Enclaves / SCIF offline deployment, full 30 Specialized Industry Profiles, SOC 2 Evidence Binder ($12,000/yr).
12
+
13
+ Licensing and key activation: https://privacyscrubber.com/pricing
14
+
15
+ ### 3. Intellectual Property & Prohibited Uses
16
+ The proprietary finite-state machines, entity resolution algorithms, and 30 specialized industry regex taxonomies constitute confidential trade secrets and intellectual property of BrandMeWeb:
17
+ - You may not reverse-engineer, decompile, or harvest the pattern taxonomy to build competing products or train AI models.
18
+ - Standalone redistribution of the core engine outside authorized SDK wrapper dependencies is strictly prohibited.
19
+
20
+ ### 4. Disclaimer of Warranties
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -9,10 +9,19 @@
9
9
  [![Patent Pending](https://img.shields.io/badge/Patent-Pending%20(ILPO%20331905)-06b6d4.svg)](https://privacyscrubber.com/patents/)
10
10
  [![GitHub Stars](https://img.shields.io/github/stars/moxno/privacyscrubber-mcp?style=social)](https://github.com/moxno/privacyscrubber-mcp)
11
11
 
12
- > **Zero-Trust Data Sanitization (ZTDS) & PII Redaction Engine**
13
- > 100% In-Memory Execution. Zero Remote Network Calls. Zero Disk Writes. Sub-millisecond Latency.
12
+ > **In-Process Consumer Privacy Defense & Pre-Emptive Interception Engine**
13
+ > 100% In-Memory Execution. Zero Third-Party Subprocessors. Zero Data Loss. Sub-Millisecond Latency.
14
14
 
15
- The official Node.js / TypeScript programmatic SDK for [PrivacyScrubber.com](https://privacyscrubber.com). Provides enterprise-grade PII sanitization, cloud secrets detection, compliance audit receipts, and deterministic token restoration for AI pipelines (OpenAI, Anthropic, LangChain, LlamaIndex, RAG vector stores).
15
+ The official Node.js / TypeScript programmatic SDK for [PrivacyScrubber.com](https://privacyscrubber.com). Acting as an autonomous in-process consumer data fiduciary, `@privacyscrubber/sdk` intercepts and neutralizes consumer PII and infrastructure secrets at your application boundary before transmission to external AI models or persistent storage—enforcing GDPR, CCPA/CPRA, and HIPAA Safe Harbor compliance without introducing third-party subprocessors or sacrificing LLM reasoning fidelity.
16
+
17
+ ---
18
+
19
+ ## 🏛️ The 4 Strategic Pillars of In-Process Privacy
20
+
21
+ 1. **Active Consumer Privacy Defense (Fiduciary)**: Act systematically on behalf of end-users at the application boundary, protecting their statutory rights (GDPR, CCPA, State Privacy Acts) automatically without requiring end-user intervention.
22
+ 2. **Pre-Emptive Interception**: Quash sensitive customer identifiers and cloud credentials *before* ingestion, vector embedding, or LLM inference, preventing permanent data leaks at the perimeter.
23
+ 3. **Zero Data Loss**: Syntax-preserving deterministic tokenization (`[NAME_1]`, `[EMAIL_1]`, `[FINANCIAL_1]`) retains 100% semantic context for LLMs, with instant in-memory detokenization (`restore()`) in local RAM.
24
+ 4. **Zero Third Parties**: Pure in-process execution inside your Node.js runtime. Completely eliminates external DLP proxies (Skyflow, Nightfall, Lakera, AWS Comprehend), DPA renegotiations, and third-party data egress liability.
16
25
 
17
26
  ---
18
27
 
@@ -22,9 +31,10 @@ The official Node.js / TypeScript programmatic SDK for [PrivacyScrubber.com](htt
22
31
  | :--- | :--- | :--- | :--- | :--- |
23
32
  | **Execution Model** | **Local In-Memory (<1ms)** | Self-hosted Python (~35ms) | Cloud API Proxy (180–400ms) | Cloud API Proxy (200–500ms) |
24
33
  | **Network Egress** | **0 Bytes (Air-gapped)** | 0 Bytes (Internal hop) | Full unencrypted payload | Full unencrypted payload |
34
+ | **Third-Party Subprocessors** | **0 (Zero DPA / Vendor Risk)** | 0 (Self-managed compute) | +1 Subprocessor (Google) | +1 Subprocessor (AWS) |
35
+ | **Context & Data Loss** | **0 Loss (Reversible in RAM)** | High (Manual vault needed) | High (Lossy masking / hash) | High (Lossy masking) |
25
36
  | **Runtime Footprint** | **~150KB (0 dependencies)** | ~500MB (Python + spaCy) | Cloud SDK | Cloud SDK |
26
37
  | **OpenAI 1-Line Drop-in** | **Yes (`wrapOpenAI`)** | Custom wrapper required | Custom pipeline | Custom pipeline |
27
- | **Deterministic Reverse** | **Built-in (`restore`)** | Manual token map logic | Manual vault mapping | Manual token mapping |
28
38
  | **DevOps Secrets Scanning** | **Built-in (AWS, JWT, DBs)** | Custom regex rules | Custom detectors | Custom classifiers |
29
39
  | **Cost Predictability** | **Free Tier / Flat $199/mo** | DevOps server maintenance | Pay-per-GB cloud fees | Pay-per-unit API fees |
30
40
 
@@ -37,6 +47,7 @@ The official Node.js / TypeScript programmatic SDK for [PrivacyScrubber.com](htt
37
47
  | **1 Leaked AWS Key in Cloud LLM Logs** | **$18,400+** (Emergency key rotation, forensic audit, incident response) | **$0 / $199 flat**: Masked to `[AWS_KEY_1]` in local RAM before leaving your node |
38
48
  | **50k Customer Records in Vector DB** | **$4.45M** (Average data breach cost, IBM Security Report) | **<1ms latency**: Sanitize streams on-the-fly before embedding vectors |
39
49
  | **Cloud DLP Egress Fees & Latency** | **$1,500–$4,000/mo** + 350ms added prompt delay | **0 egress bytes**: Pure in-memory execution, 0 network dependencies |
50
+ | **Third-Party Subprocessor Vendor Audit** | **$25,000+** per enterprise vendor review (SOC 2, DPA, Legal) | **0 Subprocessors**: No third party touches data; zero security review backlog |
40
51
 
41
52
  ---
42
53
 
@@ -420,8 +431,8 @@ console.log(result.scrubbedText);
420
431
  ## 🔑 Licensing & Commercial Tiers
421
432
 
422
433
  PrivacyScrubber works free out-of-the-box with standard developer limits:
423
- - **Free Tier ($0)**: Up to 15,000 characters per request for General profile; 5,000 characters trial quota for specialized industry profiles. Ideal for prototyping and CI testing.
424
- - **Developer SDK License ($199/mo or $1,990/yr)**: Unlimited character throughput, all 25 specialized compliance profiles, unrestricted RAG & microservice batch pipelines, zero quota errors.
434
+ - **Free Tier ($0)**: Up to 15,000 characters per request for General profile; 5,000 characters free quota for specialized industry profiles. Built-in quota for local dev and CI testing without credit card or sign-up.
435
+ - **Developer SDK License ($199/mo or $1,990/yr)**: Unlimited character throughput across all 30 specialized compliance profiles, unrestricted RAG & microservice batch pipelines, zero quota limits.
425
436
 
426
437
  ### Activating Your Commercial License
427
438