fm-labs / taurine

Tauri + Node.js stater - electron alternative packed with some goodies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Taurine - Tauri + Node.js stater - Electron alternative

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.

Taurine demo

Features

  • ⚛️ React
  • ⚡️ Vite
  • 🔒 Typescript
  • 🚀 Fastify
  • 📦 tRPC

Running

Clone the project

  git clone https://link-to-project my-project-name

Go to the project directory

  cd my-project-name

Install dependencies

  pnpm install

Start the server for development

  pnpm tauri dev

Building application

  pnpm tauri build

Comparison 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

Known Issues

  • After change on server window needs to close and re-open again
  • Building supports only platform that is running on

About

Tauri + Node.js stater - electron alternative packed with some goodies

License:MIT License


Languages

Language:TypeScript 52.2%Language:JavaScript 23.4%Language:CSS 16.7%Language:HTML 4.3%Language:Rust 3.5%