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

@nginstack/build-tools

v80.0.1

Published

Auxiliary tools used for build JAZ packages on nginstack platform.

Downloads

217

Readme

Build Tools

Auxiliary tools used for build JAZ packages on nginstack platform.

Install

Prerequisites

Installation

  1. Install @nginstack/build-tools using npm:

    npm install @nginstack/build-tools

Configuration

Build tools scripts requires a configuration about the target database that will run the tests and receive the build artifacts. The configuration can be informed by environment variables or by a .env config file placed at repository root.

The build API and scripts will search custom jaz archives automatically at directory build/ and they will use directory .engine as Engine work directory. It´s recommended to ignore this directory in .gitignore to avoid to commit Engine large temporary files like logs and database local caches.

Configure defining the environment variables:

  • ENGINE_URL: engine server URL. Example: http://my_database.nginstack.com.
  • ENGINE_DATABASE: database name. Example: MY_DATABASE.
  • ENGINE_AUTH_TOKEN: authorization token with permission to scope "api.devops".

Alternatively, the variables below can be used instead of ENGINE_AUTH_TOKEN.

  • ENGINE\_USERNAME: user name used to upload artifacts and run tests.
  • ENGINE\_PASSWORD: user password used to upload artifacts and run tests.

A .env file can also be used:

ENGINE_URL=http://my_database.nginstack.com
ENGINE_DATABASE=MY_DATABASE
ENGINE_AUTH_TOKEN=token

Build and utilities scripts

uploadToVfs

Upload one or more build artifacts to Engine Virtual File System.

Usage:

uploadToVfs PATH_1 FILE_KEY_1 PATH_2 FILE_KEY_2 ... PATH_N FILE_KEY_N

runTests

Run server tests on Engine and save the results to a file using the JUnit tests XML report file format.

Usage:

runTests.js TESTS_PATHS OUT_REPORT_PATH

Experimental: inform the parameter -v8 to run tests using the V8 as default JavaScript runtime.

runTests.js TESTS_PATHS OUT_REPORT_PATH -v8

installJazDependencies

Read the array property jazDependencies of package.json and download the informed JAZ packages of the server informed by the environment variable SERVER_URL. The downloaded JAZ packages are extracted in node_modules.

Is recommended to use installJazDependencies as a postinstall script of package.json.

Usage:

installJazDependencies

packJaz

Build a JAZ file using a config file informed as argument. Config example:

{
  "dest": "build/my-package.jaz",
  "files": [
    "package.json", "lib/**", "routes/**", "controllers/**", "keys/**", "tests/**",
    "publicModules.js", "scripts/**", "startups/**"
  ],
  "ignore": [
      "lib/localConfig.js"
  ],
  "minifier": {
    "files": [
      "lib/**"
    ]
  },
  "e2c": [
    {
      "metadata": {
        "license": {
          "product": -1898148465
        }
      },
      "files": [
        "lib/protected-api/**"
      ]
    }
  ]  
}

Use the minifier option to minify and to obfuscate the files of the JAZ Package and the e2c option to encrypt files using the Engine E2C file format. Both features are experimental and not were officially released as supported product features.

Usage:

packJaz jaz.config.json