DEV Community

Cover image for Goodbye Electron. Hello Tauri!

Goodbye Electron. Hello Tauri!

Ed Rutherford on February 12, 2024

Utilize the Rust-powered backend framework paired with a React frontend to offer an awesome browser-less experience Many a develop...
Collapse
 
akashpattnaik profile image
Akash Pattnaik

Hey @dedsyn4ps3 !
Good article, I have rated this as High Quality!

I personally had written on this topic 2 years ago and it went quite viral.

Its sad 😔 to see that people till now haven't yet adapted to this change. But thanks for posting!

Collapse
 
dedsyn4ps3 profile image
Ed Rutherford

Thanks for the comment @akashpattnaik! I started using Tauri a couple years ago myself and have written a couple articles since then. It's been an awesome experience to share the project with others and see it continue to grow such as it has!

Collapse
 
hcavarsan profile image
Henrique Cavarsan

tauri is amazing, i've been using it in my project kftray (a menu bar app for kubernetes users) and it's been a very good experience. i'm excited to migrate to tauri v2.

Collapse
 
loop36 profile image
Anand V Balagopalan

I could see the potential of this framework. The major problem of the electron was the package size and memory usage. This really gives a boost to desktop app environment around the globe. Lets hope for a good community to develop around this tauri for a better support.

Collapse
 
dedsyn4ps3 profile image
Ed Rutherford

It gives it a huge boost, lemme tell ya! I've been using Tauri for several of my desktop projects, and they've been working on Mobile support as well that's still in development (which I've written a walkthrough about too btw)!

Collapse
 
sectasy0 profile image
sectasy

Tauri is incredibly satisfying; I've completed a couple of projects using it, and I'm quite fond of the experience. Paired with the Matine framework, you get everything you need.

Collapse
 
hichem_fantar profile image
Hichem Fantar

Tauri uses the native platform WebView which can make it behave inconsistently across different platforms. Whereas electron ships with chromium which guarantees a consistent cross platform experience.
This is the gotcha with tauri.

Collapse
 
akashkava profile image
Akash Kava

I was going to say same thing, API inconsistency, CSS inconsistency and the best is extremely limited Safari APIs and Apple’s interference

Collapse
 
greenteaisgreat profile image
Nathan G Bornstein

Yoooo, this is a game changer! Seems promising. Thanks for the tip!

Collapse
 
husudosu profile image
Ferenc Nánási

Great article!
Do you have any experience or comparison regarding the memory usage differences between using tauri and electron?

Collapse
 
dedsyn4ps3 profile image
Ed Rutherford

Thanks for sharing your thoughts!

I primarily focused on binary size comparisons between the two, and shared a screenshot of the differences in my Medium article. As for memory usage, I have not documented all of the various facets of resource utilization, but I can say that because both are using the same web-based frameworks under the hood (presumably) the overall memory usage would probably be fairly similar,

It's important to keep in mind though that even if that happens to be the case (though I can almost certainly guarantee that Tauri is slightly more efficient resource-wise), the biggest improvement over Electron is the eradication of needing the same kind of bridge originally needed by Electron for the front end to make function calls to the back end.

With Tauri, the inter-process communication is seamless and much smoother than I usually experienced in my Electron-based projects!

Collapse
 
seanmay profile image
Sean May

One of the major challenges of Tauri is that it doesn't guarantee a consistent, or even eventually-consistent degree of API support.

An immediate example of this is WebGPU access. If Tauri ran Chromium everywhere, an app could use WebGPU on most desktops that will support it's current version, either right now, or very soon.

Because Tauri uses the default browser, the release date for a Linux app using GPU compute is "soon-ish?" and Mac is "ehhhhh". And because it goes with what is on the path, there is no accounting for version, either.

I’d really like there to be a dynamic installer process that allowed you to check for certain requirements and then check for other browsers, and then install a different head, as a last resort. No WebGPU in Safari? Is Chrome installed? Go with that. No? Then let me install a portable version that this Tauri app and all others can use.

Collapse
 
almondsrobert7 profile image
almondsrobert7

Please visit the survey website, fill out the form with the necessary information, and respond to the survey questions in order to enter the survey and be eligible to win the $1,000 gift card.
biglots.com/survey

Collapse
 
johnyepthomi profile image
JohnYepthomi

I been using Tauri for over a year now. It's a great project.

Except for Linux users, the web engine used is webkit and it's crap. I can't express how much I hate it, it's like you're back in the stone age. Windows uses webview2 engine and it's great but it will never(as I can see) be available on Linux and I don't code on either windows or mac, I only use Linux and this saddens me.

This is not a Tauri issue, but somehow an issue nonetheless for Linux users. :(

Collapse
 
williambuttler441 profile image
williambuttler441

Ever hear of FREE TACO? or $500 in prizes? It isn't in your dream, yes. Renowned fast-food chain Taco Bell offers prizes to its devoted patrons. Tacos are their signature meal, but they also provide nachos, burritos, and a host of other delectable foods.
TellTheBell.com

Collapse
 
almondsrobert7 profile image
almondsrobert7

Greetings and welcome to the comprehensive guide on adhering to the criteria and procedures of the Biglots survey. Through the Big Lots Survey, you may provide us with insightful input that helps us understand you and your ideas better.

biglots.com/survey

Collapse
 
henryoliver5178 profile image
henryoliver5178

At Home Depot, we work hard to give our clients top-notch support and high-quality merchandise. We depend on your assistance to keep getting better.
Www.HomeDepot.Com/Survey

Collapse
 
spenceryonce profile image
spenceryonce

I thoroughly enjoyed this article! I’ve used electron in the past, and just wasn’t fully satisfied. I think I may have to give Tauri a go!

Collapse
 
dipayansukul profile image
Dipayan Sukul

Nice read.

Collapse
 
michaelchristopher154378 profile image
michaelchristopher154378

The management of Stop and Shop uses an online consumer feedback survey to aid with this. The poll is known as Talktostopandshop

Collapse
 
gedojet125 profile image
gedojet

Thanks for sharing this great information, i would appreciate if you share this type of information regularly. biglots.com/survey

Collapse
 
williambuttler441 profile image
williambuttler441

After hearing about your complaints, they will do all in their power to address them because they value customer input greatly.
Tellthebell.com

Collapse
 
geraldmoore980 profile image
Geraldmoore980

Consumers usually have a nice shopping experience and a large selection of items when they buy home improvement supplies from hardware stores like Lowes.
Lowes.Com/Survey