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

easy-cluster

v1.0.0

Published

A cluster daemon with a rest interface for your app.

Downloads

23

Readme

easy-cluster

Build Status

                                     ^
                                    //\
                                       \
                  \\              .__=. \
                   \____        ,' -(@)\-\<)
                    \__ \      (_______/_:\
                   >==.\ \___,'  /# #\ | : \____
                     ,\\\___/|_|##(O)##| `./\---.
                    / ,`--'   ,======'//, //.\ . \
                   ( ______)_//<_> O////  ( (@O ) )
                    (________/ ====='o'    \ `-' /
                     `----'                 `---'

easy-cluster, so named after easy rider and node's cluster module, is a painless, simple, easy going daemon to manage multiple node.js clusters. It exposes an interface via REST that is rock solid and stable. The way you want your deployments in production to be.

##Installation npm install -g easy-cluster

##Usage Once you've installed the package, start the daemon by running ecluster from a tty.

Clusters are managed via a REST API, so starting the daemon is the initial step needed before moving forward.

##API Overview This is the REST API understood by the daemon.

Property names enclosed in [] are considered optional for POST operations. Property names enclosed in {} are ignored for POST operations.

###/ Prints everything daemon related.

#####Properties

  • clusters - An array of clusters.

#####Methods

  • GET / - Retrieves all data managed by the daemon.

###/clusters Allows you to manage clusters in the daemon. Each cluster starts a new master process that forks workers. The process of loading, reloading, and responding to the death of workers is governed by a strategy. The default strategy is "simple".

#####Properties

  • {id} - The id of the cluster. Every cluster has this. Ids are numerical.
  • pid - The pid of the master process.
  • [name] - This is the name of the cluster. Names are not shared between clusters, so they act as a friendly id.
  • [strategy] - The strategy the cluster uses to manage workers. By default the value is simple. These are valid strategies:
    • simple - Workers are killed immediately without notice on any update. When a worker dies, a new one is immediately created.
  • workerPath - This is an absolute path to a worker file. The cluster will use this when forking workers.

#####Methods

  • DELETE /clusters/:id - Deletes a cluster.
  • GET /clusters - Retrieves all clusters currently loaded.
  • GET /clusters/:id - Retrieves a cluster by id.
  • GET /clusters?name=name - Retrieves a cluster by name.
  • POST /clusters - Creates a cluster.
  • PUT /clusters/:id - Updates a cluster.