Live data from Hacker News

NeutralinoJS: Lightweight Electron alternative using native browser controls

neutralino.js.org

171–180 of 200 posts

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#171

I see projects like this pop up every once in a while and get abandoned. A simpler approach may be to just publish a basic web server as your app (express on top of node would do) that runs on the local machine on some random port and have users just go to that URL with their regular installed browser. Bonus points for no leakage of security / CORS / etc. issues from the UI side of things, every unsafe thing needs to…

Does the browser really have access to all the same apis as electron? Doesn't electron have broader access to the file system (e.g. all the stuff that vscode does).

Electron does, but you need to consider security. Malicious apps or ill-designed architectures can leak openings where a bad actor can attack your OS.

I'm the author of secure-electron-template, a template with secure practices baked-in. Security is very important and I don't feel people think of that from the get-go.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#172

Looks kind of like WebView [1] which I earnestly tried but eventually abandoned. Using the system-provided web engine is great for space savings, but terrible for cross-compatibility and feature availability owing to having to use IE on Windows. [1] https://github.com/zserge/webview

Isn't the "system provided web engine" now Edge on Windows 10, and has been fore a while?

Yes, there is webview-x branch that is to be merged in March, that uses Edge (both variants of it) as the default engine on windows.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#173
post #96
post #64

Earlier quoted context omitted.

I’m currently running three Electron apps: Spotify, Skype, and VS Code. Spotify: 1083.7 MB. VS Code: 890.9 MB. Skype: 406 MB. In the past, I’ve had projects open in VS Code which have caused that number to shoot up into the multi-gigabyte range. Of course this is all anecdotal but I am pretty sure these numbers come from actual experiences that people are having with Electron apps.

I wish this urban legend would just stop: the Spotify desktop client is NOT an Electron app, it's a CEF (Chromium Embedded Framework) app.

seems like the same shit to me, uses a lot of RAM, lags randomly, yup I usually call that electron :>

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#174
post #91

Earlier quoted context omitted.

> It used to be known for prematurely wearing out SSDs by constantly writing stuff (cache I think?) to disk. They were constantly vacuuming some SQLite database.[0] [0] https://arstechnica.com/information-technology/2016/11/for-f...

Does anybody know if this was fixed?

Yes, it was.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#175
post #109

Earlier quoted context omitted.

Keybase also uses in the range of 600MB-1GB, and 8 processes, most of which don't exit when you exit the application. I'm not sure what Discord uses because I only run it in the browser, but I'm sure it's in the same range as all of the above. I've come up with a powershell snippet to fully quit keybase and reclaim ~1GB RAM: get-process | Where-Object {$_.path -match "keybase"} | Stop-Process

>I'm not sure what Discord uses because I only run it in the browser Me too, and you just made me realize, there already exists a system for running Electron apps in a shared instance of Chrome, and it's installed on almost everyone's computer! You just... open the web version, in Chrome :)

The irony about that, is that not all electron apps are available from an URL. (now I know there is more than a webpage in a electron app, but with modern browsers you can have the same experience in a electron app or from a webapp pretty easily)

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#176
post #160

Earlier quoted context omitted.

It’s called a “web view” and it already exists in all of the platforms.

WebView is Chromium on Windows now. The holdout is Apple. They are not known to capitulate to industry trends. Maybe this will be the first one they are forced into by popular demand.

Good thing the web is still based on open standards instead of an (advertising) industry trend. We need more viable browser engines, not less.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#177

What is the difference between this and https://github.com/zserge/webview which it's based on? Or what do I get from this that I don't from webview (which I've been considering in Rust)?

Webview author here. I have to mention that neutralino is based on a slightly outdated webview, the new version is to be merged in March, which includes EdgeHTML and Edge/Chromium support on Windows.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#180
post #85

Earlier quoted context omitted.

The problem with this is that is requires people to have Chrome installed. That's a awkward dependency to require for a stand alone app.

Windows 10 (Edge), Chrome OS and Android all now bundle Chromium, while it's packaged in desktop Linux. That really leaves only macos. VSCode, say, as a slimmer download sans web runtime is a possible outcome.

"While it's packaged in desktop Linux" you are using the wrong distro(s).
Post reply on HN