Data & AI · 2026
SafeDoc-DF
Detection and anonymization of personal data (LAI/LGPD) in public-information requests. Live demo: the engine runs in the browser.
About the project
A platform built as a pair for the Participa DF civic challenge: it finds personal data (name, CPF, RG, e-mail, phone, ZIP, CNPJ, case number, plate and more) in public-information requests, computes a risk score and decides between publish, review or block, anonymizing the text.
For the live demo I ported the 20 rules of the FastAPI backend to TypeScript, running in the browser: nothing is sent to any server. A parity test compares 264 cases with the original Python output and all of them match. During the port I replaced a name regex that hung on long words with a linear one. It also analyzes CSV batches, with a risk dashboard and precision/recall when the file is labelled.
Highlights
- 20-rule engine ported from Python to TypeScript (264/264 parity)
- No data leaves the browser (CSP blocks other origins)
- CSV batches with dashboard, precision, recall and F1
- Lighthouse 95 to 97 performance; 100 accessibility and SEO



