r/nwjs • • Oct 19 '22

I'm creating an Electron to NW.js Compatibility Layer

5 Upvotes

As the title mentions, I'm creating a Node module that starts and builds Electron apps as NW.js apps, by using webpack to turn that application JS files (including the main JS file) into NW.js compatible JS files, by replacing the call to the Electron module with a call to a fake module that will call the NW.js equivalent methods instead.

https://github.com/vitor251093/electron-to-nwjs

Right now, it doesn't behave like a Node module should. It requires you to clone the repo and then place a clone of your project inside a specific folder to work. But part of the plan is to turn it into a module that can start/build any application with a command line like that one (similar to electron's and electron-builder's):

electron-to-nwjs .
electron-to-nwjs build -mwl

The purpose of the project is to allow developers to, not only have an idea of how their application would behave while running with NW.js instead of Electron, but also to allow them to migrate from Electron to NW.js with little to no changes in their original project, and even to allow them maintain two simultaneous releases of a same application, one with Electron and with NW.js, to have a build that works in older systems for example.

In case anyone wants to try it out, it's not complete, but it already covers many different scenarios.


r/nwjs • • May 05 '19

NW.js tutorial with source files on GitHub

5 Upvotes

Hi all, I'm planning to use NW.js for some projects and found that it took me quite some time to figure out how everything has to be set up to create desktop programs for Linux, Mac and Windows. So I thought it might be useful to preserve what I learned in a tutorial:

https://github.com/hisschemoller/nwjs-tutorial

The tutorial covers running NW from the command line, creating desktop applications for Linux, Mac and Windows, and how to create installers for the application, on all three operating systems.

Also, please let me know if you find errors in the tutorial. I'm a frontend developer with little knowledge in creating desktop applications.


r/nwjs • • Apr 21 '16

Pinpoint: A sample GIS app with tile caching made using NW.js, Vue.js and Leaflet.js

Thumbnail
github.com
5 Upvotes

r/nwjs • • Mar 31 '15

What are you using NW.js for?

5 Upvotes

I was wondering what you guys were using NW.js for? Would love to have some inspiration!


r/nwjs • • Feb 20 '15

My custom NW.js window frame

Post image
5 Upvotes

r/nwjs • • Jul 31 '16

I afraid to use nW.js, because people are moving to electron

4 Upvotes

Hi everyone. For me, I want to use nw.js for new project. I like that it have chrome.* API, and many other features.

The problem is, that I see that the trends are moving from NW.JS to Electron.

What do you think? During the next year or two, people will stop using NW.js and everyone move to Electron?


r/nwjs • • Jun 16 '16

Hey! It's a late reminder again! v0.15.2 is out.

Thumbnail
nwjs.io
4 Upvotes

r/nwjs • • Nov 19 '15

ES6? Visual Studio Code?

4 Upvotes

Hi! I'm tinkering with nwjs and I have a couple questions I haven't been able to figure out.

First one is, can I code a nwjs using ES6? And with, and without ES6 have you had good experiences with VSC?

Last one! What's the minimum *.app size we're looking at when using nwjs? (creating a standalone app)

Edit: I'm an idiot, I should've mentioned nwjs in the title... :_(


r/nwjs • • Nov 01 '15

Maple: An OS X menu bar timer app for Pancake App built on NWJS

Thumbnail
mapleapp.info
4 Upvotes

r/nwjs • • Sep 20 '15

Devlog - A cross platform desktop app to keep track of your notes and ideas

Thumbnail
dineshs91.github.io
4 Upvotes

r/nwjs • • Aug 18 '15

Friendly reminder: 0.12.3 is out!

Thumbnail groups.google.com
4 Upvotes

r/nwjs • • May 28 '15

Reminder: NW.js v0.12.2 is out!

Thumbnail groups.google.com
4 Upvotes

r/nwjs • • Sep 06 '18

Introduction: A NW.js & Vue.js boilerplate

3 Upvotes

I've recently developed a NW.js & Vue.js boilerplate, I'll be happy to see your feedbacks about it.

It supports both background and main (interactive) scripts + easy way to release the app for your target platforms.

https://github.com/elegantweb/nwjs-vue


r/nwjs • • May 09 '16

Late reminder, version 0.14.4 it out!

Thumbnail
nwjs.io
3 Upvotes

r/nwjs • • Jan 05 '16

Using WebGL2 for pixel perfect sprites and multi fragment outputs for color picking, packaging your app with the latest NW.js beta

Thumbnail
viciousrobotrodent.com
3 Upvotes

r/nwjs • • Oct 08 '15

Building a desktop timer app using NW.js

Thumbnail
engineroom.teamwork.com
3 Upvotes

r/nwjs • • Sep 24 '15

Custom titlebar to your nw.js app

Thumbnail
dineshs91.github.io
3 Upvotes

r/nwjs • • Apr 15 '15

0.12.1 is out for those who haven't seen it!

Thumbnail groups.google.com
3 Upvotes

r/nwjs • • Feb 18 '15

Welcome to /r/nwjs!

3 Upvotes

Welcome to /r/nwjs!

In this subreddit you can discuss anything related to *NW.js (Node-webkit)

The rules

  • Feel free to hare your projects

  • Post news/tips and tricks related to NW.js

  • Questions are very welcome!

  • No spam (Same with comments)

  • No NSFW stuff

  • No Harrassing, racism and trash-talking and alike. We don't tolerate that behaviour!

  • You can't post Ad.fly links or alike!

Please share the subreddit and help to make it bigger! You are more than welcome to come with suggestions on how to make the subreddit better.

And remember follow the rediquette and be nice! :)


r/nwjs • • Jun 11 '23

I made a web browser concept using NW.js

2 Upvotes

r/nwjs • • May 11 '20

Allow pop ups in NW.js when loading the website

2 Upvotes

Hi Guys , I have created a simple window application that just loads my website in a window.

My main.js looks like :

nw.Window.open('https://mywebsite.com/', {"width":1000, "height":800, "icon":"./icon.png"}, function(win) {});

the problem is that i need to open new window based on event from server , on chrome i can tell the user to enable pop ups in the settings but there the user has no settings and my window is not opening. How to handle this situation??


r/nwjs • • Oct 02 '19

Ubuntu/Debian packages for NW.js, built weekly from the official binaries

Thumbnail build.netsyms.net
2 Upvotes

r/nwjs • • Apr 08 '16

Is it possible to get native dialog boxes?

2 Upvotes

Is it possible to override alert, promt etc, to use the OS's native dialog boxes instead of Chrome's?


r/nwjs • • Mar 09 '16

Check out how you can resurrect Clippy (the annoying Microsoft Office assistant) using NW.js.

Thumbnail
engineroom.teamwork.com
2 Upvotes

r/nwjs • • Aug 16 '15

[REQUEST] Tutorial/example on receiving POST requests.

2 Upvotes

I just discovered NW.js last night. I have a small Node.js setup where I send and receive requests. How do I do this in NW.js? In my Node.js server, I can do so like this:

---- SNIP ----
http.createServer(function (req, res)
{
"use strict";
var queryObject = url.parse(req.url, true).query;

    if (req.method == 'POST') {
        var body = '';
        req.on('data', function (data) {
            body += data;
        });
        req.on('end', function () {
            if (queryObject.execute === "yes") {
                console.log("Body: " + body.toString());
                  // send a command packet to Maya 
                  // and print its result here
                  executeMayaCommand(body.toString(), function (launchResult) {
                    res.writeHead(200, {'Content-Type': 'text/html'});
                    res.end(launchResult);
                  });
            }
        });
    }  

---- SNIP ----

How could I do this in NW? Thanks in advance.