<?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: William Sun</title>
    <description>The latest articles on DEV Community by William Sun (@lemonsaladstudio).</description>
    <link>https://dev.to/lemonsaladstudio</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%2F4191404%2F0ff9491a-2fc0-4f57-a484-ebc07c756b64.png</url>
      <title>DEV Community: William Sun</title>
      <link>https://dev.to/lemonsaladstudio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lemonsaladstudio"/>
    <language>en</language>
    <item>
      <title>I Built 400+ Tools That Never See Your Files — the Wasm and ONNX Version</title>
      <dc:creator>William Sun</dc:creator>
      <pubDate>Sun, 29 Nov 2026 02:22:40 +0000</pubDate>
      <link>https://dev.to/lemonsaladstudio/i-built-400-tools-that-never-see-your-files-the-wasm-and-onnx-version-27dk</link>
      <guid>https://dev.to/lemonsaladstudio/i-built-400-tools-that-never-see-your-files-the-wasm-and-onnx-version-27dk</guid>
      <description>&lt;p&gt;Every tool site wants your file first.&lt;/p&gt;

&lt;p&gt;Upload the PDF. Upload the photo. Wait for the spinner. Maybe make an account, because of course. Then a server somewhere does about thirty seconds of work on a document you didn't really want living on someone else's disk.&lt;/p&gt;

&lt;p&gt;I kept asking a dumb question: how much of that upload is actually necessary? Not "nice to skip." Necessary.&lt;/p&gt;

&lt;p&gt;So I gave myself one rule for &lt;a href="https://verystep.com" rel="noopener noreferrer"&gt;Verystep&lt;/a&gt;, the tool site I run, and I've held it through 431 English tools now:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If a tool needs your file to touch my server, it doesn't ship.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the engineering version of that story. Less philosophy, more "here's what broke."&lt;/p&gt;

&lt;h2&gt;
  
  
  The two tools everyone assumes need a server
&lt;/h2&gt;

&lt;p&gt;People accept that a unit converter can run in a page. They don't believe it about PDFs, and they really don't believe it about AI background removal. Fair. Those were the two I had to prove first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PDF work runs on qpdf, compiled to WebAssembly.&lt;/strong&gt; qpdf is a serious C++ library, older than most of the startups in this space. It parses, restructures and encrypts PDFs properly — it's not a JavaScript toy pretending. Compiled to Wasm and loaded into the page, it does the whole job in the tab. Your file becomes an &lt;code&gt;ArrayBuffer&lt;/code&gt;, the engine works on it in memory, and the result comes back as a download:&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="n"&gt;bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Uint8Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;arrayBuffer&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="c1"&gt;// ... hand bytes to the Wasm engine, get modified bytes back ...&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createObjectURL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Blob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;outBytes&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="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/pdf"&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="n"&gt;downloadLink&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// nothing crossed the network&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Merge, split, protect, unlock — same pattern. At no point is there a request carrying your document anywhere, mostly because there is no code in the page that could make one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Background removal runs a real segmentation model in the browser.&lt;/strong&gt; That's BiRefNet, running through ONNX Runtime Web. The honest cost hits on first load: the model itself is a big download, and you wait for it in a way a server tool wouldn't make you wait. After that, though, your photo stays put. A portrait of your kid does not go to a server farm so an algorithm can find the edges of their hair.&lt;/p&gt;

&lt;p&gt;That trade — a slow first load in exchange for never sending the file — is the whole product, really. Everything else is details.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Safari crash that rewrote my assumptions
&lt;/h2&gt;

&lt;p&gt;Here's the part I'd rather skip, which is exactly why it belongs here.&lt;/p&gt;

&lt;p&gt;The background remover worked on desktop Chrome. It worked on Edge. Then iPhones started dying. Not an error message. Not a caught exception I could log. Safari just showed "A problem occurred repeatedly" and reloaded, because the WebContent process itself had crashed.&lt;/p&gt;

&lt;p&gt;The culprit was the WebGPU execution provider in the JSEP build of ONNX Runtime Web. Creating a session with it hard-crashes WebKit. No JavaScript exception fires, so every neat &lt;code&gt;try/catch&lt;/code&gt; fallback I'd written sat there doing nothing while the tab died around it.&lt;/p&gt;

&lt;p&gt;The fix, once I finally pinned it down:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detect WebKit/iOS up front — AppleWebKit in the user agent, minus Chrome, Edge, Opera and Firefox, plus any iOS device.&lt;/li&gt;
&lt;li&gt;On those browsers, load the basic Wasm bundle instead of the JSEP build, and use the &lt;code&gt;wasm&lt;/code&gt; execution provider only. One thread.&lt;/li&gt;
&lt;li&gt;Cap the result canvas. iOS Safari has a hard canvas limit, so I hold the long edge to 4,096 px and the total area to 16,777,216 px. Before that cap, a 48MP photo was building a canvas of roughly 200 MB. On a phone. Yeah.&lt;/li&gt;
&lt;li&gt;Free the model buffer after the session is created, instead of holding tens of megabytes the page no longer needs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And one more thing, learned the hard way: the model input is fixed at &lt;code&gt;[1, 3, 1024, 1024]&lt;/code&gt;. There's no "lighter mode for phones" without re-exporting and re-validating the model. Pretending otherwise would have shipped a worse tool with a confident label on it.&lt;/p&gt;

&lt;p&gt;Lesson I'd hand to anyone shipping local inference: &lt;strong&gt;test on a real iPhone early, not after launch, and never trust a fallback that depends on catching an error the platform kills the process before throwing.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The day HTTP 200 lied to me
&lt;/h2&gt;

&lt;p&gt;Smaller story, same moral.&lt;/p&gt;

&lt;p&gt;In a recent batch deployment I shipped the Python files for a set of new tools and missed the static engine assets — the qpdf &lt;code&gt;.js&lt;/code&gt; and &lt;code&gt;.wasm&lt;/code&gt; files, a video library bundle. Every page returned 200. Every check I ran at the HTTP layer passed. The tools themselves were dead on arrival, because the engines they needed weren't on the server.&lt;/p&gt;

&lt;p&gt;Page loads are not acceptance tests. Not for this kind of site. Now the rule in my deploy checklist is blunt: the file list comes from the full set of changed files, static assets included, and any tool with a local engine gets one real run in a real browser — do the actual merge, the actual removal — before I call it live.&lt;/p&gt;

&lt;p&gt;If you take one transferable thing from this post, take that checklist rule. It costs ten minutes. It would have saved me a public broken launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this architecture costs, honestly
&lt;/h2&gt;

&lt;p&gt;It isn't free. It just sends the bill to me instead of to the user.&lt;/p&gt;

&lt;p&gt;First loads are heavy. Old phones struggle with the heavier tools, even with the caps. There's no sync, no history, no "your recent files," because there's nothing on my side to sync from. People ask for those features sometimes. My honest answer stays the same: that product exists, it's called every other tool site, and it costs you your files.&lt;/p&gt;

&lt;p&gt;What I get back is one sentence I can put on the site with no asterisk: your data never leaves your device. Not "encrypted in transit and deleted within 24 hours." Never leaves. People who work with contracts, client documents, medical forms or family photos hear the difference straight away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run the Network tab test yourself
&lt;/h2&gt;

&lt;p&gt;Don't take my word for any of this. Seriously — the test takes a minute.&lt;/p&gt;

&lt;p&gt;Open devtools, go to Network, then use any tool on any site, mine included. If a file gets uploaded, you'll see it leave: a request carrying your document, usually the biggest thing in the list. Run the same test on a local-only tool like the &lt;a href="https://verystep.com/pdfmerge/" rel="noopener noreferrer"&gt;PDF merger&lt;/a&gt; or the &lt;a href="https://verystep.com/background-remover/" rel="noopener noreferrer"&gt;background remover&lt;/a&gt; and the only traffic is the page and its engine loading. Your file never appears on the wire.&lt;/p&gt;

&lt;p&gt;"We take privacy seriously" is a sentence. The Network tab is evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question I'm left with
&lt;/h2&gt;

&lt;p&gt;The technical excuses for upload-first design are mostly gone. Wasm is mature. Local inference works, Safari tantrums and all. What's left is habit, and a business model that needs your file — and your account, and your data — to make its numbers work.&lt;/p&gt;

&lt;p&gt;I get that part. A site with no accounts and no data has very little to sell. I've made my peace with it; I'd rather run the smaller, stranger product.&lt;/p&gt;

&lt;p&gt;If you build tools, try shipping just one feature the local-only way. Watch what it does to your design decisions. It clarifies things fast — usually by lunch.&lt;/p&gt;

&lt;p&gt;— William Sun, Lemon Salad Studio&lt;/p&gt;

</description>
      <category>webassembly</category>
      <category>javascript</category>
      <category>privacy</category>
      <category>webdev</category>
    </item>
    <item>
      <title>No Server, No Database, No Accounts: What I Learned Building Browser-Only Tools</title>
      <dc:creator>William Sun</dc:creator>
      <pubDate>Wed, 28 Oct 2026 13:06:09 +0000</pubDate>
      <link>https://dev.to/lemonsaladstudio/no-server-no-database-no-accounts-what-i-learned-building-browser-only-tools-1n0a</link>
      <guid>https://dev.to/lemonsaladstudio/no-server-no-database-no-accounts-what-i-learned-building-browser-only-tools-1n0a</guid>
      <description>&lt;p&gt;I got tired of the same routine.&lt;br&gt;
I'd need to convert one HEIC photo, or check a file's EXIF data, or work out a loan payment. I'd land on some converter site, upload the file to a stranger's server, wait, download the result, and then wonder where that file actually went.&lt;br&gt;
It bugged me. Most of these jobs don't need a server at all.&lt;br&gt;
So I built verystep.com — a growing collection of free utilities that run entirely in the browser. No backend doing the work. No database. No sign-ups. Your files and inputs stay on your device because, well, there's nowhere for them to go.&lt;br&gt;
This post is the making-of. The choices, the trade-offs, and a few things I got wrong first.&lt;br&gt;
The one rule I started with&lt;br&gt;
If a job can be done client-side, it must be done client-side.&lt;br&gt;
That sounds simple. It gets strict fast.&lt;br&gt;
It means no uploading images to convert them. No sending pasted text to an API to count the words. No storing calculator inputs "for your convenience."&lt;br&gt;
It also means I have to be honest about the exceptions. Two tools fetch public data — weather and currency rates — and they call keyless public APIs directly from your browser. That call is disclosed in the privacy policy. Nothing you type goes along for the ride.&lt;br&gt;
Everything else? Local. Close the tab and it's gone.&lt;br&gt;
The boring architecture (that's the point)&lt;br&gt;
The server side is deliberately dull.&lt;br&gt;
One small Flask app serves the pages. Each tool lives at its own path, like /heic/ or /compound/, with its own plain JavaScript doing the actual work on the page. There's no shared user system because there are no users. No sessions. No uploads folder filling up with other people's photos at 3 a.m.&lt;br&gt;
I like dull here.&lt;br&gt;
Dull means there's less to leak, less to patch, and less to pay for. It also means the privacy story isn't a promise I have to keep — it's a property of how the thing is built. I can't hand over data I never received.&lt;br&gt;
Example 1: Converting HEIC photos without an upload&lt;br&gt;
The HEIC converter is a good test of the rule. iPhone photos are HEIC, half the world can't open HEIC, so people upload them to random sites every day.&lt;br&gt;
I didn't want to be one of those sites.&lt;br&gt;
The page uses the open-source heic2any library, self-hosted on my own domain instead of loaded from a third-party CDN. The conversion happens in a blob, in your tab:&lt;br&gt;
import heic2any from "./vendor/heic2any.js";&lt;/p&gt;

&lt;p&gt;const out = await heic2any({ blob: file, toType: "image/jpeg", quality: 0.92 });&lt;br&gt;
const url = URL.createObjectURL(out);&lt;br&gt;
downloadLink.href = url; // the file never left the device&lt;br&gt;
Self-hosting the library mattered to me. If the script comes from someone else's CDN, I've outsourced part of my privacy claim. Self-host it, pin the version, and the page you load is the page I checked.&lt;br&gt;
Short version: pick a file, get a JPG. Nothing crosses the wire.&lt;br&gt;
Example 2: Putting state in the URL, not in a database&lt;br&gt;
Calculators raised a different problem. People want to share results.&lt;br&gt;
"Here's the loan breakdown I meant" is a normal thing to send a partner or a colleague. If I don't have accounts or saved records, how does sharing work?&lt;br&gt;
The URL does it.&lt;br&gt;
For the main calculators, the inputs are encoded in the query string. Change a value and the link updates. Send the link and the other person lands on the same inputs and the same result, recomputed live on their machine:&lt;br&gt;
// write state&lt;br&gt;
const params = new URLSearchParams({ principal, rate, years, monthly });&lt;br&gt;
history.replaceState(null, "", "?" + params.toString());&lt;/p&gt;

&lt;p&gt;// read state on load&lt;br&gt;
const q = new URLSearchParams(location.search);&lt;br&gt;
if (q.has("principal")) principalInput.value = q.get("principal");&lt;br&gt;
No short-link service. No ID to look up. The link is the record.&lt;br&gt;
There's a side benefit I didn't expect: debugging got easier. When someone reports a weird result, they can just paste the link. I see exactly what they saw.&lt;br&gt;
Example 3: Checking calculator maths like it matters (because it does)&lt;br&gt;
A percentage widget can be sloppy and nobody gets hurt. A mortgage or take-home-pay calculator can't.&lt;br&gt;
So I don't trust my own JavaScript just because it runs.&lt;br&gt;
For each finance calculator, I built an independent mirror of the formula — separate code, written from the source definitions — and ran known inputs through both. They have to agree to the cent before a tool ships. If they disagree, one of them is wrong, and I find out which.&lt;br&gt;
Sounds slow. It is, a bit.&lt;br&gt;
But it caught real bugs. Rounding in the wrong place. A tax cap applied a step too early. The kind of error that still looks right on the page, which is exactly why it's dangerous.&lt;br&gt;
My rule since then: a plausible-looking number is not a verified number.&lt;br&gt;
Even the AI tool stays on the device&lt;br&gt;
The newest tool is a background remover, and it was the hardest test of the whole idea.&lt;br&gt;
It runs an open-source model (BiRefNet-lite) through ONNX Runtime Web, right in the browser — WebGPU where that's available, WASM as the fallback. The model file is self-hosted, and the page says plainly that the first use downloads it, because a big download you didn't agree to is its own kind of rude.&lt;br&gt;
Your photo still isn't uploaded. The model comes to the photo, not the other way round.&lt;br&gt;
That one taught me the most about real hardware, by the way. Emulators and headless tests said "fine." Real phones said otherwise. I test on actual devices now before I believe anything works.&lt;br&gt;
What this design costs me&lt;br&gt;
I won't pretend it's all upside.&lt;br&gt;
First loads can be heavy. Libraries and models ship to the browser. I lazy-load what's tool-specific and cache aggressively, but there's no hiding physics.&lt;br&gt;
Devices vary wildly. A conversion that's instant on a desktop can crawl on an old phone. I have to design for the slow case, not the demo case.&lt;br&gt;
No sync, ever. There's nothing to sync to. For single-purpose tools I think that's fine — nobody needs their coin flip history in the cloud — but it's a real limit.&lt;br&gt;
Some jobs just don't fit. If a tool genuinely needs fresh server-side data or heavy shared state, it doesn't belong in this collection. I say no to those instead of bolting on a backend for one page.&lt;br&gt;
Those limits are the price. I pay them on purpose.&lt;br&gt;
What I'd tell someone building this way&lt;br&gt;
Keep the rule simple enough that you can't negotiate with yourself. Mine fits in one line, and every new tool has to pass it.&lt;br&gt;
Verify numbers against a second implementation. Browsers are forgiving; arithmetic shouldn't be.&lt;br&gt;
And test on the hardware your visitors actually own. Not once. Every time it matters.&lt;br&gt;
New tools get added regularly, and each one has to earn its place the same way — useful on its own, honest about what it does, and quiet about you.&lt;br&gt;
Have a look, tell me what breaks&lt;br&gt;
The toolbox lives at verystep.com. It's free, there's nothing to sign up for, and if a tool saves you an upload to a site you don't trust, it did its job.&lt;br&gt;
I'd genuinely like feedback — especially the unkind kind. Which tool felt slow? Which result looked off? What small utility do you still have to upload a file to do, and wish you didn't?&lt;br&gt;
Drop it in the comments. I read all of them, and the bug reports get fixed first.&lt;br&gt;
— William Sun, Lemon Salad Studio&lt;/p&gt;

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