Heykuki News

TopNewBestAskShowJobs
TopNewBestAskShowJobs
Show HN: PIICloak – Open-source PII detection API (31 entity types, self-hosted)
github.com/dimanjet
1 point
dimanjet
5 months ago
Hey HN! I built PIICloak because I needed a simple way to sanitize user data before sending it to OpenAI/Claude APIs.

Key features: - Detects 31 PII types (emails, phones, SSNs, credit cards, API keys, etc.) - Multiple modes: redact, mask, hash, or replace with fake data - REST API + Python library - Self-hosted, no data leaves your server - Uses Microsoft Presidio + spaCy NER under the hood

Quick example:

    curl -X POST http://localhost:8000/anonymize \
      -H "Content-Type: application/json" \
      -d '{"text": "Contact [email protected] or call 555-123-4567"}'
Returns: "Contact <EMAIL> or call <PHONE_NUMBER>"

Docker: docker run -p 8000:8000 dimanjet/piicloak PyPI: pip install piicloak

Happy to answer any questions!

1 comment