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
6
votes
1 answer

Node-Webkit with external module containing native code

I'm using node-webkit with an external module called edge. According to the node-webkit docs modules that contain native code must be recompiled using nw-gyp as oppose to node-gyp. I was able to recompile without error and node-webkit seems to…
user1513388
  • 7,165
  • 14
  • 69
  • 111
5
votes
1 answer

What is the "parent" parameter in Google Cloud Translate Advanced (V3)

Google Translate API v3 requires us to pass the "parent" parameter. It's everywhere on their sample code, such as : /** * TODO(developer): Uncomment these variables before running the sample. */ // const projectId = 'YOUR_PROJECT_ID'; // const…
5
votes
0 answers

Firebase cloud messaging "Registration failed - push service error" on Electron and node-webkit

I am trying to implement Firebase web cloud messaging on node-webkit (NWJS) application, but when I try to get a token its returning a error: "Registration failed - push service error". Here is the code snippet I am using to get the token after…
5
votes
0 answers

Issue with missing symbols - NewInstance deprecated. Only when running along with nw.js

In my project I use the libvirt library. These are node bindings to libvirt api. As the issue can relate to other cases of bindings I post my question here. Upon installation with npm install it throws warnings (one below as an…
Hibryda
  • 127
  • 1
  • 8
5
votes
2 answers

How to traverse all files, and support pause and continue

I have created a NodeJS (electron) code for read all the files in a specific directory and subdirectories. I don't want to use too much HD resources, that why I use a delay of 5ms between folders. Now my question. I want the if my NODE process stop?…
Aminadav Glickshtein
  • 23,232
  • 12
  • 77
  • 117
5
votes
1 answer

NodeJS: scanning a directory tree is slow as hell

I have a NW.js app that simply (recursively) scans a directory tree and get the stats for each file/directory. It also performs a MD5 for files. I have 29k files, 850 folders, all for 120GB data. After almost 7 minutes, my code only scanned 4080…
Lideln Kyoku
  • 952
  • 9
  • 20
5
votes
1 answer

Running background tasks in node-webkit (nw)

I'm trying to run background tasks (file system scanner) using NW.js. In Electron, it can be done using child_process.fork(__dirname + '/path_to_js_file') and calling child.on('message', function(param) { ... }) and child.send(...) in the main…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
5
votes
1 answer

Node-webkit child spawn UNKNOWN error

I'm trying to launch an .exe elsewhere on my Windows filesystem. spawn = require('child_process').spawn; game.process = spawn(path.join(config.values.armaPath, 'arma3.exe'), { detached: true }); I've wrapped it in a try/catch and the error…
Titan
  • 5,567
  • 9
  • 55
  • 90
5
votes
0 answers

Why simple math in JS allocates a lot of memory

Why the below code allocates a lot of memory? Entity3D.prototype._updateEuler = function(elapsed) { this.velocity.x += this.force.x / this.mass * elapsed; this.velocity.y += this.force.y / this.mass * elapsed; this.velocity.z +=…
HankMoody
  • 3,077
  • 1
  • 17
  • 38
5
votes
0 answers

SignalR + Node WebKit/Node fails to connect over websockets when authenticated

This is a node webkit application that manages a bunch of webkit windows. Each webkit window uses signalR to connect to a MVC/webApi/signalR stack with no problems. Each window connects to 1-3 hubs over websockets. Everything works well. My client…
feelingweird
  • 101
  • 5
5
votes
1 answer

Which Licenses to ship within an NW.js - application?

I've just read the section about distributing at the wiki of nw.js And since the binary is based on Chromium, multiple open source license > notices are needed including the MIT License, the LGPL, the BSD, the Ms-PL and an MPL/GPL/LGPL tri-license.…
Devcon
  • 65
  • 3
5
votes
2 answers

Run python script on node-webkit startup (nw.js)

I have a Python-based app that controls LEDs. It uses Flask to create a webserver so I can work with a nice UI using HTML, CSS, and JS. My current process: python home.py navigate to localhost:5000 in browser profit! I'd like to take it a step…
ryantuck
  • 6,146
  • 10
  • 57
  • 71
5
votes
1 answer

Database and files in Node Webkit (nw.js)

This is my first time with Node Webkit. At this point I have all the static parts of my desktop app (built on html, css, js). However to make it functional, I require to store and retrieve user inputs from a database and/or files. How can I…
Ashesh
  • 3,499
  • 1
  • 27
  • 44
5
votes
3 answers

How to print Node WebKit version

If I wanted to check which Node WebKit version I'm using, how would I do that from a command line?
Saran
  • 3,845
  • 3
  • 37
  • 59
5
votes
0 answers

Streaming Web Audio API microphone data to disk on nodewebkit

I'm working on a nodewebkit app that uses the Web Audio API to record microphone data and save it to disk. I've used the RecordRTC framework, but it doesn't expose a way to stream the data to disk as the recording progresses (which is necessary…
Seb
  • 152
  • 1
  • 10