Comparison of NW.js and Electron


#1

Hello everybody!

I have started a comparison chart of NW.js and Electron for newcomers trying to decide which platform is best suited to their needs. It is a work in progress and I would very much like to get feedback from the NW.js community so I can improve it. You can find the chart at:

You can leave your comments, corrections or suggestions on the page or in this thread.

Thanks in advance

Jean-Philippe


#2

The NW.js community already chimed in but I would very much like to get input from the Electron community. Anybody ?


#3

I haven’t used NW.js, so I really have no basis for comparison.


#4

Even if you have not used NW.js, simply verifying that my data is correct would be helpful. For instance, it is not clear to me if Electron has support for the Windows App Store. Another example is the state of mp3/mp4 support.

The chart is here: http://tangiblejs.com/posts/nw-js-electron-compared

Cheers!


#5

Are you aware that a comparison is already in the documentation here?


#6

Yes, I was aware. I’m trying to go into more details. Thanks.


#7

Gotcha. Was just checking.


#8

I think Electon is ES6/2015 Support compliant (
You can try this in App electron

// detect es6 functionality
/* jshint evil:true */
eval('(function*() { yield 1 })()');
    console.log('es6 functionality');
} catch (e) { console.log('NO es6 functionality') }

Result : > es6 functionality


#9

As you demosntrated, some parts are obviously available. What is less clear to me is how much of ES6/2015 is available, respectively, in the Node and browser contexts.


#10

https://iojs.org/en/es6.html has the current status of ES6 support in node. You could also have a look at https://kangax.github.io/compat-table/es6/ for whatever version of Chrome is currently being used by Electron.


#11

Thanks for that. However, what is still not clear to me is which one has priority in contexts where the two are present…


#12

Electron 0.31.x uses Chrome 44 and Node 3.x. Chrome 44 and Node 3.x both use V8 4.4.x so there is no “priority” only whatever is supported in V8 4.4.


#13

Yes, you are so very right! That’s the info I’ll put in my comparison chart. Thanks again!


#14

And there is Issue #2685 to upgrade Electron with Chrome 45.


#15

@jpcote thanks for putting that together! If it’s alright I’m going to reference in a talk I’m giving in October. Even though I’ve been using Electron for a while (and not so much NWjs) it’s good see a more detailed straight up comparison.


#16

Of course! If you ever post the slides online let me know. I’d love to see what that talk was about. Cheers!


#17

@jpcote Sweet! It will definitely be up online. Our slides and talks are always up online actually. Repos are here: https://github.com/yycjs and videos are here: https://www.youtube.com/user/yycjs