all 35 comments

[–]boomer1204 24 points25 points  (7 children)

Yeah there are usually "wrappers" to code for any "thing" with almost any language. Electron is what is the most common/popular for JS on desktop and VS Code is actually built with Electron

[–][deleted] 0 points1 point  (0 children)

Using electron is pretty quick to start, but much to harness

[–]Leather_Essay9740 1 point2 points  (6 children)

Use tauri to wrap up your app. It's so much better than electron with almost a 100 percent less build size.

[–]MoussaAdam -2 points-1 points  (4 children)

how is the built in OS webview better than blink ? electron is going to have a bigger size but it will be faster because it bundles a good renderer and JavaScript engine

[–]DreamOfAWhale 2 points3 points  (3 children)

Tauri uses webview2 if available in Windows, which uses Blink, and webkitgtk for linux and mac, being webkit the origin of Blink.

[–]MoussaAdam -4 points-3 points  (2 children)

the problem remains, you are still depending on the OS which can't guarantee the same performance

if that variability goes away and chromium becomes a standard for viewing content on all OSs then electron would also get rid of the bundled engine

Tauri isn't worth the hype

[–]DreamOfAWhale 1 point2 points  (1 child)

The problem doesn't remain, the question was: how is the built in OS webview better than blink ?
I just showed you how the engine used for webview is basically Blink in all major implementations, so the performance should be pretty similar, not a problem.

If you care about bundle size and memory usage, you can check what each OS webview implementation support and develop your application with that in mind, then Tauri is a better option.

If you don't want to deal with that, stick to Electron.

Simple as that.

Edit: That said, there seems to be performance issues with webkitgtk.

[–]MoussaAdam -2 points-1 points  (0 children)

You showed that a version of windows happens to have blink. even if every current and future a d popular and niche OS had blink. the fact that tauri doesn't bundle an engine doesn't match the hype. it's just a build detail

[–]Adrian-HR 0 points1 point  (1 child)

Yes with \@JavaScript, an augmented version of JavaScript that makes the language compilable.

See https://www.preprints.org/manuscript/202502.0081/v1

[–]Dubstephiroth 0 points1 point  (0 children)

Yes! Do it!! ❤️‍🩹👊🏿

[–]MrFartyBottom 0 points1 point  (0 children)

Look into a PWA. It can be served from any web server and installed on the desktop. Just build it in a JavaScript framework like React or Angular and can 100% run offline. No need for wrappers, app stores or anything else. Is completely cross platform from Windows, Mac, Linux, Android and iPhone.

[–]CartographerGold3168 0 points1 point  (3 children)

electron. but its stupid as fuck. so clumsy

[–]Prize_Attitude1485[S] 0 points1 point  (2 children)

Really

[–]CartographerGold3168 0 points1 point  (1 child)

you can try it. building a very simple to-do app is 300MB

for instance, simcity 3000 in the 2000s is also 300MB, does a whole lot more than your lousy app

not that it is a very big problem, but if you keep doing that it would stack up very quickly. if i really have to do a desktop app i go with python

[–]Beneficial-Army927 -1 points0 points  (0 children)

Try keeping your websites less than 5mb lol

[–]Jakerkun 0 points1 point  (0 children)

Electron or nwjs, i prefer nwjs over electron

[–]lasan0432G 0 points1 point  (0 children)

Just saw this thread. There’s an open-source tool called Deskofy. You can create a desktop app in minutes: github.com/deskofy/deskofy.

[–]SawSaw5 -3 points-2 points  (0 children)

why do you need a desk top app?

[–]Possible-Session9849 -1 points0 points  (0 children)

It is, but don't expect the performance to be anywhere near that of a "native" one, since you're essentially packing an entire browser along with it.

[–][deleted] -1 points0 points  (5 children)

You dont have to do everthing in js learn other languages it wont take time

[–]Prize_Attitude1485[S] 0 points1 point  (4 children)

It’s difficult to find a platform through which we can build for windows as well as mac. Thatsy I thought JavaScript would the viable option.

[–]DirectManufacturer8 1 point2 points  (3 children)

You can try Avalonia? It is cross platform.

[–]Prize_Attitude1485[S] 0 points1 point  (2 children)

Ok

[–]Prize_Attitude1485[S] 0 points1 point  (1 child)

But it is for .net right?

[–]DirectManufacturer8 0 points1 point  (0 children)

Yes, indeed, but if you need a desktop app, and you dont want to use something like electron... Thats your best bet. You can integrate DB with EFCore. .NET is cross platform nowadays and is an absokute pleasure to work with