Electron is a widely hated framework on Linux, but what about the alternatives like Neutralinojs?
In their own words:
In Electron and NWjs, you have to install Node.js and hundreds of dependency libraries. Embedded Chromium and Node.js make simple apps bloaty — in most scenarios, framework weights more than your app source. Neutralinojs offers a lightweight and portable SDK which is an alternative for Electron and NW.js. Neutralinojs doesn't bundle Chromium and uses the existing web browser library in the operating system (Eg: gtk-webkit2 on Linux). Neutralinojs implements a secure WebSocket connection for native operations and embeds a static web server to serve the web content. Also, it offers a built-in JavaScript client library for developers.
Do you experience alternatives like Njs to blend more in the desktop layout, install less junk, use less memory, are more compatible with Wayland,...?
I will catch flak for this, but discord works fine. You could be fooled into thinking it’s native. Audio, video, attachments… pretty seamless. Zoom sucks ass though.
I haven't use any alternatives, and haven't developed with electron, but I know that there are another alternative -- Tauri. It also uses web-view. It's built in Rust and allows apps to be developed in JS (providing JS api) and in Rust.
What I can say -- JS support won't be cross-platform, like we have with NodeJS in electron. Special debug per platform might be required.
React Native is good, and isn't just a web view. It uses native UI widgets so the apps feel truly native. Many Android and iOS apps use it, and Microsoft ported it to Windows and MacOS and use it in some of their apps (notably, the Xbox app, parts of Office, and parts of Windows like the old Mail app in Windows 10, use it). Unfortunately there's no stable port for Linux :/
In theory, someone could port React Native to use Gtk, Qt, or WxWidgets, but I haven't seen any such efforts recently - there's a few old projects but they've all been abandoned.
I didn't develop on it, but I've used recently one app written in it and it was hot pile of garbage.
It was slow as a slug, and eat lot of CPU. I've also checked web eversion and was astonished as it rendered everything into canvas. It's really poor design choice to render everything by app itself.
I guess it was just buggy app, but I didn't try other apps in flutter, so can't compare.
But web demo of flutter UI components with list box was also not so fast. But perhaps it's just web version. Didn't know any example of good flutter app.
I'm using pywebview, a cross-platform python web view GUI framework. I like it so far, it's fairly straightforward. I just wanted a python API around my database, and I'm building most of the app in the front-end with vanilla JS and html.
I didn't want the (alleged) bloat of electron, and I didn't want to jam async/await onto everything in the backend, so I found this alternative.
The 3rd contender was Tauri, but I didn't want to bother learning Rust for a simple API. But it was very tempting, and Tauri is an option you should consider.
I haven't finished my current project so I can't completely vouch for pywebview yet. But so far it's great and I recommend it if you don't mind using python (I do long for a statically typed backend TBH).
Flutter has been on the uptake quite a bit the last 2 years for Linux. Canonical and RedHat have built some end-user tools on it that work great, and it's pretty easy to develop for.
Only thing that keeps me away is Big Googz running the development show. Not only can we not trust them to do what's best for the dev base of a specific tool, it's obvious how out of step they'll go with said ecosystem to exploit consumers of tools built in that ecosystem. Look at Chrome.