Article

Article

Rampart AI: The Open-Source 14.7MB On-Device Model Revolutionizing Browser-Based PII Redaction and AI Privacy

Rampart AI shield icon blocking name and SSN data from leaving the browser

Liked this post? Share with others!

Table of Contents

On June 29, 2026, National Design Studio (@ndstudio) dropped a bombshell announcement that immediately resonated across the AI and privacy communities: Rampart, a compact 14.7MB machine learning model that redacts personally identifiable information (PII) directly in the browser before any data ever leaves the user’s device.

Before and after comparison of Rampart AI redacting a name, address, and SSN into placeholder tokens
Before Rampart, raw PII like name and SSN goes straight to the AI chatbot. After Rampart, the same data is converted to placeholder tokens on-device before it’s sent.

This isn’t another cloud-based filter that still requires trusting a remote server. Rampart runs entirely client-side using WebGPU, combining rule-based detection with a lightweight MiniLM model to catch both structured and contextual sensitive information. The result? Users can safely interact with AI chatbots and other services without exposing names, addresses, financial details, or other PII.

What Is Rampart and Why Was It Built?

Rampart is an open-source, on-device personal information filtering system created by National Design Studio (ndstudio.gov), a team focused on modernizing digital interfaces that serve everyday citizens. The project was built because traditional PII redaction solutions fall short in the age of generative AI:

  • Remote processing risk: Most “privacy” filters still send data to remote servers for processing.
  • Impractical model sizes: Large models (some over 2GB) are impractical for browser use.
  • No verifiable guarantee: Users have no way to confirm their sensitive prompts aren’t being logged or exposed.
Core Philosophy

“The only personal information you can be sure is private is the information that never leaves your device.” Rampart acts as a first line of defense for anyone pasting information into AI chat interfaces, internal tools, or web applications.

How Rampart On-Device PII Redaction Works

Rampart uses a smart hybrid architecture that runs entirely locally:

Deterministic Layer (Regex + Validation)

Catches structured PII with high precision: Social Security numbers, credit card numbers, phone numbers, emails, IP addresses, routing and account numbers, government IDs, and more.

Machine Learning Layer (MiniLM-based)

A tiny ~14.7 MB model (including tokenizer) detects contextual PII that regex alone misses, such as personal names, street addresses, or other narrative details.

All processing happens in the browser via WebGPU. No data is sent anywhere until it has been cleaned.

Example Flow

Input: “My name is John Wick. I live at 88 Cedar Lane, Brookvale, CT 06482. My SSN is 123-45-6789.”

Output (redacted): “My name is [GIVEN_NAME_1]. I live at [BUILDING_NUMBER_1] [STREET_NAME_1], Brookvale, CT 06482. My SSN is [SSN_1].”

The system uses stable placeholder tokens so the downstream AI (Grok, Claude, GPT, etc.) can still understand context and respond intelligently. A reveal() function lets you optionally restore the original values in the AI’s reply if needed for the user experience.

Impressive Benchmarks & Technical Specs

Rampart punches far above its weight class:

ModelSizeRecall (7 languages)Notes
Rampart (Regex + MiniLM)14.7 MB98.42%On-device, WebGPU
OpenAI Privacy Filter~2.8 GB97.4%Cloud-based
GLiNER small v2.1~600 MB94.2%Larger & slower
Community BERT-small PII~29 MB81.5%Lower accuracy
Microsoft Presidio~13 MB65%Rule-heavy
3.9ms
p50 latency on WebGPU
  • Training data: AI4Privacy’s OpenPII 1.5M dataset plus synthetic chat-style data.
  • Language support: English, Spanish, French, German, Italian, Portuguese, and Dutch (Latin-script languages).
  • Open source: Clean TypeScript/JavaScript library.

These numbers make Rampart one of the most practical production-ready on-device privacy tools available today.

Real-World Use Cases for Rampart AI

Consumer AI Chatbots

Safely use tools like Grok, ChatGPT, or Claude without accidentally leaking personal or client data.

Enterprise & Government Applications

Agencies and contractors handling sensitive citizen or business information can add a strong client-side protection layer.

Web & SaaS Products

Embed Rampart into customer-facing AI features like support chat, document analysis, and personalization engines.

Internal Tools & Developer Workflows

Redact logs, prompts, or datasets before they reach any LLM or analytics platform.

Compliance & Risk Reduction: Helps support GDPR, CCPA, and general data minimization principles.

How to Get Started with Rampart

  1. Hugging Face Model: Available at huggingface.co/nationaldesignstudio/rampart
  2. NPM / TypeScript Library (recommended for web apps): Install with npm install @nationaldesignstudio/rampart

Basic usage example:

import { createGuard } from "@nationaldesignstudio/rampart";
const guard = await createGuard();
const safePrompt = await guard.protect(
  "My name is John Wick. I live at 88 Cedar Lane, Brookvale, CT 06482."
);
console.log(safePrompt.text);
// → "My name is [GIVEN_NAME_1]. I live at [BUILDING_NUMBER_1] [STREET_NAME_1], Brookvale, CT 06482."
const aiReply = await yourLLM(safePrompt.text);
const finalReply = guard.reveal(aiReply);

Full whitepaper and benchmarks: inference.ndstudio.gov/rampart/whitepaper.pdf

Limitations (Current Alpha Release)

Rampart is explicitly positioned as a first-generation tool and strong first line of defense, not a complete enterprise PII governance platform. It’s primarily suited to Latin-script languages, works best as one layer in a broader defense-in-depth strategy, and ongoing improvements are expected from the National Design Studio team.

Why Rampart Matters for the Future of AI Privacy

As AI becomes embedded in everyday web experiences, the volume of sensitive information flowing into prompts will only grow. Server-side redaction still requires trust. On-device solutions like Rampart shift the paradigm toward privacy by design that users and developers can actually verify and control.

This release is especially notable because it comes from a team explicitly focused on building technology that serves American citizens with elegance and utility.

Implementing On-Device Privacy in Your Web & AI Projects

Technologies like Rampart open exciting possibilities for privacy-respecting AI features. Whether you’re a developer building the next generation of web applications, a business leader concerned about data exposure, or a government contractor needing robust client-side protections, the ability to redact PII locally before it touches any cloud service is a significant advantage.

On-device privacy matters for more than text. The viral nostalgia-photo trend we cover in Younger Self AI Photos and the voice cloning tools discussed in AI Voice Cloning and AI Music Generators both raise similar questions about what happens to your data once it leaves your device.

Your growth is the mission.

At W.D. Morgan Solutions, we help organizations build secure, modern web experiences and AI integrations, from custom WordPress solutions and privacy-focused web apps to AI-powered tools that prioritize data protection. If you’re exploring how on-device redaction, browser-based ML, or similar privacy technologies can strengthen your digital products or client work, our team is ready to help.

Keep reading

Let’s talk

Ready to build what’s next?

Tell us where you want your business to go. We’ll map out the website, store or software to get you there, starting with a free strategy call.

Get a Free Strategy Call
Aerial view of a bridge over turquoise water
5.0
Based on 32 reviews
Karl R. profile picture
Karl R.
2 months ago
Doug and team have worked tirelessly to help us update our website. WD Morgan Solutions is a great local, homegrown, veteran owned business.
D. A. profile picture
D. A.
3 months ago
Great service, price and product. Give WD Morgan Solutions a chance and you will be impressed. Thank you, Doug and Carlo, for your dedication and ongoing support!
Administrative A. profile picture
Administrative A.
3 months ago
We were having issues with our previous web hosting company and needed a change. I reached out to our phone company to ask who they use, and they said WD Morgan Solutions. Let me tell you the transition and communication were leaps and bounds better than we had before. Even Mr. Morgan himself is very on top on communicating back with and addressing concerns of his customers. We are very happy with the services WD Morgan Solutions has been providing us for website management. Anyone need this service? Call up Morgan!
Mallory Q. profile picture
Mallory Q.
3 months ago
We appreciate and are so thankful for Doug's help with the website for our small business! Highly recommend.
Gabe G. profile picture
Gabe G.
6 months ago
WD Morgan built a website that exceeded my expectations and perfectly represents my business.
Kristy B. profile picture
Kristy B.
10 months ago
We love everything about this company!! They are incredibly professional and knowledgeable!! They’ve really turned our practice around and keep us moving forward with our website and all of our marketing strategies !! We are so very grateful for you WD Morgan Solutions!!! 🙌🏼
Sylvia T. profile picture
Sylvia T.
10 months ago
⭐️⭐️⭐️⭐️⭐️ Doug Morgan and WD Morgan Solutions deliver exceptional web development and digital marketing services. Doug has a deep understanding of search engine optimization (SEO) and how to apply it to real-world performance and results—not just rankings. What truly stands out is the balance of clean, modern design with measurable performance. The work is strategic, professional, and focused on driving results. Communication is clear, expectations are realistic, and the outcome consistently exceeds expectations. Highly recommended.
Jennifer V. profile picture
Jennifer V.
10 months ago
We LOVE our new website. This team was incredibly efficient and easy to work with. They were very professional and intuitively smart! We couldn't be happier with the site. Highly recommend!
Marissa D. profile picture
Marissa D.
1 year ago
WD Morgan Solutions helped take over and redesign our website. They were patient and helpful in sorting through all of our needs and offering the best solutions to all of our requests.
Ryan S. profile picture
Ryan S.
1 year ago
WD Morgan Solutions did an amazing job on our website! The design looks great, it’s easy to use, and it really reflects our brand. They also helped us with SEO, and we’re already seeing more traffic and better rankings online. The whole team was professional, helpful, and easy to work with. Big thanks to everyone at WD Morgan for making this such a smooth and successful experience. Highly recommend!
Dylan A. profile picture
Dylan A.
1 year ago
Doug re-created my website for me and it turned out absolutely perfect! It was the most seamless process on my end. The dude is a true genius in his field! I highly recommend!
Ben C. profile picture
Ben C.
2 years ago
My real estate team has been working with Doug and the WD Morgan marketing team for years. They have helped us grow our business and generate leads with an emphasis on ROI. Our best investment has been on SEO with WD Morgan.
Alan H. profile picture
Alan H.
2 years ago
WD Morgan Solutions did a masterful job in creating & designing our new website. Professional, eye-catching, & highly detailed. It has immediately improved our on-line presence, we've received positive feedback from our clients on its ease to navigate, & it has also given us greater exposure in a highly competitive market. We appreciate having WD Morgan working with us, assisting us with our digital marketing needs. Thank you for your high quality work. We highly recommend your company & will recommend you to our business partners.
Enhanced B. profile picture
Enhanced B.
2 years ago
WD Morgan Solutions exceeded our expectations with the website they built for us. The upgrade to a sleek, modern design has truly elevated our online presence, and we couldn’t be more impressed with the result. Doug and his team were professional, attentive to our needs, and delivered a stunning final product. Our site looks incredible, and the entire process was smooth from start to finish. We highly recommend WD Morgan Solutions for anyone looking to take their website to the next level!
Michael A. profile picture
Michael A.
2 years ago
These guys are fantastic. From SEO to website development, they have my back in the digital impressions world. I had used several companies before I found Doug and his crew, and now that I have, I won't be looking for anyone else. Do yourself and your company a favor. Invest the time and money to let these people do their job, because they're amazing at what they do, and your business (and your bank account) will thank you for it. It works, and it works well.
William G. profile picture
William G.
2 years ago
Doug knows his way around SEO and digital marketing. I feel comfortable using WD Morgan solutions knowing that my digital footprint will expand and my ROI is worth the investment. He will turn up your profits substantially
Carolyn J. profile picture
Carolyn J.
3 years ago
When seeking to improve your digital imprint, go no further than W.D. Morgan Solutions for a professional, proven result. The owner is responsive, highly experienced, and excellent to work with. His work with past clients is evidence of his impressive expertise. In addition, he will listen closely and provide the guidance you need to make digital marketing work for your business.
John P. profile picture
John P.
3 years ago
WD Morgan Solutions is a breath of fresh air in the digital marketing space. As a business owner, it's very hard to find a digital marketing team that will fight for the success of your company. Most just throw a bunch of metrics at you with no tangible results. This team is absolutely about results and keeping themselves accountable to those results. You will not go wrong with them on your team for anything SEO, website design, paid ads, etc...
Daniel H. profile picture
Daniel H.
3 years ago
I am delighted to share my outstanding experience with Doug at WD Morgan Solutions a truly remarkable digital marketing agency that has significantly transformed my online presence and business performance. From the outset, Doug exhibited a profound understanding of digital marketing strategies and a commitment to driving tangible results. His expertise and innovative approach to digital marketing have propelled my business to new heights, exceeding all my expectations. The personalized attention and dedication shown by Doug was truly commendable. He meticulously crafted a customized digital marketing strategy tailored to my business needs, and their proactive communication and regular progress reports kept me informed and involved every step of the way. Not only did WD Morgan Solutions help increase my online visibility and engagement, but they also delivered a significant boost in leads and conversions, ultimately driving measurable growth for my business. I wholeheartedly recommend WD Morgan Solutions to any business seeking to elevate their digital marketing efforts. Doug’s professionalism, expertise, and unwavering commitment to client success make them a standout choice in the digital marketing landscape.
Teresa W. profile picture
Teresa W.
3 years ago
Doug and his team offer their expertise to businesses looking to up their game and compete with their competitors with SEO, social media marketing, digital marketing, web development and branding. Doug is a proud veteran, and as the owner of the company, he is directly involved to ensure that each client realizes results, even in competitive markets. - I highly recommend Doug Morgan and his team to anyone looking to increase their visibility and presence on the web.
Kate T. profile picture
Kate T.
3 years ago
I’ve always felt confident sending my clients to WD Morgan Solutions for their digital marketing needs. Doug's team isn't just about technical skills; they really understand people. They offer a whole range of services like paid ads, content creation, social media management, and so much more... but what sets them apart is how they treat their clients and collaborators. As a writer they've hired, I've seen their dedication and care up close. They’re not just another digital marketing firm; they’re a group of genuine, hard-working people who you can trust with your business.
See All Reviews
WD Morgan Solutions
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.