DEV Community

Cover image for Building PelSure: Why I Chose Tauri v2, Rust & React 19 Over Electron for an Offline-First Desktop OS.
Better Call Sohal
Better Call Sohal

Posted on

Building PelSure: Why I Chose Tauri v2, Rust & React 19 Over Electron for an Offline-First Desktop OS.

What I Built

Most independent insurance brokers are trapped in a dilemma: they either rely on fragile Excel sheets and clunky, 15-year-old on-premise software, or they are forced into expensive, per-seat cloud SaaS platforms where their clients' most sensitive data sits on remote servers with constant latency.

I built PelSure (https://pelsure.peltelldesignco.com/) — a zero-cloud, local-first desktop operating system engineered specifically for independent insurance brokers worldwide.

Core Architecture & Technical Highlights:
Tauri v2 + Rust Core: Instead of shipping a bloated 150MB+ Chromium runtime with Electron that consumes 1GB+ of idle RAM, PelSure compiles into a native binary under 25MB using Tauri v2 and the OS's native WebView2 engine.
Local-First SQLite Engine: All client records, policies, claims, and statutory records reside entirely in a physical local SQLite database using Drizzle ORM. Zero cloud latency. Zero server outage risk. 100% data sovereignty.
React 19 & Tailwind CSS Design System: Engineered a bespoke dark-mode interface (#0A0E17 luxury canvas with #2DD7C5 turquoise accents) with high-density table shells, custom floating popovers, and keyboard-first navigation.
Local AI Pipeline: Integrated a modular AI engine (packages/pelsure-ai-plugin) designed to parse policy schedules, extract coverage limits, and reconcile commission slips directly on the client machine.
Demo
Live Landing Page & Documentation: pelsure.peltelldesignco.com
Core Desktop Suite Features:
Client & Policy Hub: Comprehensive tracking of motor, health, commercial, and property lines.
Automated Renewal & Follow-up Matrix: Built-in calculation engine for lapsed policies, expiration warnings, and commission tracking.
Local Document Generator: Generates compliant client proposals, payment receipts, and policy certificates without uploading data to third-party PDF cloud APIs.

(Screenshots and architecture diagrams are featured on the live site).

Tech Stack & Partner Technologies
GitHub & Open Source Tooling: Managed source code and automated build pipelines utilizing GitHub Actions for cross-platform desktop compilation.
Tauri v2 (Rust): High-speed IPC bridge connecting the React frontend to low-level SQLite storage and native OS windowing.
React 19 & TypeScript: State management powered by Zustand, utilizing strict typing and component decoupling across 30+ production modules.
SQLite + Drizzle ORM: Zero-configuration local disk persistence with additive migration scripts for seamless offline upgrades.
Phosphor Icons & Tailwind CSS: Enterprise-grade design system eliminating generic browser controls in favor of custom, accessible UI components.
The Build & Sprint Experience

Building PelSure in an intensive sprint was an exercise in extreme constraint and engineering discipline:

The Desktop WebView Challenge: Guaranteeing that React 19 dynamic dialogs, document print previews, and high-elevation popovers rendered identically on desktop WebViews without breaking window frame controls.
Offline Data Integrity: Unlike typical web apps that push validation down to a cloud server, PelSure had to handle strict relational constraints (claims tied to active policies, policies linked to verified clients) entirely within local SQLite transactions.
Escaping the "AI Toy" Trap: Instead of building another generic chat prompt wrapper, the focus was on real utility: solving the painful, daily administrative workflow of independent businesses.
Key Takeaway

Desktop software is having a massive renaissance. Developers don't want 2GB RAM-eating apps, and privacy-conscious professionals don't want their livelihood locked behind third-party cloud servers. Tauri v2 paired with modern web standards makes it possible for a solo developer to build software that competes with multi-million dollar SaaS platforms.

Top comments (0)