I was building an app similar to T3 Code, but made to fit my own AI workflow. I decided to use Tauri for it. Recently, I migrated it all to Electron.

Tauri is not all that more beautiful than Electron, at least not for this kind of app. I dont say its bad. Every framework has its own use cases, and unfortunately I couldnt quite stick to Tauri on this one.

The basics

Both let you build desktop apps with web tech. The main differance is who draws the screen.

Electron ships Chromium and Node inside your app. Tauri has a Rust backend and uses the webview that comes from the operating system. A webview is basicaly the browser engine that shows your UI. On Windows that is Chromium based too, but on macOS and Linux it is WebKit.

Same renderer everywhere

With Electron, every user gets the engine you shipped. One engine to build for, one engine to test.

With Tauri, Linux means WebKitGTK. In my opinion it is often slower and quirkier with heavy UIs, such as terminals, long streaming chats and diffs. And an app for AI workflows is where you find all of those..

To be fair, I didnt find a proper benchmark for this. What you can find are reports from individual projects. There is an old Tauri issue from 2022 where selecting lots of items froze the app on Linux, while it ran fine in Electron. Another project changed how its terminal is drawn on Linux, because the faster option was slow and sometimes broken there. So its not proof that WebKit is always slower, but it is something you may have to work around.

Mature tooling

For terminals, node-pty and xterm.js are the well trodden stack. node-pty runs the real shell, xterm.js draws it on the screen. VS Code uses both, which is a pretty good sign.

Can you make a terminal in Tauri? Yes, you can. xterm.js works there too, and there are Rust options for the shell part. It's just a less travelled road.

node-pty needs Node, and Electron already has it. In Tauri, the official way to run Node code is to package it as a seperate program next to your app (they call it a sidecar). Electron is not zero setup either, as native modules like node-pty generaly need to be rebuilt for it.

I'm not the only one

Theo chose Electron for T3 Code and not Tauri. He said that he evaluated every option, and Electron had the best performance across all platforms for most things.

OpenCode also moved their desktop app from Tauri to Electron. WebKit rendering was one reason, running their server inside Node was another thing they liked. They also say it has nothing to do with one being innately better than the other, which I agree with.

What you give up

Size, mostly. In one test on macOS, the same app was 57 MB with Tauri and 323 MB with Electron. Idle memory was much closer, 109 MB vs 128 MB. Thats only one app on one OS, so your numbers can be very different.

If a small app is a hard requirment for you, Electron is probably not it. Even Electrons own docs say so.

So which one?

It depends on what your building.

  • Tauri => small footprint matters, the UI is simpler, or you want easy access to system stuff
  • Electron => heavy web UI that should behave the same everywhere, a Node backend, terminals

Things may also change. Tauri 3.0 has an option to bundle Chromium, but it is still in alpha and makes the app a lot bigger. Worth another look later maybe.

For now, my app is on Electron. I liked the idea of staying on Tauri, but for something full of terminals, chats and diffs, Electron just fits better. Pick the one that fits what your making, not the one that sounds nicer on paper.