Skip to main content
Lasita
Menu

How Lasita keeps your files on your device

Saying “we respect your privacy” is easy. This page explains how the tools are built so that your files physically cannot be sent anywhere, and how you can check that yourself.

In plain English

  • The work happens in your browser. When you convert or compress a file, the program doing the work is downloaded to your browser tab and runs there, like a desktop app would.
  • The tool is walled off from the internet. On DevKit, Image Compressor and Date Calculator, the tool runs in a separate locked-down page whose security rules forbid it from sending data anywhere.
  • You can verify it in a minute. Open your browser’s developer tools, use a tool, and watch the network tab. Steps are at the bottom of this page.

The rest of this page is the technical detail, written for developers and security reviewers.

1. Dual-Origin Cross-Origin Sandbox Isolation

Modern browsers strictly isolate JavaScript execution, DOM access, and storage per origin (scheme + host + port). Three of Lasita’s live applications — DevKit, Image Compressor, and Date & Days Calculator — split the public content website from the interactive tool workspace across two distinct origins:

Public Content Origin

devkit.lasita.dev · images.lasita.dev · dates.lasita.dev

Serves static Astro documentation, FAQs, guides, sitemaps, and cookieless page analytics (or optional AdSense units when enabled). This origin never receives your pasted JSON, regexes, image bytes, or calendar dates.

Isolated Tool Sandbox Origin

devkit-frame · images-frame · dates-frame (.lasita.dev)

Executes the Preact/WebAssembly tool inside a noindex cross-origin iframe locked down by strict HTTP headers: connect-src 'none' (or 'self' for verified WASM assets), form-action 'none', and Trusted Types. Only layout and status messages cross the validated postMessage bridge (height, theme, and a status word such as working or done), never your files or text.

Because the two origins are separated by the browser’s Same-Origin Policy, no third-party script running on a public content page can read inputs, inspect DOM textareas, or access storage inside the isolated tool frame.

2. Security Controls by Live Application

Runs unmodified libheif-js and MozJPEG WebAssembly codecs inside local Web Workers with automatic EXIF GPS sanitization.

  • 100% browser-side WebAssembly decoding (libheif-js + MozJPEG) — zero file uploads
  • Strips GPS location automatically while preserving EXIF DateTimeOriginal
  • 100% default JPG quality, lossless PNG, lightweight WebP, and multi-page PDF
  • Custom max-width resizing, live preview, and folder ZIP export up to 10 photos

Dual-origin isolation: content pages run on devkit.lasita.dev while interactive workspaces execute inside devkit-frame.lasita.dev with connect-src none.

  • Lossless RFC 8259 JSON Formatter & Validator preserving 64-bit integers, 1.0 decimals, and duplicate keys (up to 10 MB in Web Workers)
  • Regex Tester & Plain-English Explainer with named capture groups, replace preview, and a 500 ms ReDoS timeout guard
  • Unix Timestamp & IANA Timezone Converter with 9/10/13-digit & negative epoch auto-detection
  • UTF-8 Base64/Base64URL/URL/HTML Encoder, local unverified JWT inspector, and OKLCH WCAG 2.1 AA/AAA Contrast Checker

Image Compressor

images.lasita.dev →

Dual-origin WASM sandbox (images-frame.lasita.dev) with SHA-256 verified binaries, strict CSP, and off-main-thread Web Worker compression.

  • Exact Target Size Solver binary-searches quality (≤ 7 passes) and steps dimensions with Lanczos3 to hit 50 KB or 100 KB portals
  • Native-grade WebAssembly encoders: MozJPEG, libwebp, image-q + OxiPNG, and libavif
  • Before/After interactive split-screen comparison modal with 1:1 pixel zoom and keyboard support
  • Strips GPS/camera EXIF by default, normalizes upright orientation, converts Display P3 → sRGB, and exports batch ZIPs

Date & Days Calculator

dates.lasita.dev →

Runs Howard Hinnant integer-day math inside an offline Workbox PWA and cross-origin sandbox (dates-frame.lasita.dev) with connect-src none.

  • Pure integer-day calendar engine (zero JS Date arithmetic) verified across 5 global timezones
  • Days Between & Weeks Between with inclusive end-date (+1 day) toggle and pre-1582 proleptic Gregorian notice
  • O(1) Working Days calculator supporting Sat+Sun, Fri+Sat, Sun-only, custom weekend masks, and up to 1,000 private holidays
  • Exact Age & Add/Subtract modes with explicit month-end clamping and selectable Feb 28 / Mar 1 leap-birthday rules

3. Verify It Yourself in Browser DevTools (60 Seconds)

You never have to trust a privacy claim without checking it. Follow these four steps on any Lasita application:

  1. Open any live Lasita tool — for example, devkit.lasita.dev/json-formatter or images.lasita.dev/image-compressor .
  2. Press F12 (or Cmd + Option + I on macOS), select the Network tab, and click the clear button once the page finishes loading.
  3. Drop a photo, paste a JSON payload, or enter dates and run the tool. Confirm zero POST, PUT, or WebSocket requests transmit your input bytes off-device.
  4. Inspect the HTTP response headers of the embedded *-frame.lasita.dev document to confirm the active Content-Security-Policy header enforcing connect-src 'none' (or static self-only WASM) and require-trusted-types-for 'script'.