Sign inSign up

blackflagdesignteam/blackshield

By blackflagdesignteam

•Updated 7 months ago

Self-hosted PII detection API. Intercept sensitive data before it reaches LLMs.

Image
Security
Developer tools
0

1.2K

blackflagdesignteam/blackshield repository overview

⁠BlackShield PII Detector

Self-hosted API that detects and redacts PII before it reaches any LLM or external service.

⁠Quick Start

docker run -d \
  -p 3000:3000 \
  -e LICENSE_KEY=YOUR-KEY \
  -v blackshield_data:/data \
  blackflagdesignteam/blackshield

Then visit http://localhost:3000⁠ for the interactive demo.

⁠Interactive Demo

The built-in demo lets you paste real content, toggle 25 detection types, test custom patterns, and copy ready-to-use API snippets. Enable or disable it with:

-e SHOW_DEMO=true    # default — demo available at /
-e SHOW_DEMO=false   # API-only, no demo UI

⁠Features

  • 25+ PII types — Names, emails, SSNs, credit cards, addresses, credentials, passports, driver's licenses, organizations, and more
  • Hybrid AI + regex — DistilBERT NER combined with pattern matching for maximum accuracy
  • Smart detection — Auto-detects prose, tables (CSV/TSV/markdown), and mixed content
  • Custom patterns — Give 2 examples of your internal IDs, no regex required
  • Sub-100ms latency — 30–80ms typical, runs entirely on your infrastructure
  • Self-hosted — No data ever leaves your servers

⁠Environment Variables

VariableDefaultDescription
LICENSE_KEY(required)Gumroad license key
SHOW_DEMOtrueShow interactive demo at / and /demo
API_KEYnoneRequire API key for /v1/detect
PORT3000Server port

⁠API

curl -X POST http://localhost:3000/v1/detect \
  -H "Content-Type: application/json" \
  -d '{"text": "Contact John Smith at [email protected]"}'

⁠Purchase

$99 one-time — Buy on Gumroad⁠

Tag summary

Content type

Image

Digest

sha256:f9dfed880…

Size

228.4 MB

Last updated

7 months ago

docker pull blackflagdesignteam/blackshield