{"repo":"Olow304/purgo","free":true,"listed":false,"github":"https://github.com/Olow304/purgo","clone":"git clone https://github.com/Olow304/purgo.git","description":"Tiny, blazing-fast library that redacts PHI & PII from console, fetch, and XHR before they ever leave the browser—HIPAA-friendly privacy made easy.","language":"TypeScript","stars":10,"topics":["hippa","logs","nextjs","phi","pii","purgo","reactjs","typescript"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Purgo Purgo is a zero-config, client-side log-scrubbing library that prevents Protected Health Information (PHI) from leaking into browser consoles, DevTools, and network debuggers. - 🔒 HIPAA-Friendly : Automatically redacts PHI from logs and network requests - 🪶 Lightweight : Note : When using ES modules, we recommend using the auto-patching import ( import 'purgo' ) or the combined approach with import 'purgo/node' and import { initRedactionEngine } from 'purgo/core' rather than the named import ( import { purgo } from 'purgo' ), which may cause issues in some environments. - targets : Array of targets to patch (default: ['console', 'fetch', 'xhr'] ) - patterns : Array of built-in pattern names or custom RegExp objects (default: ['email', 'phone', 'ssn', 'mrn', 'icd10'] ) - censor : Function to transform matched content (default: () = ' ' ) - hashMode : Enable SHA-256 hashing of censored tokens for correlation (default: false ) Built-in Patterns - email : Email addresses - phone : Phone numbers in various formats - ssn : Social Security Numbers - mrn : Medical Record Numbers - icd10 : ICD-10 diagnosis codes redact(value) Redacts PHI from any value while preserving structure. Core Module: import from 'purgo/core' The core module provides just the redaction functionality without any automatic patching of global objects. This is useful when: - You want more control over what gets redacted - You want to avoid patching global objects - You're using a framework that doesn't wor","default_branch":null,"files":null,"tree":[],"storefront":"/r/Olow304","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Olow304/purgo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}