DEV Community

Discussion on: Leaving electron.js to the past.

Collapse
 
tbogard profile image
Erick Rodriguez

Here my problems with Tauri and it is the lack of backend: Tauri doesn't show options for you to build a business layer to manage subservices in your app. Copying a file? Saving a encoded audio from your app based on your configurations? Tauri can't do it. In comparison, electron has a main process that behaves like a backend with communication with your frontend.

I would change to Tauri if it offers a solid robust API for a main process, which don't have.

Collapse
 
akashpattnaik profile image
Akash Pattnaik

That's possible, use the RUST API, just create your functions in rust and invoke them with window.__TAURI__.invoke('functionName')

Collapse
 
timleg002 profile image
Timotej Leginus

You don't need to invoke every command globally

Thread Thread
 
akashpattnaik profile image
Akash Pattnaik

Yeah, i was just giving an example, they have a pretty well documented docs at tauri.studio .

Collapse
 
duridah profile image
durid-ah

I hope that's part of their road map before hitting 1.0

Collapse
 
stevepryde profile image
Steve Pryde

Couldn't you just code that up in rust and expose it as commands? Isn't that the intended use case? I thought electron changed recently to be more client/server and it became much more strict about communication between the two, for security reasons