Fabraix Red Team Playground
Free · Open source
AI security researchers
Every prompt your users type is a potential audit finding — names, SSNs, email addresses leaving the browser before anyone can stop them. Rampart intercepts that data client-side, before it reaches any LLM endpoint.
Rampart runs a two-layer pipeline entirely in the browser: a 14.7 MB ONNX token-classification model from Hugging Face combined with a deterministic recognizer layer that catches what the model misses. Nothing leaves the client unredacted — the architecture makes server-side PII exposure structurally impossible, not just policy-dependent. The npm package ships as a complete, reproducible artifact, so your redaction behavior is auditable and consistent across builds. The ceiling arrives when your entity types fall outside what the bundled model was trained to recognize — at that point you are retraining or replacing the model, not tweaking a config. Teams needing real-time redaction across high-volume server-side pipelines will hit the browser-only constraint immediately.
Bottom line: Rampart is the right call for a browser-based AI interface where client-side PII redaction is non-negotiable — it is the wrong call the moment your pipeline runs server-side or requires custom entity types the bundled model does not cover.
Find your fit
More options in Guardrails & Safety. Compare pricing, platforms, and features side by side.
Free · Open source
AI security researchers
Freemium
Legal professionals handling confidential cases
Rampart solves one problem precisely: personally identifiable information typed by users in the browser must not reach an LLM endpoint in raw form. The pipeline combines a 14.7 MB ONNX token-classification model — loaded from Hugging Face by default, with a copy bundled in the repository — with a deterministic recognizer layer that acts as a second pass. The two layers together form a defense-in-depth approach: the model catches statistically ambiguous entities, the deterministic layer catches structured patterns like email addresses and phone numbers that do not require inference. The result ships as the @nationaldesignstudio/rampart npm package with TypeScript support.
The defining architectural choice is local-first execution. Model weights run in the browser via ONNX runtime, which means redaction happens before any network call is made. For compliance workflows where the threat model centers on data leaving the client, this is the structural guarantee that a server-side filter or API-based redaction service cannot provide — those approaches require the raw text to travel over the wire first.
Rampart fits tightly into browser-based AI interfaces where the developer controls the input layer and needs auditable, reproducible redaction behavior across builds. The repository includes evaluation tooling and a whitepaper, which means the redaction accuracy and failure modes are documented rather than opaque. Where it breaks: the pipeline is scoped entirely to client-side JavaScript environments. Server-side Node.js pipelines, backend compliance workflows, and high-throughput batch redaction are outside the design target. Teams whose entity recognition needs exceed the bundled model’s training distribution face a model-replacement problem, not a configuration problem.
The package is distributed via npm as @nationaldesignstudio/rampart. Model weights load from Hugging Face by default, with an in-repository copy available for air-gapped or reproducibility-sensitive deployments. The repository ships with a CLI, examples, an eval suite, and a LaTeX source for the whitepaper — the vendor states this is a complete, reproducible artifact, meaning the exact redaction behavior can be locked to a specific commit.
Sign in to rate this tool or suggest an edit.