What's Changed
- Zero-config PHI redaction for browser consoles and network requests
- Automatic detection and redaction of sensitive information (emails, SSNs, phone numbers, MRNs, ICD-10 codes)
- Support for both browser and Node.js environments
- Framework integrations for React, Next.js, Vue, and vanilla JS
- TypeScript declarations for improved developer experience
- Lightweight bundle size (< 7 kB gzip) with minimal runtime overhead (< 3%)
Key Features
- 🔒 HIPAA-Friendly: Automatically redacts PHI from logs and network requests
- 🪶 Lightweight: < 7 kB gzip with < 3% runtime overhead
- 🔌 Zero-Config: Works out-of-the-box with popular frameworks
- 🧩 Extensible: Add custom patterns and redaction strategies
- 📦 Universal: Support for both browser and Node.js environments
Usage Examples
Browser (Zero-Config)
// Just import it - that's it!
import 'purgo';
// Now all console logs and network requests will be automatically scrubbed
console.log('Patient email: patient@example.com'); // Outputs: "Patient email: ***"