Skip to main content
PII Gateway

PII Gateway

Scrub personal data from text and JSON before it leaves your boundary.

A Docker-first FastAPI service: mounted policy rules first, Microsoft Presidio NLP as best-effort fallback. Personal / learning project—not a compliance product.

Live demo

Pick a sample or paste your own text, then see what an AI model would receive instead.

Sample data only. Do not paste real personal information into this public demo.

Redacted result appears below.

Rate-limited public edge. Prefer Compose for real workloads.

How it works

  1. 01

    Send HTTP JSON

    Call POST /v1/sanitize with free text and/or nested structured fields.

  2. 02

    Apply policy + Presidio

    Declared fields use deterministic rules; undeclared strings get best-effort NLP. Placeholders look like <EMAIL_ADDRESS>.

  3. 03

    Return cleaned data

    Get redacted output and entity counts for logs, analytics, or experiments—no accuracy guarantees.

Self-host

Run the same container locally or on a home lab (including Raspberry Pi arm64). Compose is the primary path.

git clone https://github.com/aryanjohari/pii-gateway.git
cd pii-gateway
cp .env.example .env
# set SANITIZE_HTTP_API_KEY in .env
docker compose up --build