Consider Tauri instead of Electron

It’s still quite early days, but Tauri is shaping up to be a very strong contender to Electron. I’m not part of their team, just an enthusiast.

Tauri is written in Rust and based on (and increasingly collaborating directly with-) webview.

Comparison between Tauri and Electron

Tauri Electron
Binary Size MacOS 0.6 MB 47.7 MB
Memory Consumption MacOS 13 MB 34.1 MB
Interface Service Provider Varies Chromium
Backend Binding Rust Node.js (ECMAScript)
Underlying Engine C/C++ V8 (C/C++)
FLOSS Yes No
Multithreading Yes No
Bytecode Delivery Yes No
Can Render PDF Yes No
Multiple Windows Soon Yes
GPU Access Yes Yes
Auto Updater Soon Yes (1)
Cross Platform Yes Yes
Custom App Icon Yes Yes
Windows Binary Yes Yes
MacOS Binary Yes Yes
Linux Binary Yes Yes
iOS Binary Soon No
Android Binary Soon No
Localhost Server Yes Yes
No localhost option Yes No
Desktop Tray Soon No

Notes

  1. Electron has no native auto updater on Linux, but is offered by electron-packager
5 Likes

Interesting, thanks! /cc @rudolfs @xla

The focus on security is particularly interesting to us.

1 Like

@abbey @cloudhead I like their roadmap on their homepage. I think we should do something similar

I like the idea of using some alternative to electron in general, but I wonder how we could fit the additional work into our current plan of execution.

2 Likes

This table is not correct. Electron is FLOSS, and node has threads (in the form of workers).

@erlend_sh had a little Tauri test drive today. Will have to put in a bit more work to properly evaluate whether it satisfies our needs, but so far looks quite promising.

4 Likes

Very cool! I pinged them about this :slight_smile:

3 Likes

These are the synapses I like to see taking place in the community. Way cool.

2 Likes