Skip to main content

No Backend by Design: Why Failover Is the Wrong Question for Browser Tools

When the work happens in the tab, there is no render queue to fail over — only a file, a browser API, and a download.

Updated 4 min readMarkdown
No Backend by Design: Why Failover Is the Wrong Question for Browser Tools

The question hiding in a trending ops story

A discussion on the Hacker News front page today makes a simple point: if you want failover to work well, you have to use it often. That is good advice for a service with a database, a queue and a render worker. It is the wrong question for a tool that never sends your file anywhere.

Toolcin is a set of browser-only utilities: PDF compression, HEIC conversion, video trims, spreadsheets, archives and text tools. The file stays on your device. The browser reads it, a library does the work, and you download the result. There is no upload endpoint, no render queue, and no session to fail over.

What actually runs

The pages are static. Where a heavy job is needed, the engine is fetched once from our own /assets/ folder:

  • pdf-lib and pdf.js for PDF edits and previews
  • SheetJS for spreadsheets
  • JSZip for archives, jsQR for scanning
  • ffmpeg compiled to WebAssembly for media work
  • libheif for HEIC decoding
  • Tesseract for OCR

None of these are called as a remote service. They are vendored libraries loaded into the tab. Nothing on a normal page talks to a server. The file is read, transformed, and written entirely in the tab.

Why "failover" does not apply

A cloud converter has three failure domains: the upload, the worker that processes it, and the storage that holds the result. You need retries, a queue, a replica, and a story for partial uploads.

A browser tool collapses those into one: your tab. If something breaks, the file is still on your disk. Reload the page and pick it again. There is no half-finished job sitting on somebody else's server, and no cleanup cron at 3 a.m.

That does not make the engineering easier. It moves it.

The problems that replace failover

1. Shipping the runtime. A WebAssembly engine is large. Cloudflare Pages has a file-size limit, so the runtime has to be served carefully with versioned URLs and long cache headers. A stale cached worker that still expects the old core can break a tool for weeks. We pin runtime versions in the build output rather than relying on a bare filename.

2. Memory, not disk. Large videos and high-resolution photos can exhaust tab memory before the browser gives you a friendly error. A client-side tool must say what it can handle, and fail clearly when it cannot.

3. First load versus later loads. The first media job downloads the engine once. Later jobs reuse it. Anyone claiming "works fully offline from the first click" for a WASM tool is describing a different product.

4. Honest conversion limits. HEIC to JPG can drop transparency and metadata. OCR needs model data. A compressed PDF is a new file, not a magic rewrite of the original. Good tools say this on the page.

5. Version discipline. Every vendored library needs a name, a license and a visible location on the page. We list ours in the source and in the site's library notes.

A checklist for building one

  • Keep file bytes in the tab; never post them to an API.
  • Vendor and name every library, with its license.
  • Version runtime files and set cache headers deliberately.
  • Show a clear limit before a user picks a huge file.
  • Make the failure message actionable: reload, retry, or choose a smaller file.
  • Collect nothing that relates to the file.

Where to start

Toolcin puts these ideas into practice across 844 tools, with no upload step and no account. Pick a file, do the job, download the result: https://toolcin.pages.dev/

No comments yet. Be the first to comment.