DEV Community

Ryoma
Ryoma

Posted on

Building a 100% Client-Side Multilingual Utility Suite: How Modern Web APIs Replace Backend Servers

Most everyday web utilities—from merging PDFs and removing image backgrounds to running network speed tests—still rely on heavy backend servers. Users upload private files to remote storage, wait on network round-trips, and burn cloud compute credits for tasks that modern browsers can execute locally.

While building Liora Tools, I set out to replace traditional server-side processing with native browser APIs and WebAssembly. Every utility runs 100% client-side in browser memory across six languages (Spanish, Portuguese, French, German, Turkish, and Japanese), with zero database storage and zero server uploads.

Here is a breakdown of the browser technologies powering each category of tools in the suite—and why keeping compute on the client makes web utilities faster and safer.


1. Client-Side Document & PDF Processing

Handling PDFs and document conversions used to require server-side Python workers or Ghostscript binaries. By combining pdf-lib with Mozilla's pdf.js and the native FileReader API, all binary manipulation happens directly in the user's RAM:

  • Merging & Compressing PDFs: Tools like Unir PDF and Compressor de PDF read file ArrayBuffer streams locally, assemble or optimize the PDF byte structure in milliseconds, and trigger a local Blob download without ever transmitting sensitive documents over the network.
  • Image-to-PDF & Text Extraction: Utilities for converting JPGs to PDF or extracting text from PDFs to Word parse page coordinates and embedded images straight on the client.

2. Browser-Native Image, QR & Network Diagnostics

Modern HTML5 <canvas> and Fetch stream APIs eliminate the need for dedicated media or diagnostic microservices:

  • Background Removal & QR Generation: Canvas pixel manipulation allows background removal tools to isolate foreground subjects locally, while lightweight matrix encoders render crisp standard QR codes and instant Wi-Fi access codes (like WLAN-QR-Code) directly as downloadable PNGs or SVGs.
  • Edge-Based Speed Diagnostics: Instead of maintaining expensive speed-test servers, browser diagnostics like Test de Débit combine performance.now() high-resolution timers with ReadableStream byte chunks from global edge CDNs to measure latency, download, and upload throughput accurately.

3. Cryptographic Security, Text & Developer Helpers

Everyday developer and writing utilities benefit massively from zero-latency local execution:

  • Cryptographic Entropy: Instead of relying on predictable Math.random() calls, password generators and randomizers use window.crypto.getRandomValues() to generate strong passwords, random numbers, and interactive decision wheels locally.
  • Zero-Dependency Text & CSS Tools: Live word counters, Instagram character limit checkers, case converters, Lorem Ipsum generators, and CSS minifiers run pure string and regex pipelines on every keystroke with zero network calls.

4. Precision Localization & Financial Calculators

Supporting multiple languages globally requires more than translating button labels—currency formats, tax rules, and time zones vary by region:

  • Native Intl Formatting: Using the browser's built-in Intl.DateTimeFormat and Intl.NumberFormat APIs handles exact world clocks, day counters, and localized currency conversions without shipping heavy third-party date libraries.
  • Regional Financial & Daily Math: From percentage calculators (like パーセント計算) and BMI estimators to working-hours calculators, gross-to-net salary estimators, and local bonus calculators, keeping the math client-side ensures instant answers and zero tracking.

Key Takeaways for Web Developers

Before spinning up a backend API or serverless function for a utility app, check what the browser can already do natively. Between ArrayBuffer, HTML5 Canvas, Web Crypto, and Intl, you can ship faster, privacy-preserving tools that scale infinitely at virtually zero hosting cost.

If you want to test how these client-side tools behave in production, feel free to explore the suite and share any feedback on performance or browser compatibility in the comments!

Top comments (0)