npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

nightwatchjs-gui

v2.0.0

Published

NightwatchJS GUI implementation for executing tests and manage tests cron jobs

Readme

NightwatchJS GUI

Run tests, create and manage cronjobs for automatic e2e tests from GUI. Backend uses express. Frontend uses Vue.js

Using

Start server from command line: nightwatchjs-gui from your project root folder.
node_modules/.bin/nightwatchjs-gui if the package is installed locally.
Example: node_modules/.bin/nightwatchjs-gui --port=4600

Start from js script:

const NightwatchJSGUI = require('nightwatchjs-gui');

var args = {
    port: 4600,
    configFilePath: '/var/www/html/e2e-tests/config.conf.js',
    dbFilePath: '/var/www/html/e2e-tests/gui-db/gui.db',
    cronjobCallback: (result, cronjob) => {
        //Get predefined emails by cronjobs tags and send the results
        let emails = getMailsByTags(cronjob.tags);
        emailService.send(emails, result);
    }
}

var nightwatchJSGUI = new NightwatchJSGUI(args);

Options

Name|Description|Type|Default -----|-----|-----|----- port|The port for the server to expose|String|8080 configFilePath|Path to nightwatch configuration file. Nightwatch documentation Read more|String|./nightwatch.conf.js OR nightwatch.json dbFilePath|This is where db file will be created Read more|String|./nightwatchjs-gui-db/cron_jobs.db cronjobCallback|A callback function to run when test cronjob is done or a path to a file that exports this function Read more|Function/String|System will log the result to console reporter|Path to reporter file. Read more|String||

configFilePath

Absolute path to your nightwatch project config file. This will be used to extract the paths to tests folders and testing environments (selenium etc.). Tests folders must be defined in this file although this property is optional for nightwatch, this is the way nightwatch-gui will know how to list your tests and tests groups.

cronjobCallback

Nightwatch GUI will call this function with the following arguments:\

  • results - The test results parsed from stdout
  • cronjob - The cronjob object that was executed

dbFilePath

Nightwatch GUI uses nedb library for DB management. The data will be saved to the file specified in this argument.

reporter

By default nightwatchjs-gui will save reports to db and parse them in reports page. You can set your own reporter as described in Nightwatchjs documentation. This argument will be used directly in the test command.

Detach mode

To run as a background service use detach mode by adding -d flag. This will enable keeping nightwatchjs-gui alive after closing the command session.

To stop the service run nightwatchjs-gui --stop

This package uses pm2 for running as a service. Checkout it's documentation for more options

Docker

This project is also available as a docker image in fishondor/nightwatchjs-gui.

Running the server from docker container will require configuring testing environments for local selenium testing. Running tests remotely (browserstack, crosssbrowsertesting) will have no difference though.

To run the image, map desired port to 8080 and mount nightwtch project folder to /var/nightwatch. Example: docker run -p 8080:8080 -v "$(pwd)"/:/var/nightwatch fishondor/nightwatchjs-gui. Example for implementation with selenium-chrome-debug docker image using docker-compose, and nightwatch testing environment configuration can be found here

Development

  • Clone this repo (recommended into a nightwatch js project)
  • run npm run start:local - this will start local server on port 8080 and vue.js project on port 4200
  • Open localhost:4200

Authentication

This package does not implements authentication. One way to add authentication is to implement a proxy server that will handle authentication and pass requests to nightwatchjs-gui server.

Simple implementation of firebase auth reverse proxy server can be found here