<?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: Sidharth Krishnakumar</title>
    <description>The latest articles on DEV Community by Sidharth Krishnakumar (@sidharth-1212).</description>
    <link>https://dev.to/sidharth-1212</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3892837%2Fa09a832c-ad9d-472a-9176-ec3af7114564.jpg</url>
      <title>DEV Community: Sidharth Krishnakumar</title>
      <link>https://dev.to/sidharth-1212</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sidharth-1212"/>
    <language>en</language>
    <item>
      <title>Why I built a Zero-Server PDF Editor with React &amp; pdf-lib (and skipped WASM)</title>
      <dc:creator>Sidharth Krishnakumar</dc:creator>
      <pubDate>Wed, 22 Apr 2026 16:28:29 +0000</pubDate>
      <link>https://dev.to/sidharth-1212/why-i-built-a-zero-server-pdf-editor-with-react-pdf-lib-and-skipped-wasm-4cpn</link>
      <guid>https://dev.to/sidharth-1212/why-i-built-a-zero-server-pdf-editor-with-react-pdf-lib-and-skipped-wasm-4cpn</guid>
      <description>&lt;p&gt;&lt;strong&gt;The Privacy Bottleneck&lt;/strong&gt;&lt;br&gt;
Merging tax documents or signing contracts often forces a compromise: convenience vs. security. Standard free tools require uploading sensitive data to remote cloud servers, leading to potential data persistence and server log exposure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The objective:&lt;/strong&gt; Zero data leakage. Files must never leave the local device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Engineering Decisions:&lt;/strong&gt; Browser RAM vs. 500MB PDFs&lt;br&gt;
The common architectural choice for browser-side manipulation is WebAssembly (WASM). However, WASM introduces specific friction:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Large Bundle Sizes:&lt;/strong&gt; Shipping full C++ or Rust binaries to the client adds overhead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initialization Latency:&lt;/strong&gt; Significant delays occur while the engine boots.&lt;/p&gt;

&lt;p&gt;Utilizing pure JavaScript via the pdf-lib library offers a more lightweight alternative, provided the state management is handled with precision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Technical Stack:&lt;/strong&gt; Web Workers &amp;amp; ArrayBuffers&lt;br&gt;
To maintain a responsive UI and prevent main-thread freezing, heavy operations offload to a Web Worker.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transferable Objects:&lt;/strong&gt; Utilizing ArrayBuffers ensures data moves between threads without the memory overhead of cloning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coordinate Mapping:&lt;/strong&gt; Custom logic handles signature placement, ensuring visual fidelity regardless of the document’s original scale or orientation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Outcome&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;A 100% serverless, ad-free utility. Data remains local. Processing occurs in milliseconds. No paywalls, no file-size limits, and zero external data calls.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Deployment: &lt;a href="https://pdfstudio-steel.vercel.app" rel="noopener noreferrer"&gt;https://pdfstudio-steel.vercel.app&lt;/a&gt;&lt;/strong&gt;/&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Working on improvements and feature additions, any suggestions are welcome!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>performance</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
