r/node • • Aug 23 '19

πŸ• Announcing NodeGUI and React NodeGUI - Build native desktop apps with Javascript and CSS πŸŽ‰

https://blog.atulr.com/nodegui-intro/
225 Upvotes

19 comments sorted by

19

u/[deleted] Aug 23 '19

So even with this "native" approach, we still have to ship a whole JS runtime (nodejs in this case) with the application distribution, right?

77

u/nandy02 Aug 23 '19

Its better than shipping a whole browser engine lmao

7

u/[deleted] Aug 23 '19

Oof

1

u/[deleted] Aug 24 '19

F

29

u/Zyn1023 Aug 23 '19

The problem with Electron is really chromium, not really V8/node

0

u/[deleted] Aug 23 '19

[deleted]

13

u/leobeosab Aug 23 '19

I don’t understand what you’re saying man? Yeah Electron and this both ship V8/Node.js but this doesn’t ship chromium which is the ram eater and reason for the large binary size.

2

u/Oalei Aug 24 '19

I completely misread the comment, I thought it said Electron does not ship with Node.js and it was only Chromium

4

u/[deleted] Aug 24 '19

Nodejs (v8) itself is surprisingly fast and lean. It the blink rendering engine that's the source of all problems in electron.

1

u/[deleted] Aug 24 '19

But how would you show a GUI without a rendering engine?

3

u/Jakeii Aug 24 '19

With Qt, thats what the post is all about!

5

u/GForce1975 Aug 23 '19

How difficult would it be to convert my existing electron app? Would it be a full rewrite? Or just swapping electron calls for something else?

9

u/noamalffasy Aug 23 '19

A full rewrite as this framework is a real native app and not a browser

5

u/yondercode Aug 24 '19

But other than the electron calls, in react-nodegui you can reuse everything other than the actual rendering component (Like <div> to <View>, etc) and some styles right?

That's far from a full rewrite IMO

1

u/noamalffasy Aug 24 '19

I wonder how much styling is required to make it look the same on each platform because the sample app is unable to achieve that goal (the font and the font size are a bit different)

1

u/[deleted] Aug 24 '19 edited Aug 24 '19

two explanations for that:

  • the font is not specified in example css, so it sticks to the default system font

  • the apps are likely resizeable, and since the font size is static in the css, they just appear to have different font size nvm mac font is obviously bigger just tested it, and can confirm, it is resizable, uses native font and static font size so it just appears smaller on screenshots

0

u/noamalffasy Aug 24 '19

Huh so it does seem like it could replace electron pretty easily

2

u/robertmsale Aug 24 '19

This is really promising! Once upon a time I was researching a similar framework called BrigJS but it looks like that project was abandoned. It was even on QT's website for the official list of QT bindings, yet hasn't been updated in over 2 years and is incompatible with the latest QT development packages. Can't wait to check it out!

0

u/[deleted] Aug 23 '19

[deleted]

-21

u/enuxix Aug 23 '19

Thisbis the first time i've seen this do i think it's okay