secure-redact 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,13 +7,13 @@
7
7
 
8
8
  ## Features
9
9
 
10
- - 🔒 **100% Client-Side** — Documents never leave the browser
11
- - 🤖 **AI-Powered** — Gemini 2.0 Flash for semantic PII detection with pixel-perfect accuracy
12
- - 📝 **Multi-Layer Detection** — Regex + NLP + Spatial Analysis + Gemini AI
13
- - 📄 **PDF & Image Support** — PNG, JPEG, WebP, BMP, and PDF documents
14
- - 🎯 **Pixel-Perfect Redaction** — Word-ID based mapping for exact bounding boxes
15
- - 👁️ **Review UI** — Interactive modal to review and toggle detections before redacting
16
- - 📋 **Audit Trail** — Evidence log of all detected entities and actions taken
10
+ - **100% Client-Side** — Documents never leave the browser
11
+ - **AI-Powered** — Uses Tensorflow.js for semantic PII detection with pixel-perfect accuracy
12
+ - **Multi-Layer Detection** — Regex + NLP + Spatial Analysis + Tensorflow.js
13
+ - **PDF & Image Support** — PNG, JPEG, WebP, BMP, and PDF documents
14
+ - **Pixel-Perfect Redaction** — Word-ID based mapping for exact bounding boxes
15
+ - **Review UI** — Interactive modal to review and toggle detections before redacting
16
+ - **Audit Trail** — Evidence log of all detected entities and actions taken
17
17
  - 🇮🇳 **Indian Documents** — Built-in support for Aadhaar, PAN, GST, IFSC, etc.
18
18
 
19
19
  ## Install
@@ -48,7 +48,7 @@ function App() {
48
48
 
49
49
  return (
50
50
  <SecureRedact
51
- apiKey="your-gemini-api-key"
51
+ apiKey="your-tensorflow-api-key"
52
52
  onComplete={handleComplete}
53
53
  />
54
54
  );
@@ -77,7 +77,7 @@ function App() {
77
77
 
78
78
  | Prop | Type | Default | Description |
79
79
  |------|------|---------|-------------|
80
- | `apiKey` | `string` | *required* | Gemini API key ([get one here](https://aistudio.google.com/apikey)) |
80
+ | `apiKey` | `string` | *required* | Tensorflow.js API key |
81
81
  | `onComplete` | `(file, evidence) => void` | *required* | Called when redaction is complete |
82
82
  | `requiredFields` | `string[]` | `[]` | PII types to KEEP visible (when not using doc type UI) |
83
83
  | `confidenceThreshold` | `number` | `0.5` | Minimum confidence (0-1) for PII detection |
@@ -133,7 +133,7 @@ Multi-Layer PII Detection:
133
133
  ├── Layer 0: Regex + Checksums (Aadhaar, PAN, CC, Phone)
134
134
  ├── Layer 1: NLP Heuristics (Names, Addresses, Medical)
135
135
  ├── Layer 2: Spatial Key-Value Mapping ("Name:" → "John Doe")
136
- └── Layer 4: Gemini AI Word-ID Detection (pixel-perfect)
136
+ └── Layer 4: Tensorflow.js Word-ID Detection (pixel-perfect)
137
137
 
138
138
  Interactive Review Modal
139
139
 
@@ -163,7 +163,7 @@ interface EvidenceLog {
163
163
  ## Requirements
164
164
 
165
165
  - **React** ≥ 18.0.0
166
- - **Gemini API Key** — [Get one free](https://aistudio.google.com/apikey)
166
+ - **Tensorflow.js** —
167
167
  - **Vite** (recommended) — Workers use `new URL(..., import.meta.url)` syntax
168
168
 
169
169
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secure-redact",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Client-side PII detection and redaction React component. Upload documents, automatically detect sensitive information using OCR + AI, review detections, and download redacted copies — all without sending originals to any server.",
5
5
  "private": false,
6
6
  "type": "module",