<?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: Hua XU</title>
    <description>The latest articles on DEV Community by Hua XU (@hua_xu_521a1aa12635cbbede).</description>
    <link>https://dev.to/hua_xu_521a1aa12635cbbede</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%2F4260062%2F21088492-d032-498f-b9ac-43bae9200d84.png</url>
      <title>DEV Community: Hua XU</title>
      <link>https://dev.to/hua_xu_521a1aa12635cbbede</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hua_xu_521a1aa12635cbbede"/>
    <language>en</language>
    <item>
      <title>Implementing HIPAA Safe Harbor (45 CFR § 164.514(b)(2)) CSV De-Identification 100% Client-Side in Vanilla JS</title>
      <dc:creator>Hua XU</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:14:27 +0000</pubDate>
      <link>https://dev.to/hua_xu_521a1aa12635cbbede/implementing-hipaa-safe-harbor-45-cfr-ss-164514b2-csv-de-identification-100-client-side-in-apj</link>
      <guid>https://dev.to/hua_xu_521a1aa12635cbbede/implementing-hipaa-safe-harbor-45-cfr-ss-164514b2-csv-de-identification-100-client-side-in-apj</guid>
      <description>&lt;p&gt;If you have ever tried to help a hospital lab, MD/PhD student, or clinical data team share a research CSV with an external collaborator or journal repository, you know the catch-22:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cloud SaaS de-identifiers are legally off-limits&lt;/strong&gt; without a signed Business Associate Agreement (BAA) and institutional IT review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quick Excel formulas (&lt;code&gt;=LEFT(A2, 3)&lt;/code&gt;) and ad-hoc Pandas scripts quietly violate HIPAA Safe Harbor&lt;/strong&gt; on subtle regulatory edge cases.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the browser already has a fast JS engine, &lt;code&gt;FileReader&lt;/code&gt;, and native &lt;code&gt;crypto.subtle&lt;/code&gt; (WebCrypto SHA-256), we can run the entire HIPAA Safe Harbor 18-identifier transformation &lt;strong&gt;100% locally in browser RAM&lt;/strong&gt; — zero backend, zero uploads, verifiable by unplugging Wi-Fi or watching the Chrome DevTools Network tab.&lt;/p&gt;

&lt;p&gt;Here are the four engineering subtleties that actually trip people up when implementing &lt;code&gt;45 CFR § 164.514(b)(2)&lt;/code&gt; in code, plus a live offline tool you can test in your browser right now.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Why &lt;code&gt;zip.slice(0, 3)&lt;/code&gt; Violates HIPAA Safe Harbor
&lt;/h3&gt;

&lt;p&gt;Under &lt;strong&gt;45 CFR § 164.514(b)(2)(i)(B)&lt;/strong&gt;, you may retain the first 3 digits of a US ZIP code &lt;em&gt;only&lt;/em&gt; if the combined geographic unit formed by all ZIP codes sharing those 3 digits contains &lt;strong&gt;more than 20,000 people&lt;/strong&gt; (per Bureau of the Census data).&lt;/p&gt;

&lt;p&gt;There are &lt;strong&gt;17 restricted 3-digit ZIP prefixes&lt;/strong&gt; whose combined population is ≤ 20,000, and &lt;strong&gt;all 17 MUST be changed to &lt;code&gt;000&lt;/code&gt;&lt;/strong&gt; — not kept as 3 digits:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;RESTRICTED_ZIP3_SET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s1"&gt;'036'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'059'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'063'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'102'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'203'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'556'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'692'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'790'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'821'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'823'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'830'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'831'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'878'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'879'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'884'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'890'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'893'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;transformZipCell&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;digits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;digits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// Recover leading zero stripped by Excel (e.g., 3601 -&amp;gt; 03601)&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;zip5&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;digits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="sb"&gt;`0${digits}`&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;digits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zip5&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'000'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;prefix3&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zip5&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;RESTRICTED_ZIP3_SET&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prefix3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'000'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;prefix3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice the second real-world bug that snippet fixes: &lt;strong&gt;Excel routinely strips leading zeros&lt;/strong&gt; from East Coast ZIPs (&lt;code&gt;03601&lt;/code&gt; becomes &lt;code&gt;3601&lt;/code&gt;). If you do not left-pad 4-digit US ZIP integers before checking &lt;code&gt;RESTRICTED_ZIP3_SET&lt;/code&gt;, &lt;code&gt;036&lt;/code&gt; slips right through!&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Ages &amp;gt; 89 (Including Decimal Ages &amp;amp; Birth Years)
&lt;/h3&gt;

&lt;p&gt;Under &lt;strong&gt;45 CFR § 164.514(b)(2)(i)(C)&lt;/strong&gt;, all ages over 89 and all elements of dates (including birth year) indicative of such age must be aggregated into a single category of &lt;strong&gt;&lt;code&gt;90+&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;89&lt;/code&gt; -&amp;gt; stays &lt;code&gt;89&lt;/code&gt; (boundary case!)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;89.5&lt;/code&gt;, &lt;code&gt;90&lt;/code&gt;, &lt;code&gt;93&lt;/code&gt; -&amp;gt; &lt;code&gt;90+&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DOB = 1933-04-12&lt;/code&gt; (in reference year &lt;code&gt;2026&lt;/code&gt;, implied age = &lt;code&gt;93&lt;/code&gt;) -&amp;gt; cannot even keep &lt;code&gt;1933&lt;/code&gt;; must be capped to &lt;code&gt;90+&lt;/code&gt;!&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  3. Longitudinal Date Shifting Without Breaking Survival Analysis
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;year_only&lt;/code&gt; mode (&lt;code&gt;2024-02-10&lt;/code&gt; -&amp;gt; &lt;code&gt;2024&lt;/code&gt;), you satisfy strict Safe Harbor, but clinical studies often lose &lt;strong&gt;length-of-stay (LOS)&lt;/strong&gt; and &lt;strong&gt;30-day readmission intervals&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To preserve exact inter-visit intervals within a cohort (when permitted by a Limited Data Set or approved protocol), compute a &lt;strong&gt;deterministic per-subject shift offset&lt;/strong&gt; from &lt;code&gt;(studySalt, subjectId)&lt;/code&gt; using a non-zero integer in &lt;code&gt;[-range, +range]&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Deterministic FNV-1a 32-bit hash -&amp;gt; consistent non-zero shift per MRN&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;computeSubjectShiftDays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subjectKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;salt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rangeDays&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;180&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${salt}::${subjectKey}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mh"&gt;0x811c9dc5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charCodeAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;imul&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x01000193&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rangeDays&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// excludes 0&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;rangeDays&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;rangeDays&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;rangeDays&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every encounter row belonging to &lt;code&gt;MRN-401822&lt;/code&gt; shifts by the &lt;strong&gt;exact same number of days&lt;/strong&gt;, so &lt;code&gt;discharge_date - admit_date&lt;/code&gt; and &lt;code&gt;visit_2 - visit_1&lt;/code&gt; remain mathematically invariant!&lt;/p&gt;

&lt;p&gt;And crucially: export the pseudonymization lookup (&lt;code&gt;MRN-401822 -&amp;gt; SUBJ_0001&lt;/code&gt;) as a &lt;strong&gt;physically separate file&lt;/strong&gt; (&lt;code&gt;reid_key_map_DO_NOT_SHARE.csv&lt;/code&gt;) excluded from the shareable bundle by default, following &lt;code&gt;45 CFR § 164.514(c)&lt;/code&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Verifiable WebCrypto SHA-256 IRB Audit Certificates
&lt;/h3&gt;

&lt;p&gt;Journal data-availability checks and university IRBs increasingly ask &lt;em&gt;how&lt;/em&gt; a dataset was de-identified. Using native &lt;code&gt;crypto.subtle.digest('SHA-256', bytes)&lt;/code&gt; in the browser lets you stamp an audit report with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exact SHA-256 fingerprint of the &lt;strong&gt;raw input CSV&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Exact SHA-256 fingerprint of the &lt;strong&gt;de-identified output CSV&lt;/strong&gt; (verifiable later with &lt;code&gt;shasum -a 256&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Column-by-column action manifest + exact counts of restricted 17-ZIP cells zeroed, ages &amp;gt;89 capped, and free-text PHI tokens scrubbed&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Try It Offline in Your Browser (Zero Sign-Up)
&lt;/h3&gt;

&lt;p&gt;I packaged this entire vanilla-JS engine (plus a built-in 16-row synthetic clinical cohort benchmark and a zero-dependency Python 3 CLI with bit-for-bit shift parity) into &lt;strong&gt;SafeHarbor Studio&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live 100% Offline Browser Demo (Free up to 25 rows, zero upload):&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/safeharbor/" rel="noopener noreferrer"&gt;https://hxu129.github.io/scholarcraft-tools/safeharbor/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Guide &amp;amp; 17 Restricted ZIP Reference:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/tools/hipaa-safe-harbor-csv-deidentifier/" rel="noopener noreferrer"&gt;https://hxu129.github.io/scholarcraft-tools/tools/hipaa-safe-harbor-csv-deidentifier/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro Pack (Unlimited Rows + Longitudinal Date Shift + SHA-256 IRB Certificate + Zero-Dep Python CLI, $29 one-time):&lt;/strong&gt; &lt;a href="https://hxucreativity28.gumroad.com/l/safeharbor-studio" rel="noopener noreferrer"&gt;https://hxucreativity28.gumroad.com/l/safeharbor-studio&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6yy4m3rc2oyre1r8vxpd.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6yy4m3rc2oyre1r8vxpd.gif" alt="SafeHarbor Studio Offline HIPAA Demo" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer: SafeHarbor Studio is an offline technical de-identification utility and does not constitute legal advice. Researchers remain responsible for the HIPAA "no actual knowledge" prong and institutional IRB policies.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback from anyone who has wrestled with clinical CSV de-identification, messy Excel date formats, or free-text note scrubbing in the browser!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>privacy</category>
      <category>webdev</category>
      <category>healthcare</category>
    </item>
    <item>
      <title>Why I Built 6 Zero-Backend Browser Tools for Researchers &amp; Engineers (Free Live Demos)</title>
      <dc:creator>Hua XU</dc:creator>
      <pubDate>Mon, 23 Nov 2026 08:26:19 +0000</pubDate>
      <link>https://dev.to/hua_xu_521a1aa12635cbbede/why-i-built-6-zero-backend-browser-tools-for-researchers-engineers-free-live-demos-476i</link>
      <guid>https://dev.to/hua_xu_521a1aa12635cbbede/why-i-built-6-zero-backend-browser-tools-for-researchers-engineers-free-live-demos-476i</guid>
      <description>&lt;p&gt;Every paper deadline and debugging sprint seems to hit the exact same set of small, high-friction chores — yet almost every existing tool wants a monthly SaaS subscription and asks you to upload unpublished manuscripts, raw experiment CSVs, or &lt;code&gt;.env&lt;/code&gt; stack traces to a third-party server.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;ScholarCraft Tools&lt;/strong&gt;: six standalone, client-side utilities that run directly in your browser (plus offline Chrome MV3 side panels and zero-dependency Python CLIs). No login, no telemetry, and no private backend.&lt;/p&gt;

&lt;p&gt;You can try all six live demos directly at &lt;strong&gt;&lt;a href="https://hxu129.github.io/scholarcraft-tools/" rel="noopener noreferrer"&gt;hxu129.github.io/scholarcraft-tools&lt;/a&gt;&lt;/strong&gt; (source overview &amp;amp; release notes on &lt;a href="https://github.com/hxu129/scholarcraft-tools" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  1. PromptShield — Reversible Local Secret &amp;amp; PII Redaction for LLM Prompts
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Free Live Demo:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/promptshield/index.html" rel="noopener noreferrer"&gt;PromptShield&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of blind &lt;code&gt;[REDACTED]&lt;/code&gt; masking that breaks relationships across a stack trace, PromptShield maps repeated secrets deterministically (&lt;code&gt;[DB_URI_1]&lt;/code&gt;, &lt;code&gt;[OPENAI_KEY_1]&lt;/code&gt;, &lt;code&gt;[EMAIL_1]&lt;/code&gt;) inside an in-memory local vault. Paste the masked prompt into ChatGPT or Claude, paste the reply back into PromptShield, and restore your original values in one click. Open your browser DevTools Network tab to confirm zero outbound calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. TableForge — CSV/TSV/Excel to &lt;code&gt;booktabs&lt;/code&gt; + &lt;code&gt;siunitx&lt;/code&gt; LaTeX &amp;amp; Word 3-Line Tables
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Free Live Demo:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/tableforge/index.html" rel="noopener noreferrer"&gt;TableForge&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Turns experiment result CSVs directly into &lt;code&gt;booktabs&lt;/code&gt; + &lt;code&gt;siunitx&lt;/code&gt; S-column LaTeX, Typst, Markdown, and paste-ready Word three-line rich HTML. Automatically bolds &lt;code&gt;#1&lt;/code&gt; and underlines &lt;code&gt;#2&lt;/code&gt; per column (respecting higher-is-better vs lower-is-better directions), parses &lt;code&gt;mean ± std&lt;/code&gt;, and computes &lt;code&gt;Δ&lt;/code&gt; against any chosen baseline row.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. CiteCheck — Local &lt;code&gt;.bib&lt;/code&gt; Retraction, Hallucination &amp;amp; arXiv Upgrade Auditor
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Free Live Demo:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/citecheck/index.html" rel="noopener noreferrer"&gt;CiteCheck&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Queries public OpenAlex, Crossref, and DBLP metadata APIs directly from your browser to catch retracted papers, unverified LLM-generated citations, year/author/DOI mismatches, and arXiv preprints that have since appeared in peer-reviewed journals or conferences.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. PaperPreflight — Offline Double-Blind Submission Auditor (&lt;code&gt;.tex&lt;/code&gt;, &lt;code&gt;.bib&lt;/code&gt;, Binary &lt;code&gt;.pdf&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Free Live Demo:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/preflight/index.html" rel="noopener noreferrer"&gt;PaperPreflight&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Parses raw &lt;code&gt;.tex&lt;/code&gt;, &lt;code&gt;.bib&lt;/code&gt;, and binary &lt;code&gt;.pdf&lt;/code&gt; files directly in browser memory — flagging hidden PDF &lt;code&gt;/Author&lt;/code&gt;, &lt;code&gt;/Creator&lt;/code&gt;, and XMP blocks, clickable GitHub &lt;code&gt;/URI&lt;/code&gt; links, un-anonymized &lt;code&gt;\acknowledgments&lt;/code&gt;, leaked author comments, and broken &lt;code&gt;\ref&lt;/code&gt; / &lt;code&gt;\cite&lt;/code&gt; keys before submission.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. CleanClip MD — Math-Preserving Web-to-Markdown Clipper
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Free Live Demo:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/cleanclip/playground.html" rel="noopener noreferrer"&gt;CleanClip MD Playground&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Extracts raw TeX from KaTeX, MathJax v2/v3, arXiv HTML5 (&lt;code&gt;LaTeXML&lt;/code&gt;), and Wikipedia math nodes into clean &lt;code&gt;$...$&lt;/code&gt; / &lt;code&gt;$$...$$&lt;/code&gt; GFM Markdown alongside a live bilingual LLM context token counter.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. SciPlot Studio — 30 Publication-Ready Matplotlib Templates
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Live Gallery:&lt;/strong&gt; &lt;a href="https://hxu129.github.io/scholarcraft-tools/sciplot/gallery.html" rel="noopener noreferrer"&gt;SciPlot Gallery&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;30 standalone Matplotlib templates calibrated to Nature, Science, Cell, ICML, and IEEE column widths with 6 colorblind-safe palettes and Adobe Illustrator-editable vector PDFs (&lt;code&gt;pdf.fonttype = 42&lt;/code&gt;), requiring zero PyTorch or GPU dependencies.&lt;/p&gt;




&lt;h3&gt;
  
  
  Pricing &amp;amp; Transparency
&lt;/h3&gt;

&lt;p&gt;All browser demos above are free to use with no account required. For power users who want offline Chrome Side Panel extensions, multi-file batch ZIP exports, zero-dependency Python CLIs, or the full 30-script SciPlot source pack, optional one-time lifetime licenses ($12–$19 each, or $49 for all 6) are available on &lt;a href="https://hxucreativity28.gumroad.com/" rel="noopener noreferrer"&gt;Gumroad&lt;/a&gt; — zero monthly subscriptions.&lt;/p&gt;

&lt;p&gt;If you run into tricky &lt;code&gt;siunitx&lt;/code&gt; table layouts, BibTeX macro edge cases, or log/secret patterns that miss or falsely trigger, drop a comment below and I will patch it!&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>privacy</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
