Maskara
Ask AI without exposing people.
A compact PII detection model and SDK for adding privacy middleware to your codebase. It masks sensitive prompt data before cloud AI sees it.
One local pass. No raw PII leaves.
Pick a realistic prompt, watch Maskara replace sensitive spans, then compare what the cloud sees with what your app restores locally.
Model.
The public checkpoint lives on Hugging Face. The SDK is built to plug into an app before an LLM call.
SDK shape
One small wrapper around the prompt path.
from maskara import Maskara maskara = Maskara() safe, ctx = maskara.protect(prompt) reply = llm.complete(safe) final = maskara.restore(reply, ctx)
Hugging Face
Easy to plug in
Wrap a prompt, call your provider, restore the response. No new app architecture required.
Small CPU path
Designed for local and tiny-server demos with deterministic rules plus a compact token classifier.
Built for
Names, emails, phones, addresses, credentials, and other prompt-level sensitive spans.