Documents
Home>Documents>Dev>Frontend

Building a Desktop Game with Tauri + Vite

4 min readJul 13, 2025Feb 22, 2026

Personal Experiment Project

new_prj is an experimental project building a desktop game with Tauri and Vite. It ran for a single day on July 13, 2025, across 4 commits.

What is Tauri?

graph TD
    A[Tauri] --> B[Rust Backend]
    A --> C[Web Frontend]
    B --> D[시스템 API 접근]
    C --> E[UI 렌더링]

    F[Electron] --> G[Node.js Backend]
    F --> H[Chromium]
    G --> I[높은 메모리 사용]
    H --> I

    style A fill:#c8e6c9
    style F fill:#ffcdd2

Tauri's advantages over Electron:

  • Bundle size: ~3 MB vs ~150 MB
  • Memory usage: ~30 MB vs ~150 MB
  • Security: Rust-based sandbox

Vite Configuration

// vite.config.ts
import { defineConfig } from 'vite';

export default defineConfig({
  server: {
    port: 3000,
    strictPort: true,
  },
  build: {
    target: 'esnext',
  },
});

What the 4 Commits Covered

  1. Project initialization (Tauri + Vite scaffolding)
  2. Add Vite config file
  3. Create empty CSS file
  4. Add basic game logic

It was a short project, but it confirmed Tauri's potential. The dramatically smaller bundle size compared to Electron was the standout takeaway.

Tauri vs Electron Summary

ItemTauriElectron
Bundle size~3 MB~150 MB
Memory~30 MB~150 MB
BackendRustNode.js
Learning curveSteepGentle
EcosystemGrowingMature

Experimenting with new technologies in personal projects is always worthwhile.

Tags
TauriViteDesktop AppRustGame