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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@klouddydev/node-box

v1.0.11

Published

[![Build Status](https://travis-ci.com/klouddy/node-box.svg?branch=master)](https://travis-ci.com/klouddy/node-box.svg?branch=master)

Readme

Node Box

Build Status

Quick way to create an express app for static html/js sites with some extra features.

Install

npm install --save @klouddydev/node-box

Sample Usage

const nodeBox = require('@klouddydev/node-box');

var a = new nodeBox.NodeBox({filename: './config.yml'});

a.logger.warn('logging warn message');
a.app.listen(3000, () => {
  console.log('listening on 3000')
});

** Example config file **

actuator:
    prefix: /actuator
    paths:
        info: /info
        health: /health
        metrics: /prometheus
        logger: /logfile
application:
    name: App name
static:
    path: /
    src: ./public
logger:
    level: info
    filename: app.log
    postPath: /logger
proxies:
    - path: /api
      target: http://localhost:8080
      logLevel: info

Configuration

Must include a config file.

Actuator

This comes from spring boot. The intention is to provide some basic information about the app and some typically useful access points.

  • prefix is the leading path for access the rest of the actuator endpionts
  • paths.info endpoint for getting info details. This will return a json value of everything in the applciation property. IT will be converted to a JSON object and returned.
  • paths.health endpoint for getting health response. Health endpoint will return {"status":"up"}
  • paths.logger endpoint to view the logfile that is created by the app.
  • paths.metrics endopoint to view the prometheus metrics for the app.
    The metrics are accomplished by using prometheus-api-metrics

Application

This can be any properly formatted yml. It will be converted to a json object and returned to the /acuator/info endpoint

Static

Config for serving static html/js content

  • path is the endpoint that the static files will be served from.
  • src is the relative path the static files are located in.

Logger

Configuration for logger of the express application. Uses winstonjs.

  • level log level
  • filename if this is present the application will also write log messages to a file. It will also be what is returned when accessing the /actuator/logger endpoint.
  • postPath is the path used to post a log message to. Can be used for external logging of a SPA.

Proxies

Configuration of reverse proxies created. This is accomplished by using the http-proxy-middleware. It is a list of proxies.

  • path path the proxy is accessible from.
  • target target for the reverse proxy.
  • logLevel log level set for the revers proxy.