Tauri is a framework for building tiny, blazing fast binaries for all major desktop platforms. With Node.js which you are familiar it's great alternative for Electron.
Node.js is packed with your server code to single binary using pkg and then run using Tauri sidecar feature.
NOTE
⚠️ This starter isn't production ready and probably won't work on every platform. Also Tauri is not recommending using localhost protocol that is used here. For security reasons use tauri custom protocol.
- ⚛️ React
- ⚡️ Vite
- 🔒 Typescript
- 🚀 Fastify
- 📦 tRPC
Clone the project
git clone https://link-to-project my-project-nameGo to the project directory
cd my-project-nameInstall dependencies
pnpm installStart the server for development
pnpm tauri devBuilding application
pnpm tauri buildComparison with Electron
| Bundle | Taurine | Electron (electron-quick-start[1]) |
|---|---|---|
dmg (size) |
21.6mb |
-- |
app (size) |
63mb |
205mb |
[1] Barebone Electron application from electron-quick-start repo
- After change on server window needs to close and re-open again
- Building supports only platform that is running on
