Questions tagged [node-webkit]

NW.js (formerly node-webkit) is an app runtime based on Chromium and Node.js. You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies.

NW.js (formerly Node-Webkit) is an app runtime based on and . You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies. It is developed by Intel at the Intel Open Source Technology Center.

was renamed in January, 2015 because Chromium's switch from Webkit to Blink combined with a switch from Node.js to IO.js meant that the runtime was no longer based on either "Node" or "Webkit".

Resources

1214 questions
7
votes
5 answers

Disable DevTools on nwjs 13

We're developing an app based on Chrome Apps with NWJS 0.13.0 Alpha version, because lower versions don't support Chrome Apps. We need version 13 so we can use Serial Ports. However in Windows or Ubuntu, when pressing right clic it showed a menu…
7
votes
1 answer

Fast folder hashing in Windows Node

I'm building a nodewebkit app that keeps a local directory in sync with a remote FTP. To build the initial index when the app is run for the first time I download an index file from the remote server containing a hash for all the files and their…
Titan
  • 5,567
  • 9
  • 55
  • 90
7
votes
1 answer

Create window-like menu on OS X

I'd like to create a same sort of tray menu like this application. Because it is on the list of applications that use node-webkit/nw.js, I think it's possible. I have looked through all the documentation and couldn't find anything on how to achieve…
Feanaro
  • 922
  • 3
  • 19
  • 35
7
votes
1 answer

Node-webkit notification sound

I've made a function for my node-webkit application to trigger a OS X notification. It works perfectly but I wonder if I can set a system or custom sound instead of the classic iPhone boing sound? I've looked up the official notification API…
Tim K
  • 118
  • 2
  • 8
7
votes
1 answer

How can I reset the WebRTC state in Chrome/node-webkit, without refreshing the page?

Question: How does one go about resetting the state of WebRTC components in Chrome -- without reloading the page -- when they're kicked into an invalid state? See below for more details about how I'm replicating this state, and why I'm asking…
jamesmortensen
  • 33,636
  • 11
  • 99
  • 120
7
votes
4 answers

Close window but not app on click of "x" on Mac OS with node webkit

Usually on mac, when I close the window it doesn't quit the app but when using node webkit it does quit the app. Does anyone know a workaround so when I click the "x" it just closes the window but not the app? Thanks in advance for your help.
denislexic
  • 10,786
  • 23
  • 84
  • 128
7
votes
1 answer

How to disable the debug remote port in node-webkit desktop app

I wan't to protect the code of my node-webkit desktop application packaged in an exe file. The problem is not on the file directly but with the dedicated port for remote debugging. Perhaps I haven't understood something but, on Windows, if I…
7
votes
1 answer

Running NodeWebkit app fails with: Invalid package.json Field 'main' is required error

I've been working with my NW app for a few weeks now without issue. I'm starting to bring other coworkers into my repo for testing and I decided to write an install script rather than forcing them to manually install the dependencies. Today, after…
commadelimited
  • 5,656
  • 6
  • 41
  • 77
7
votes
2 answers

how to use node-webkit with express server?

I am developing an app using nodejs and express. I want to export it as a package with node-webkit. How can I start server and run app with it ?
Amb
  • 3,343
  • 7
  • 27
  • 34
7
votes
2 answers

Is there a python version of node-webkit

It looks like developing GUI applications in HTML+JS with python in the background would be really nice. I see node-webkit. I also see that there are python bindings for webkit. It just seems like it's an order of magnitude more difficult to set…
MKaras
  • 2,063
  • 2
  • 20
  • 35
7
votes
2 answers

Uncaught AssertionError: path must be a string error in Require.js

I'm getting the following error in my simple example using node-webkit: Uncaught AssertionError: path must be a string index.html //base.js require(["test"], function(test) { test.init(); }); //test.js define(function(){ window.c =…
chovy
  • 72,281
  • 52
  • 227
  • 295
7
votes
4 answers

How to get working directory in node-webkit

I've got a simple program that can be run from command line. This program is for live preview of markdown files. When i'm packaging the app with cat $NW/nw marknow.nw > marknow and running from different location: ./build/marknow…
Szymon Wygnański
  • 10,642
  • 6
  • 31
  • 44
7
votes
0 answers

Connect edge.js + node-webkit

Edge.js connects node.js and .NET. Node-webkit is an app runtime based on Chromium and node.js. Has anybody put these two together? Is it possible? Explanation: I would like to write apps with front-end in HTML + Typescript and back-end in F# (heavy…
Oldrich Svec
  • 4,191
  • 2
  • 28
  • 54
6
votes
1 answer

Electron: How to resize the BrowserWindow?

How to change the size of the BrowserWindow, not at startup, but on time work? All the solutions that I found were about such: var win = new BrowserWindow({ width: 800, height: 600, show: false });
VINET
  • 641
  • 1
  • 7
  • 28
6
votes
1 answer

Why does require('child-process') not work in Node Webkit without an Internet connection?

In a Node-Webkit application running on the latest stable release (v0.18.8), I have these three lines: console.log("Check 1"); var spawn = require('child_process').spawn; console.log("Check 2"); When I have Internet, I get the expected…
gfrung4
  • 1,658
  • 3
  • 14
  • 22