DEV Community

Alex Spinov
Alex Spinov

Posted on

Tauri Has a Free Rust-Based Framework for Building Lightweight Desktop Apps

Tauri builds desktop apps with web technologies and a Rust backend. Apps are 10x smaller than Electron — around 600KB.

What You Get for Free

  • Tiny bundles — 600KB vs Electron 60MB
  • Rust backend — fast, memory-safe
  • Any frontend — React, Vue, Svelte
  • System tray — native OS integration
  • Auto-update — built-in updater
  • Multi-platform — Windows, macOS, Linux

Call Rust from JS

#[tauri::command]
fn greet(name: &str) -> String {
    format!("Hello, {}!", name)
}
Enter fullscreen mode Exit fullscreen mode
import { invoke } from '@tauri-apps/api/core';
const msg = await invoke('greet', { name: 'World' });
Enter fullscreen mode Exit fullscreen mode

Tauri vs Electron

Feature Tauri Electron
Size 600KB 60MB
Memory Low High
Backend Rust Node.js

Need desktop apps? Check my work on GitHub or email spinov001@gmail.com for consulting.

Top comments (0)