<?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: Pridestel</title>
    <description>The latest articles on DEV Community by Pridestel (@pridestel_38c2b6a5c5c0e53).</description>
    <link>https://dev.to/pridestel_38c2b6a5c5c0e53</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%2F4284591%2F913a3cc4-9e0b-4d9a-ac0f-98d01128d808.png</url>
      <title>DEV Community: Pridestel</title>
      <link>https://dev.to/pridestel_38c2b6a5c5c0e53</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pridestel_38c2b6a5c5c0e53"/>
    <language>en</language>
    <item>
      <title>Why I Built a ~35MB Rust + Tauri v2 Email Client With 100% On-Device Qwen-0.6B AI</title>
      <dc:creator>Pridestel</dc:creator>
      <pubDate>Sat, 05 Dec 2026 12:02:22 +0000</pubDate>
      <link>https://dev.to/pridestel_38c2b6a5c5c0e53/why-i-built-a-35mb-rust-tauri-v2-email-client-with-100-on-device-qwen-06b-ai-56ng</link>
      <guid>https://dev.to/pridestel_38c2b6a5c5c0e53/why-i-built-a-35mb-rust-tauri-v2-email-client-with-100-on-device-qwen-06b-ai-56ng</guid>
      <description>&lt;p&gt;Modern desktop email clients have a strange problem: to read plain text and HTML messages, most of them bundle an entire Chromium browser engine, eat 400–600MB of idle RAM, take seconds to cold-start, and now want $20+/month to send your private emails to a cloud LLM.&lt;/p&gt;

&lt;p&gt;I wanted an email client that felt like a native desktop tool—instant startup, minimal memory footprint, zero telemetry, and local AI that never touches the cloud.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;&lt;a href="https://pridestel-mail.pridestel.com/" rel="noopener noreferrer"&gt;Pridestel Mail&lt;/a&gt;&lt;/strong&gt; (&lt;code&gt;mail-core&lt;/code&gt; + Tauri v2 + embedded &lt;code&gt;llama.cpp&lt;/code&gt;), a free, cross-platform desktop email client for Windows, macOS, and Linux.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwl8t1v3xuvltdbn46176.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwl8t1v3xuvltdbn46176.png" alt="Pridestel Mail native desktop email client showing unified multi-account inbox, Mail Calendar and People navigation, and dark mode interface" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is how the architecture works and how we kept the idle memory footprint around &lt;strong&gt;~35MB&lt;/strong&gt; with a &lt;strong&gt;~0.1s cold start&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Ditching Electron for Rust + Tauri v2
&lt;/h2&gt;

&lt;p&gt;Most modern desktop apps pay a massive baseline tax before rendering a single pixel:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Pridestel Mail&lt;/th&gt;
&lt;th&gt;Typical Electron Client&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Idle RAM Usage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~35 MB&lt;/td&gt;
&lt;td&gt;400–600 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cold Start Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&amp;lt; 0.12s&lt;/td&gt;
&lt;td&gt;2–5s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Native Binary Size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~40 MB&lt;/td&gt;
&lt;td&gt;200–500 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI Execution&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100% On-Device CPU&lt;/td&gt;
&lt;td&gt;Cloud API ($20+/mo)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Telemetry&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Zero bytes outbound&lt;/td&gt;
&lt;td&gt;Analytics &amp;amp; sync servers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjp67p6wsfbozh1bk2ly8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjp67p6wsfbozh1bk2ly8.png" alt="Windows Task Manager memory comparison showing Pridestel Mail using 16.1 MB of RAM compared to Outlook using 555.3 MB" width="800" height="339"&gt;&lt;/a&gt;&lt;br&gt;
By pairing a standalone Rust engine (&lt;code&gt;mail-core&lt;/code&gt;) with &lt;strong&gt;Tauri v2&lt;/strong&gt; (using native OS WebView2 on Windows and WebKit on macOS/Linux), we eliminated bundled Chromium completely. The UI stays lightweight while Rust handles all heavy lifting: IMAP IDLE persistent sockets, local SQLite indexing across 50,000+ emails, and cryptographic operations.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Running Local AI Without Bloat (&lt;code&gt;llama.cpp&lt;/code&gt; + &lt;code&gt;Qwen-0.6B&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Shipping an AI assistant inside a lightweight desktop app sounds contradictory—until you look at modern small quantized models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd3zqswz24ydpes1ywnyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd3zqswz24ydpes1ywnyp.png" alt="Pridestel Mail On-Device AI Assistant settings showing hardware detection, built-in Lite and Standard local models, and Ollama or LM Studio support" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of wiring up external API keys or requiring a dedicated GPU:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Engine:&lt;/strong&gt; Embedded &lt;code&gt;llama.cpp&lt;/code&gt; running directly on standard physical CPU cores (tested on Intel Core i5 and AMD Ryzen 5).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; Quantized &lt;strong&gt;Qwen-0.6B&lt;/strong&gt; for fast summarization, action-item extraction, and reply drafting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed:&lt;/strong&gt; Sustained &lt;strong&gt;150+ tokens/sec&lt;/strong&gt; on CPU with sub-second response times on typical emails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supply-Chain Integrity:&lt;/strong&gt; Before executing any local inference, the app validates both the &lt;code&gt;llama.cpp&lt;/code&gt; runtime and model weights against &lt;strong&gt;pinned SHA-256 hashes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because inference runs entirely on-device, packet inspection confirms &lt;strong&gt;0 bytes emitted to any external AI server&lt;/strong&gt;. Your corporate or personal inbox never leaves your machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Security Architecture: Treating Every Email as Hostile
&lt;/h2&gt;

&lt;p&gt;An email client is essentially a remote HTML execution viewer connected to untrusted senders. We designed the security model around strict isolation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;OS Keychain Only:&lt;/strong&gt; Passwords and OAuth2 tokens never touch SQLite or plaintext config files—they live exclusively in Windows Credential Manager or macOS Keychain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML Sandboxing:&lt;/strong&gt; Incoming HTML emails are sanitized via &lt;strong&gt;DOMPurify&lt;/strong&gt; and rendered inside a locked-down iframe with a strict Content Security Policy (CSP) that blocks remote tracking pixels and scripts by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anti-Phishing Radar:&lt;/strong&gt; The URL inspector flags Punycode look-alike domains, bare IP links, hidden redirects, and unencrypted HTTP links before you click.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport Security:&lt;/strong&gt; Direct TLS 1.3 connections to IMAP, SMTP, and CalDAV/CardDAV servers with strict X.509 certificate verification and zero middleman proxies.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  4. Try the Live Browser Simulator or Download It
&lt;/h2&gt;

&lt;p&gt;If you don't want to install anything yet, I built an interactive desktop simulator right on the landing page where you can test inbox filtering, threaded views, and the on-device AI summary flow in your browser:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Landing Page &amp;amp; Live Demo:&lt;/strong&gt; &lt;a href="https://pridestel-mail.pridestel.com/" rel="noopener noreferrer"&gt;https://pridestel-mail.pridestel.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Platforms:&lt;/strong&gt; Windows 10/11, macOS, and Linux ($0, no subscription, zero telemetry)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  What I’d Love Feedback On
&lt;/h3&gt;

&lt;p&gt;If you build with Rust, Tauri v2, or &lt;code&gt;llama.cpp&lt;/code&gt;, I’d love to hear your thoughts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Are you using Qwen-0.6B or 1.7B models for local CPU tasks, and what quantization trade-offs have worked best for you?&lt;/li&gt;
&lt;li&gt;Which email/calendar workflows (JMAP, GPG/PGP, custom local prompts) would make you switch from Thunderbird or webmail?&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>rust</category>
      <category>ai</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
