Rampart is a local-first browser-deployable system that redacts personally identifiable information from user-typed text using a combined ONNX model and deterministic recognizer, achieving high recall on seven Latin-script languages.

Stars

154

7-day growth

No data

Forks

13

Open issues

2

License

NOASSERTION

Last updated

2026-06-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a complete, reproducible privacy pipeline that runs entirely on the client, with a small 14.7 MB artifact and a defense-in-depth design that balances recall and domain-aware retention.

Who it is for

  • Developers building privacy-sensitive web applications
  • LLM providers and API consumers needing client-side PII filtering
  • Compliance teams requiring reproducible redaction benchmarks
  • Privacy researchers studying client-side harm reduction

Use cases

  • Redacting PII from user messages before sending to a remote language model
  • Sanitizing logging pipelines to prevent accidental data leaks
  • Providing streaming placeholder restoration in chat interfaces
  • Benchmarking PII redaction accuracy across multiple languages

Strengths

  • 98.42% private-term recall on 7 supported languages with narrow Wilson confidence intervals
  • Small shipped artifact (14.7 MB) enabling deployment on low-end phones and slow connections
  • Defense-in-depth combining deterministic checksum-based detectors with a neural token classifier
  • Policy-driven keep-set that retains coarse geography while redacting precise address lines

Considerations

  • Non-Latin scripts (Chinese, Japanese, Arabic, etc.) are out of scope with recall as low as 2% for Russian and 9% for Han Chinese
  • Adversarial robustness is limited (86.4% on a 20-case hostile input suite) and not designed against motivated bypass
  • Indirect identifiers and non-text inputs (images, audio) are not supported

README quick start

Usage

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191