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 🙏

© 2024 – Pkg Stats / Ryan Hefner

indy

v1.0.1

Published

Continuously poll your node.js/io.js and time eventloop delay, process info, memory info, etc.

Downloads

11

Readme

Indy

Fancy having your own Dr. Henry Walton "Indiana" Jones, Jr? Now you can!


var Indy = require('indy');

var indy = new Indy();

// Defaults to our artefact custom event dispatcher.
// Times eventloop delay, process info, memory info, etc.
indy.whip( { /* dispatcher: new StatsD() */  } );

// Not sure why you would need it yet but, lets just see.
indy.pause();
indy.resume();

// Dumps a metric shit-ton of things, memory, core, yada yada ya.
// Breaks things, blocks the eventloop etc. not fun.
indy.extract(); // heart!

// We always forget this!
indy.hat();

The default dispatcher will log the example output using console.log as an example. A statsd version of this is available at tomgco/indy-statsd to use, or to base off of your own metrics sink hole.

var StatsdIndy = require('indy-statsd');
indy.whip({ dispatcher: new StatsdIndy() });

Example output from the default dispatcher

{
  "gccount": 0, // delta of gc counts between each capture
  "memrss": 18083840, // bytes
  "memfree": 721039360, // bytes
  "memtotal": 4076998656, // bytes
  "memheaptotal": 14519296, // bytes
  "memheapused": 5660016, // bytes
  "cpus": [
    {
      "model": "intel(r) core(tm) i5-3427u cpu @ 1.80ghz",
      "speed": 800, // Mhz
      "times": {
        "user": 11770900, // ms
        "nice": 1509700, // ms
        "sys": 4852500, // ms
        "idle": 44234800, // ms
        "irq": 700
      }
    },
    {
      "model": "intel(r) core(tm) i5-3427u cpu @ 1.80ghz",
      "speed": 800,
      "times": {
        "user": 9865300,
        "nice": 1292400,
        "sys": 4128400,
        "idle": 48376000,
        "irq": 0
      }
    },
    {
      "model": "intel(r) core(tm) i5-3427u cpu @ 1.80ghz",
      "speed": 800,
      "times": {
        "user": 11763300,
        "nice": 1567500,
        "sys": 5049500,
        "idle": 42676900,
        "irq": 0
      }
    },
    {
      "model": "intel(r) core(tm) i5-3427u cpu @ 1.80ghz",
      "speed": 1000,
      "times": {
        "user": 9685200,
        "nice": 1140400,
        "sys": 4383000,
        "idle": 45695100,
        "irq": 0
      }
    }
  ],
  "loadavg5": 0.6865234375,
  "loadavg10": 1.10400390625,
  "loadavg15": 1.39208984375,
  "delay": 3.174327 //ms
}