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
- Project initialization (Tauri + Vite scaffolding)
- Add Vite config file
- Create empty CSS file
- 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
| Item | Tauri | Electron |
|---|---|---|
| Bundle size | ~3 MB | ~150 MB |
| Memory | ~30 MB | ~150 MB |
| Backend | Rust | Node.js |
| Learning curve | Steep | Gentle |
| Ecosystem | Growing | Mature |
Experimenting with new technologies in personal projects is always worthwhile.