Description
Privacy Filter is a Go library and gateway that removes personal data and secrets from text before it reaches an LLM. It is pure Go, with no model, no GPU and no CGO, and it ships as a single static binary with millisecond latency on text of any length. You can import the filter package straight into your gateway, run the REST HTTP service, or run the gRPC service. Two detection layers work together. Regular expressions find structured personal data such as email addresses, phone numbers, national ID numbers, IP addresses and bank card numbers, which are checked with the Luhn algorithm. A gitleaks ruleset, contextual patterns and an entropy check find secrets such as API keys, tokens, private keys and passwords written in prose. Each hit is replaced with a typed placeholder, and the redaction cannot be reversed. The project does not recognize names of people, places or organizations, because that needs a model that costs seconds of CPU time on long text. It runs in production at PackyCode, as the privacy component of an API relay service.…
Highlights
- Redacts personal data and secrets before text reaches an LLM
- Pure Go with no model, GPU or CGO
- Core package, REST HTTP and gRPC services
- Bank card detection checked with Luhn
- Typed placeholders with irreversible redaction
Ratings & Reviews
No ratings yet
Be the first to rate Privacy Filter.
People also visit
Privacy Filter FAQ
What does it do?
It strips personal data and secrets from text before the text goes to a language model.
How do I use it?
Import the core filter package into a gateway for one-call redaction, or use the REST or gRPC service.
What does it not detect?
Names of people, places and organizations. The project says that would need an NER model, which costs seconds of CPU time on long text.
Can redaction be undone?
No. Placeholders are typed by kind, such as email or secret, and redaction cannot be reversed.
What are the best Privacy Filter alternatives?
Popular alternatives to Privacy Filter include SecuRedact, Promptmask and Maskgate. See all Privacy Filter alternatives

.png)



