<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ringng</title>
    <description>The latest articles on DEV Community by ringng (@ringng).</description>
    <link>https://dev.to/ringng</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272013%2F15cd9cf9-95ef-43fb-8754-ab0aaff5c380.png</url>
      <title>DEV Community: ringng</title>
      <link>https://dev.to/ringng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ringng"/>
    <language>en</language>
    <item>
      <title>Why I built a 100% offline, single-file PII scrubber for LLMs (zero dependencies)</title>
      <dc:creator>ringng</dc:creator>
      <pubDate>Sun, 29 Nov 2026 09:31:45 +0000</pubDate>
      <link>https://dev.to/ringng/why-i-built-a-100-offline-single-file-pii-scrubber-for-llms-zero-dependencies-2np5</link>
      <guid>https://dev.to/ringng/why-i-built-a-100-offline-single-file-pii-scrubber-for-llms-zero-dependencies-2np5</guid>
      <description>&lt;p&gt;If you use ChatGPT, Claude, or Gemini for work, you’ve probably hit the same annoying bottleneck: &lt;strong&gt;pasting client contracts, invoices, or CSVs without leaking real names, emails, and budgets.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Manually finding and replacing sensitive terms every time is tedious and error-prone. On the other hand, most online PII scrubbers are either monthly SaaS tools or require sending your confidential text to &lt;em&gt;another&lt;/em&gt; third-party server—which completely defeats the point of privacy.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;MaskBack&lt;/strong&gt; — a 100% client-side, single-file browser utility that masks sensitive data locally and restores the AI's reply back 1:1.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Try the free web version here:&lt;/strong&gt; &lt;a href="https://ringng.github.io/maskback/" rel="noopener noreferrer"&gt;https://ringng.github.io/maskback/&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  How the Reversible Workflow Works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mask:&lt;/strong&gt; Paste your text (or click &lt;em&gt;Load Sample Contract&lt;/em&gt;). MaskBack detects emails, phone numbers, currency amounts, dates, IDs, IPs, and your custom terms, replacing them with deterministic tokens like &lt;code&gt;[EMAIL_1]&lt;/code&gt;, &lt;code&gt;[AMOUNT_1]&lt;/code&gt;, or &lt;code&gt;[TERM_1]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt AI:&lt;/strong&gt; Paste the masked text into any LLM. Because the tokens preserve structure and context, the AI still summarizes, rewrites, or analyzes accurately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restore:&lt;/strong&gt; Paste the AI’s response back into Step 2. MaskBack uses an in-memory mapping vault to swap every token back to its original value.&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Under the Hood (Why Zero Dependencies?)
&lt;/h3&gt;

&lt;p&gt;To make the privacy guarantee verifiable, I kept the architecture intentionally minimal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Single standalone HTML file:&lt;/strong&gt; Zero external CDNs, zero analytics, zero network calls. You can open DevTools (Network tab), switch to airplane mode, and it still works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overlap resolution:&lt;/strong&gt; Regex detection handles overlapping matches cleanly so tokens don't break each other during the round-trip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-memory vault:&lt;/strong&gt; Mappings live only in your active browser tab—hit &lt;em&gt;Clear Session&lt;/em&gt; or close the tab, and everything is gone.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Free vs. Offline Pro
&lt;/h3&gt;

&lt;p&gt;The web version at &lt;a href="https://ringng.github.io/maskback/" rel="noopener noreferrer"&gt;ringng.github.io/maskback&lt;/a&gt; is free to use (500-word cap, 3 custom terms, copy-paste).&lt;/p&gt;

&lt;p&gt;For anyone who needs unlimited length, RFC-4180 cell-safe &lt;code&gt;.csv&lt;/code&gt; / &lt;code&gt;.txt&lt;/code&gt; / &lt;code&gt;.md&lt;/code&gt; file masking, saveable &lt;code&gt;localStorage&lt;/code&gt; term presets, and a standalone HTML file to keep offline forever, I also packaged a &lt;strong&gt;$9 one-time Pro version&lt;/strong&gt; (no subscriptions) linked inside the app.&lt;/p&gt;

&lt;p&gt;If you test it out and spot any regex edge cases or formatting quirks, I’d love to hear your feedback in the comments!&lt;/p&gt;

</description>
      <category>privacy</category>
      <category>ai</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
