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

tplot

v1.0.4

Published

Tired of using `watch` for watching numbers in the terminal? e.g `watch "ls | wc -l"` Tired of calculating the decrease rate of items in queue over and over again? Trends? Throughput? Time left to zero?

Downloads

4

Readme

tplot

Tired of using watch for watching numbers in the terminal?
e.g watch "ls | wc -l"
Tired of calculating the decrease rate of items in queue over and over again?
Trends? Throughput? Time left to zero?

tplot is the answer!
alt text

tplot is a modular nodejs cli that reads metrics from lots of inputs and plots it in the terminal!
In addition to the line chart you can see more stats about the series.

Stats:

tplot is trying to guess the slope of the line using linear regression

| name | explain | | ------------- | ------------- | | Max | Maximum point (since launch) | | Min | Minimum point (since launch) | | Average | Average value of all points | | Points collected | Amount of points collected (since launch) | | Shape | Linear / non-linear | | Throughput | If shape is linear presents the throughput based on line's slope| | Time to ${program.goal} | The approximate time remained to the gaol (defaults to 0) |

Available plugins

  • redis
  • sqs
  • stdin
  • command

Examples:

Read numbers from stdin

command | tplot stdin

Run command periodically and plot the output

tplot cmd 'echo $RANDOM'

Plot the number of files in the directory

tplot cmd 'ls|wc -l'

Plot redis list length

tplot redis -h myserver events'

Usage:


  Usage: tplot [options] [command]


  Options:

    -V, --version               output the version number
    -t, --title [title]         Set the title
    -p, --points [n]            Set the maximum number of points to show in the screen (default:100)
    -g, --goal [n]              If looking at an linear line, set the goal you wish the line will get (default:0)
    -r, --regressionPoints [n]  Set the numbers of points to collect in order to calculate the throughput (default:16)
    -h, --help                  output usage information


  Commands:

    cmd|c [options] <command>  Monitor shell command output
    stdin|s                    Monitor stdin
    redis|r [options] <list>   Monitor redis list length

Installation:

via npm:
npm install -g tplot

via docker:

docker pull mosheza/tplot
docker run -it mosheza/tplot -c 'echo 1'

via source:

[email protected]:moshe/tplot.git
cd tplot
npm install --link