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

resource-node

v0.4.2

Published

for managing nodes

Downloads

4

Readme

node

for managing nodes

API

properties

methods

properties

for managing nodes

  • id

    • type : any
  • port

    • type : number

    • default : 7777

    • description : the port of the node

  • host

    • type : string

    • default : 0.0.0.0

    • description : the host of the node

  • name

    • type : string

    • description : the name of the node

  • events

    • description : the total amount of events processed by this node

    • type : number

  • username

    • description : the username used to log into the node

    • type : string

    • default : root

    • required : false

  • role

    • description : the role of the node

    • type : string

    • enum

      • 0 : server

      • 1 : client

    • default : client

  • status

    • description : the status of the node

    • type : string

    • enum

      • 0 : connected

      • 1 : disconnected

    • default : disconnected

  • password

    • description : the password used to log into the node

    • type : string

    • required : false

  • system

    • description : a dump of the node's system information ( from node.process and require('os') module )

    • type : any

  • lastSeen

    • description : the last date/time the node was seen

    • type : string

methods

node.create(options, callback)

create a new node

  • options

    • type : object

    • properties

      • id

        • type : any
      • port

        • type : number

        • default : 7777

        • description : the port of the node

      • host

        • type : string

        • default : 0.0.0.0

        • description : the host of the node

      • name

        • type : string

        • description : the name of the node

      • events

        • description : the total amount of events processed by this node

        • type : number

      • username

        • description : the username used to log into the node

        • type : string

        • default : root

        • required : false

      • role

        • description : the role of the node

        • type : string

        • enum

          • 0 : server

          • 1 : client

        • default : client

      • status

        • description : the status of the node

        • type : string

        • enum

          • 0 : connected

          • 1 : disconnected

        • default : disconnected

      • password

        • description : the password used to log into the node

        • type : string

        • required : false

      • system

        • description : a dump of the node's system information ( from node.process and require('os') module )

        • type : any

      • lastSeen

        • description : the last date/time the node was seen

        • type : string

  • callback

    • type : function

node.get(id, callback)

get node by id

  • id

    • type : any

    • description : the id of the object

    • required : true

  • callback

    • type : function

node.find(options, callback)

search for instances of node

  • options

    • type : object

    • properties

      • id

        • type : any

        • default :

        • required : false

      • port

        • type : any

        • default :

        • description : the port of the node

        • required : false

      • host

        • type : any

        • default :

        • description : the host of the node

        • required : false

      • name

        • type : any

        • description : the name of the node

        • default :

        • required : false

      • events

        • description : the total amount of events processed by this node

        • type : any

        • default :

        • required : false

      • username

        • description : the username used to log into the node

        • type : any

        • default :

        • required : false

      • role

        • description : the role of the node

        • type : any

        • default :

        • required : false

      • status

        • description : the status of the node

        • type : any

        • default :

        • required : false

      • password

        • description : the password used to log into the node

        • type : any

        • required : false

        • default :

      • system

        • description : a dump of the node's system information ( from node.process and require('os') module )

        • type : any

        • default :

        • required : false

      • lastSeen

        • description : the last date/time the node was seen

        • type : any

        • default :

        • required : false

  • callback

    • type : function

node.all(callback)

gets all instances of node

  • callback

    • type : function

node.update(options, callback)

updates a node by id

  • options

    • type : object

    • properties

      • id

        • type : any
      • port

        • type : number

        • default : 7777

        • description : the port of the node

      • host

        • type : string

        • default : 0.0.0.0

        • description : the host of the node

      • name

        • type : string

        • description : the name of the node

      • events

        • description : the total amount of events processed by this node

        • type : number

      • username

        • description : the username used to log into the node

        • type : string

        • default : root

        • required : false

      • role

        • description : the role of the node

        • type : string

        • enum

          • 0 : server

          • 1 : client

        • default : client

      • status

        • description : the status of the node

        • type : string

        • enum

          • 0 : connected

          • 1 : disconnected

        • default : disconnected

      • password

        • description : the password used to log into the node

        • type : string

        • required : false

      • system

        • description : a dump of the node's system information ( from node.process and require('os') module )

        • type : any

      • lastSeen

        • description : the last date/time the node was seen

        • type : string

  • callback

    • type : function

node.updateOrCreate(options, callback)

updates a node by id, and creates if necessary

  • options

    • type : object

    • properties

      • id

        • type : any
      • port

        • type : number

        • default : 7777

        • description : the port of the node

      • host

        • type : string

        • default : 0.0.0.0

        • description : the host of the node

      • name

        • type : string

        • description : the name of the node

      • events

        • description : the total amount of events processed by this node

        • type : number

      • username

        • description : the username used to log into the node

        • type : string

        • default : root

        • required : false

      • role

        • description : the role of the node

        • type : string

        • enum

          • 0 : server

          • 1 : client

        • default : client

      • status

        • description : the status of the node

        • type : string

        • enum

          • 0 : connected

          • 1 : disconnected

        • default : disconnected

      • password

        • description : the password used to log into the node

        • type : string

        • required : false

      • system

        • description : a dump of the node's system information ( from node.process and require('os') module )

        • type : any

      • lastSeen

        • description : the last date/time the node was seen

        • type : string

  • callback

    • type : function

node.destroy(id, callback)

destroys a node by id

  • id

    • type : string

    • description : the id of the object

    • required : true

  • callback

    • type : function

node.sh(options, callback)

execute shell scripts on a node via SSH

  • options

    • type : object

    • properties

      • host

        • type : string

        • default : 0.0.0.0

      • recipe

        • description : name to the shell script to run remotely

        • type : string

        • default : ls-test

  • callback

    • type : function

README auto-generated with docs