Live data from Hacker News

NeutralinoJS: Lightweight Electron alternative using native browser controls

neutralino.js.org

11–20 of 200 posts

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#11

So if I understand right, what makes this lighter than electron is the fact that only webkit2 is used instead of embedding the whole chromium app.

Looks like it's using system controls on macOS, Windows and dynamically linking to webkit on Linux for rendering the served HTML/CSS/JS (from node).

I see mentions of WKWebView(the system webkit) in the code[0], and while I don't know any Windows programming, they are #including [1] - looks like a system included web view (presumably the one that edge was based on). The linux build requires libwebkit2gtk-4.0-dev to be installed[2] - they're dynamically linked to webkit2gtk.

[0] https://github.com/neutralinojs/neutralinojs/blob/b10e065c97...

[1] https://github.com/neutralinojs/neutralinojs/blob/07fdc3c1c7...

[2] https://github.com/neutralinojs/neutralinojs/blob/master/REA...

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#14

> There are some drawbacks such as Windows edition is based on IE etc. What does this mean?

It uses whatever the system webview is. So on Windows that is IE, on Mac it’s WKWebView, not sure about Linux.

It’s a trade off: it’s much more lightweight but loses cross platform consistency. For some that might be absolutely fine, for others it may not.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#15

So if I understand right, what makes this lighter than electron is the fact that only webkit2 is used instead of embedding the whole chromium app.

Looks like it's using system controls on macOS, Windows and dynamically linking to webkit on Linux for rendering the served HTML/CSS/JS (from node). I see mentions of WKWebView(the system webkit) in the code[0], and while I don't know any Windows programming, they are #including [1] - looks like a system included web view (presumably the one that edge was based on). The linux build requires libwebkit2gtk-4.0-dev to b…

I think you are right except when you say that the HTML/CSS/JS is served from node. The website says it is not served from node which makes it lighter than alternatives.

Developing an app requires node, but it will not be needed at runtime if I get this right.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#17
post #14

> There are some drawbacks such as Windows edition is based on IE etc. What does this mean?

It uses whatever the system webview is. So on Windows that is IE, on Mac it’s WKWebView, not sure about Linux. It’s a trade off: it’s much more lightweight but loses cross platform consistency. For some that might be absolutely fine, for others it may not.

Just like the Web stack.

If that isn't desired, then doing native apps is the way.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#18
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

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#20
post #16

This is the correct way of doing it when a PWA doesn't cut it. No need to push a full browser engine when the OS already has enough of them available.

It definitely is the 'correct' way of doing it, but it will mean you use IE when in windows, which is often/normally not the correct way
Post reply on HN