<?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: Neeraj Gupta</title>
    <description>The latest articles on DEV Community by Neeraj Gupta (@neerajgupta2304).</description>
    <link>https://dev.to/neerajgupta2304</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%2F3946259%2F9056c4d8-d180-4894-9f18-9aef2fd3bc76.jpg</url>
      <title>DEV Community: Neeraj Gupta</title>
      <link>https://dev.to/neerajgupta2304</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neerajgupta2304"/>
    <language>en</language>
    <item>
      <title>Why We Moved 120+ PDF &amp; Image Tools to WebAssembly in the Browser (Zero Server Uploads)</title>
      <dc:creator>Neeraj Gupta</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:51:27 +0000</pubDate>
      <link>https://dev.to/neerajgupta2304/why-we-moved-120-pdf-image-tools-to-webassembly-in-the-browser-zero-server-uploads-40ck</link>
      <guid>https://dev.to/neerajgupta2304/why-we-moved-120-pdf-image-tools-to-webassembly-in-the-browser-zero-server-uploads-40ck</guid>
      <description>&lt;p&gt;Most online PDF editors and document converters follow the exact same server-side pattern: pick a sensitive file (an Aadhaar card, a bank statement, a signed contract), upload it over HTTPS to a remote Linux box, process it with Ghostscript or LibreOffice in &lt;code&gt;/tmp&lt;/code&gt;, and stream the result back.&lt;/p&gt;

&lt;p&gt;When we built &lt;strong&gt;&lt;a href="https://www.tools360.in/" rel="noopener noreferrer"&gt;Tools360&lt;/a&gt;&lt;/strong&gt;, that default trade-off felt broken—especially for everyday Indian KYC documents, competitive exam uploads, and financial spreadsheets. If modern laptops and Android phones can run FFmpeg, Tesseract, PDF engines, and LibreOffice inside &lt;strong&gt;WebAssembly (WASM) + Web Workers&lt;/strong&gt;, why should a user upload private documents to anyone's server at all?&lt;/p&gt;

&lt;p&gt;Here is what running &lt;strong&gt;120+ PDF, image, media, and developer utilities completely client-side&lt;/strong&gt; inside Next.js looks like in practice—and the real engineering problems we hit along the way.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Enforcing Zero-Upload at Build Time (Not Just as a Marketing Claim)
&lt;/h2&gt;

&lt;p&gt;Saying "we don't upload your files" is easy. Guaranteeing that no engineer accidentally introduces a server &lt;code&gt;fetch()&lt;/code&gt; or upload route months later requires automated guardrails.&lt;/p&gt;

&lt;p&gt;Every production build of &lt;a href="https://www.tools360.in/security" rel="noopener noreferrer"&gt;Tools360&lt;/a&gt; runs static and contract validation scripts before &lt;code&gt;next build&lt;/code&gt; starts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checking every retained tool against a client-engine registry (120 retained browser tools, zero server processing fallbacks).&lt;/li&gt;
&lt;li&gt;Enforcing strict Content-Security-Policy (&lt;code&gt;connect-src&lt;/code&gt; restricted to analytics telemetry and &lt;code&gt;'self'&lt;/code&gt;/&lt;code&gt;blob:&lt;/code&gt;, &lt;code&gt;worker-src 'self' blob:&lt;/code&gt;, &lt;code&gt;object-src 'none'&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Verifying cryptographic signing, image sanitization, and worker cancellation recovery locally in Node and browser test suites.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can read the full breakdown of how browser memory isolation works on the &lt;a href="https://www.tools360.in/security" rel="noopener noreferrer"&gt;Tools360 Security Architecture page&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Three Real Bottlenecks of Browser-Only WASM Document Pipelines
&lt;/h2&gt;

&lt;p&gt;Moving heavyweight document processing out of containers into browser tabs exposes constraints servers rarely care about:&lt;/p&gt;

&lt;h3&gt;
  
  
  a) Worker Initialization Timeouts &amp;amp; Clean Cancellation
&lt;/h3&gt;

&lt;p&gt;Large WASM bundles (like Office-to-PDF conversion or OCR) can stall on low-RAM mobile devices if a user cancels mid-run. Instead of leaving zombie Web Workers holding 150+ MB of heap memory, each worker lifecycle tracks an &lt;code&gt;AbortController&lt;/code&gt; and initialization timeout cleanup so clicking Retry spawns a fresh isolated worker instance cleanly.&lt;/p&gt;

&lt;h3&gt;
  
  
  b) Real PDF Resource Integrity vs. Naive Visual Overlays
&lt;/h3&gt;

&lt;p&gt;Drawing a black rectangle overlay on top of a PDF page does &lt;strong&gt;not&lt;/strong&gt; remove underlying PII text or image streams. For sensitive workflows like &lt;a href="https://www.tools360.in/tools/mask-aadhaar" rel="noopener noreferrer"&gt;client-side Aadhaar masking&lt;/a&gt; and &lt;a href="https://www.tools360.in/blog/mask-aadhaar-kyc-india" rel="noopener noreferrer"&gt;PDF privacy redaction&lt;/a&gt;, you have to flatten or strip underlying graphics/text operators cleanly rather than leaving recoverable text coordinates in the content stream.&lt;/p&gt;

&lt;h3&gt;
  
  
  c) Print-Ready Page Imposition vs. Simple N-Up Tiling
&lt;/h3&gt;

&lt;p&gt;A surprising engineering detail while building &lt;a href="https://www.tools360.in/tools/booklet-imposition" rel="noopener noreferrer"&gt;Booklet Imposition&lt;/a&gt; and &lt;a href="https://www.tools360.in/tools/n-up-pdf" rel="noopener noreferrer"&gt;N-Up PDF layouts&lt;/a&gt; was how often users confuse &lt;code&gt;2-up&lt;/code&gt; (pages &lt;code&gt;1, 2&lt;/code&gt; side-by-side) with true saddle-stitch booklet ordering (&lt;code&gt;4, 1&lt;/code&gt; on front / &lt;code&gt;2, 3&lt;/code&gt; on back). We documented the exact layout logic in our &lt;a href="https://www.tools360.in/blog/n-up-vs-booklet-imposition-printing-guide" rel="noopener noreferrer"&gt;N-Up vs. Booklet Imposition printing guide&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Open-Source Companion: Offline Exam Spec Dataset &amp;amp; Validator CLI
&lt;/h2&gt;

&lt;p&gt;While helping students fix rejected photographs and oversized PDFs for UPSC, SSC, IBPS, and NTA portals using our &lt;a href="https://www.tools360.in/tools/resize-image" rel="noopener noreferrer"&gt;Image Resizer&lt;/a&gt; and &lt;a href="https://www.tools360.in/tools/compress-pdf" rel="noopener noreferrer"&gt;PDF Compressor&lt;/a&gt;, we saw applicants repeatedly fail portal checks over trivial JPEG pixel dimensions or 10–50 KB cutoffs.&lt;/p&gt;

&lt;p&gt;So we launched an instant browser checker alongside an open-source &lt;strong&gt;zero-dependency MIT-licensed CLI and JSON spec dataset&lt;/strong&gt; that parses raw JPEG &lt;code&gt;SOF&lt;/code&gt; headers and &lt;code&gt;%PDF-&lt;/code&gt; bytes locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interactive Browser Validator (zero uploads): &lt;a href="https://www.tools360.in/exam-specs" rel="noopener noreferrer"&gt;2026 Indian Exam Photo, Signature &amp;amp; PDF Size Validator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub repo: &lt;a href="https://github.com/neerajgupta2304/india-exam-upload-specs" rel="noopener noreferrer"&gt;neerajgupta2304/india-exam-upload-specs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Step-by-step reference guide: &lt;a href="https://www.tools360.in/blog/upsc-ssc-photo-signature-size-guide-2026" rel="noopener noreferrer"&gt;2026 UPSC, SSC, IBPS &amp;amp; NTA Photo &amp;amp; Signature Size Guide&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are building WebAssembly worker pipelines or privacy-preserving browser tools, try out &lt;a href="https://www.tools360.in/" rel="noopener noreferrer"&gt;Tools360&lt;/a&gt; and feel free to inspect the validator repo!&lt;/p&gt;

</description>
      <category>webassembly</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>security</category>
    </item>
  </channel>
</rss>
