nw.js | js modules directly from DOM/WebWorker and enable a new way | Runtime Evironment library

 by   nwjs JavaScript Version: nw-v0.77.0 License: MIT

kandi X-RAY | nw.js Summary

kandi X-RAY | nw.js Summary

nw.js is a JavaScript library typically used in Server, Runtime Evironment, Nodejs applications. nw.js has no bugs, it has a Permissive License and it has medium support. However nw.js has 1 vulnerabilities. You can download it from GitHub, GitLab.

NW.js is an app runtime based on Chromium and node.js. You can write native apps in HTML and JavaScript with NW.js. 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 was created in the Intel Open Source Technology Center.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nw.js has a medium active ecosystem.
              It has 39646 star(s) with 3955 fork(s). There are 1593 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 868 open issues and 6336 have been closed. On average issues are closed in 504 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of nw.js is nw-v0.77.0

            kandi-Quality Quality

              nw.js has 0 bugs and 0 code smells.

            kandi-Security Security

              OutlinedDot
              nw.js has 1 vulnerability issues reported (1 critical, 0 high, 0 medium, 0 low).
              nw.js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              nw.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              nw.js releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed nw.js and discovered the below as its top functions. This is intended to give you an instant insight into nw.js implemented functionality, and help decide if they suit your requirements.
            • Parse a single menu item .
            • Initalize an option object .
            • NWWindow class
            • Shortcut constructor .
            • Convert an option key to an option object .
            • Updates the dimensions of the window .
            • Creates a new context menu object .
            • Capture screenshot of current tab .
            • Looks for browser version
            • detach a tab
            Get all kandi verified functions for this library.

            nw.js Key Features

            No Key Features are available at this moment for nw.js.

            nw.js Examples and Code Snippets

            No Code Snippets are available at this moment for nw.js.

            Community Discussions

            QUESTION

            Get fatal error: server could not be contacted when running pgAdmin4. 'NoneType' object has no attribute 'value'
            Asked 2021-May-28 at 20:54

            I have a fresh install of windows where I am trying to install Postgres and pgAdmin4. I did a fresh install of everything (pgAdmin 4, postrgres 13, etc.) with default settings. When I run pgAdmin 4 I get a "fatal error: server could not be contacted" with the following message:

            ...

            ANSWER

            Answered 2021-May-14 at 22:05

            As Delsx pointed out in the comments, the standalone pgAdmin can be installed without the same issues from pgadmin.org/download. It appears this is a widespread bug that has been reported on the pgAdmin bug list, here and here

            Source https://stackoverflow.com/questions/67527280

            QUESTION

            The pgAdmin 4 server could not be contacted after installing postgresql
            Asked 2021-May-19 at 09:56

            After installing postgres 13, pgadmin4 cannot launch and this error occur :

            The pgAdmin 4 server could not be contacted:

            Already tried :

            • Run as administrator
            • Adding file://C:\Program Files\PostgreSQL\13\bin to path variable
            • Cleaning Appdata\roaming\pgadmin
            • Restarting computer

            The error is still here; here is some details :

            ...

            ANSWER

            Answered 2021-May-17 at 21:19

            I have same the failure. I can't seem to make pgAdmin 4 work. I installed PostgreSQL on a different laptop, pdAdmin 4 comes up, but then there was a different failure.

            Source https://stackoverflow.com/questions/67557374

            QUESTION

            Fatal Error The pgAdmin 4 server could not be contacted (already tried solution in other thread)
            Asked 2021-May-16 at 10:28

            I get the pgadmin 4 server could not be contacted. This is the first time I installed on my computer. I tried the run as admin solution, remove the app/roaming files, restart the posgresql services, tried to modify the config.py, config_distro.py. All of it did not help. Please help thank you.

            Here is the error

            pgAdmin Runtime Environment

            Python Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\python.exe" Runtime Config File: "C:\Users\lco73\AppData\Roaming\pgadmin\runtime_config.json" pgAdmin Config File: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\config.py" Webapp Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py" pgAdmin Command: "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\python.exe -s C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py" Environment:

            • ALLUSERSPROFILE: C:\ProgramData
            • APPDATA: C:\Users\lco73\AppData\Roaming
            • CHROME_CRASHPAD_PIPE_NAME: \.\pipe\crashpad_2976_GCSFUFUNDXSUIDKX
            • CHROME_RESTART: NW.js|Whoa! NW.js has crashed. Relaunch now?|LEFT_TO_RIGHT
            • CommonProgramFiles: C:\Program Files\Common Files
            • CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
            • CommonProgramW6432: C:\Program Files\Common Files
            • COMPUTERNAME: CHENONN
            • ComSpec: C:\Windows\system32\cmd.exe
            • DriverData: C:\Windows\System32\Drivers\DriverData
            • HOMEDRIVE: C:
            • HOMEPATH: \Users\lco73
            • JAVA_HOME: C:\Users\lco73\AppData\Local\Programs\AdoptOpenJDK\jdk-11.0.10.9-hotspot\
            • LOCALAPPDATA: C:\Users\lco73\AppData\Local
            • LOGONSERVER: \CHEO
            • M2_HOME: C:\Program Files\apache-maven-3.6.3
            • MAVEN_HOME: C:\Program Files\apache-maven-3.6.3
            • NUMBER_OF_PROCESSORS: 16
            • OneDrive: C:\Users\lco73\OneDrive
            • OneDriveConsumer: C:\Users\lco73\OneDrive
            • OS: Windows_NT
            • Path: C:\Users\lco73\introcs\java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\MATLAB\R2018a\runtime\win64;C:\Program Files\MATLAB\R2018a\bin;C:\Program Files\MATLAB\MATLAB Runtime\v96\runtime\win64;C:\Program Files\apache-maven-3.6.3\bin;C:\Program Files\apache-maven-3.6.3\bin;C:\Program Files\TMC-cli;C:\Program Files\MySQL\MySQL Shell 8.0\bin;C:\Users\lco73\anaconda3;C:\Users\lco73\anaconda3\Library\mingw-w64\bin;C:\Users\lco73\anaconda3\Library\usr\bin;C:\Users\lco73\anaconda3\Library\bin;C:\Users\lco73\anaconda3\Scripts;C:\Users\lco73\AppData\Local\Programs\AdoptOpenJDK\jdk-11.0.10.9-hotspot\bin;C:\Users\lco73\introcs\j3d\bin;C:\Users\lco73\introcs\bin;C:\Users\lco73\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin
            • PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
            • pgAdmin: C:\Program Files\PostgreSQL\12\pgAdmin 4\bin
            • PGADMIN_INT_KEY: de63dec9-3578-472a-af02-2786fce52e26
            • PGADMIN_INT_PORT: 63995
            • PGADMIN_SERVER_MODE: OFF
            • postgreSQL: C:\Program Files\PostgreSQL\12\bin
            • PROCESSOR_ARCHITECTURE: AMD64
            • PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 165 Stepping 5, GenuineIntel
            • PROCESSOR_LEVEL: 6
            • PROCESSOR_REVISION: a505
            • ProgramData: C:\ProgramData
            • ProgramFiles: C:\Program Files
            • ProgramFiles(x86): C:\Program Files (x86)
            • ProgramW6432: C:\Program Files
            • PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
            • PUBLIC: C:\Users\Public
            • PyCharm Community Edition: C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;
            • PYTHONPATH: C:\Users\lco73\Desktop\Python\Convolutional_neural_network-master
            • SystemDrive: C:
            • SystemRoot: C:\Windows
            • TEMP: C:\Users\lco73\AppData\Local\Temp
            • TMP: C:\Users\lco73\AppData\Local\Temp
            • USERDOMAIN: CHENONN
            • USERDOMAIN_ROAMINGPROFILE: CHENONN
            • USERNAME: lco73
            • USERPROFILE: C:\Users\lco73
            • windir: C:\Windows
            • ZES_ENABLE_SYSMAN: 1

            Traceback (most recent call last): File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py", line 98, in app = create_app() File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgadmin_init_.py", line 347, in create_app if not os.path.exists(SQLITE_PATH) or get_version() == -1: File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgadmin\setup\db_version.py", line 19, in get_version return version.value AttributeError: 'NoneType' object has no attribute 'value'

            ...

            ANSWER

            Answered 2021-May-14 at 11:52

            I found the solution, if you are first time using PostgreSQL and new to SQL stuff, probably there is some python module not installed. Go to the folder C:(YourUserFolder)\PostgreSQL\pgAdmin 4\web and run setup.py using terminal. It will list down the module missing when you run. Install the modules and run again to see which other module is missing. Or you can use an IDE that can check which module that is not install in the _ init _.py files in the "PostgreSQL\pgAdmin 4\web\pgadmin" folder.

            Source https://stackoverflow.com/questions/67530690

            QUESTION

            Audio playback slows down game
            Asked 2021-May-02 at 09:09

            I am trying to develop a simple game using nw.js (node.js + chromium page).

            ...

            ANSWER

            Answered 2021-May-02 at 09:09

            It is possible to reuse buffer, a bit hackish way.
            First create

            Source https://stackoverflow.com/questions/67293032

            QUESTION

            How to display local image to console? (nwjs)
            Asked 2021-Apr-18 at 13:03

            I'm making desktop application with NW.js(node-webkit)

            Based on this topic google chrome console, print image, print image I am trying to display image to console.

            As suggested on the topic above, command below works nicely:

            ...

            ANSWER

            Answered 2021-Apr-18 at 13:03

            I tested with Base64 encoding and it worked for me:

            Source https://stackoverflow.com/questions/67124757

            QUESTION

            Why NW.js major version is still 0?
            Asked 2021-Feb-19 at 00:17

            Simple question about versioning numbers related to NW.js.

            Why NW.js major version is still 0?

            ...

            ANSWER

            Answered 2021-Feb-19 at 00:17

            I really don't know. I've been using it since 0.11 and I can say that it should have had major bumps here:

            • Probably around 0.7.3, I would say this was at a fairly stable point, and had a lot more features than most other similar tools (see: XPDA.net for comparison), to call the project 1.0.0
            • 0.12.3 = Last version of the original architecture. Should have been 1.5.3.
            • 0.13.0 = Should have been a major bump, 2.0.0. It was a completely new architecture, rebranding from Node-Webkit to NW.js, and major API changes. The architecture and API change from here (2013) is still used today. Updating a project from 0.13.0 to 0.51.0 (latest stable) may not require any code changes at all, you'd just get a ton of new features and security patches from chromium/node.
            • 0.14.7 = This is the LTS version that still supports Win XP, and OSX 10.6. Should have been 2.2.7.
            • 0.15.0 = Should have been 3.0.0 (to indicate breaking change of OS support, though API is the same).
            • Some time between 0.20.0 and 0.30. the OSX version support changed from 10.6 to 10.9. There was some other OS support changes that were a result of Chromium and Node. For example, Node 13+ may work on Windows 7, but it is no longer supported, so it also may not. So probably a bump to 4.0.0 around here for the OS version support change to be more obvious and better documented.
            • 0.42.4 = This was the first release with NW2 enabled by default, a major re-write to the window system that would allow tons of new Chromium features to be added in the future. This should have been another major bump to 5.0.0.

            So if your question is "Is it production ready?" then, yes, since 2013, and you could even argue it was pretty capable back in 2011 when compared to a lot of other modern (2021) efforts.

            If your questions is "Is it stable?" then, yes, since 2016 there have been no breaking changes to the API. Just constant and consistent updates to Chromium and Node.js, and new features being added.

            It seems like they do "minor" bumps any time they update chromium to a new Major number, and do "patch" bumps anytime they update Chromium or Node.js without changing the major Chromium number. Which has at least some logic to it.

            Source https://stackoverflow.com/questions/65545291

            QUESTION

            NW.js Windows 10 Taskbar icon shows always default
            Asked 2021-Feb-16 at 17:28

            In Windows 10 the taskbar is not showing my custom-made icon. I am using the latest (at the moment of writing) 0.51.1 version of nw.js and the taskbar icon always defaults doesn't matter what I am doing. Even though the .exe icon is changing on the build and behaves as expected. Have anyone managed to solve this issue? I read almost all issues log on this topic on the official nw.js Github page but it doesn't help and seems like the issue still happens for some users.

            here is my package.json file

            ...

            ANSWER

            Answered 2021-Feb-16 at 15:49

            You need to add the 'window.icon' property to your package.json. Something similar to:

            Source https://stackoverflow.com/questions/66227321

            QUESTION

            NW.js trouble exporting modules
            Asked 2021-Feb-07 at 06:15

            I am trying to use module.exports() to create a new module in my NW.js application.

            I have two files that I am using:

            Index.js

            ...

            ANSWER

            Answered 2021-Feb-07 at 06:15

            I created a PR to fix a bunch of stuff in the repo:

            the main issue here though is that module.exports is not a function, it would be assigned an object, such as:

            Source https://stackoverflow.com/questions/66082934

            QUESTION

            NW.js Local Storage Cache Still Persists Even After App Uninstallation
            Asked 2021-Feb-07 at 00:19

            In my NW.js app, I store some data in the Local Storage. Now I want to delete the app and surely the Local Storage data as well. I move the app to the trash and clean it up. Also, I delete cache information related to the app located in /Users//Library/Caches/.

            But unfortunately, all this doesn't help. After building a new copy of the app and shipping it to the macOS Application folder the Local Storage data restores from somewhere like it never has been deleted at all. All the data still here.

            The question is how to delete all the stored data and where does it sit? Or at least from where to read about it because I couldn't find information in the nw.js official docs. Thank you.

            ...

            ANSWER

            Answered 2021-Feb-07 at 00:19

            In macOS to reset your NW.js app Local Storage manually you need to delete the next folder:

            Source https://stackoverflow.com/questions/66018792

            QUESTION

            NW.js (node-webkit) and Vue.js issue with require systeminformation module
            Asked 2021-Feb-02 at 02:27

            I have a project that uses NW.js in conjunction with Vue.js. The problem is that I can't include systeminformation module to the Vue.js because according to the documentation (see the core concept section) this lib doesn't work from inside the chromium but only on a server-side. How to include this lib in nw.js to make it available globally so I can use it from inside the vue code?

            I've been using a solution that seemed to work but recently I figured out that it isn't. What I've been doing - I included script right in the ./public/index.html and it works on dev but not on the build. When I build the app and move it to another place it just can't find the path to the systeminformation package.

            ...

            ANSWER

            Answered 2021-Feb-02 at 02:27

            It depends on the way you are using Vue. If you are doing a simple "CDN" style then look at this example:

            The README in that repo will give step-by-step instructions.

            If you are using the Vue-CLI style, then this should work:

            That repo is a complete boilerplate for Vue-CLI + NW.js

            Source https://stackoverflow.com/questions/66001466

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            CVE-2014-9733 CRITICAL
            nw.js before 0.11.5 can simulate user input events in a normal frame, which allows remote attackers to have unspecified impact via unknown vectors.

            Install nw.js

            Note: on Windows, you can drag the folder containing package.json to nw.exe to open it. Note: on OSX, the executable binary is in a hidden directory within the .app file. To run node-webkit on OSX, type: /path/to/nwjs.app/Contents/MacOS/nwjs . (suppose the current directory contains 'package.json').
            Starting from 0.32.0 the stable and nightly download directories contain a SHASUMS256.txt file that lists the SHA checksums for each file available for download, as well as the checksums for the files inside the download package. The SHASUMS256.txt can be downloaded using curl.

            Support

            We use the google group as our mailing list (use English only). Subscribe via nwjs-general+subscribe@googlegroups.com. NOTE: Links to the old google group (e.g. https://groups.google.com/forum/#!msg/node-webkit/doRWZ07LgWQ/4fheV8FF8zsJ) that are no longer working can be fixed by replacing node-webkit with nwjs-general (e.g https://groups.google.com/forum/#!msg/nwjs-general/doRWZ07LgWQ/4fheV8FF8zsJ). Issues are being tracked here on GitHub. The source code for NW.js and the daily development spans across multiple repositories in this organization. This repository is for the purpose of issue tracking, landing page and part of the source code.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/nwjs/nw.js.git

          • CLI

            gh repo clone nwjs/nw.js

          • sshUrl

            git@github.com:nwjs/nw.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link