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

monitode

v2.6.8

Published

resource monitor for nodejs

Downloads

30

Readme

monitode

NPM version Build Status Dependency Status

monitode logo

Resource monitor for nodejs using a full stack of MEAN.

Installation

Install through NPM

npm install monitode

or

git clone git://github.com/hex7c0/monitode.git

API

inside nodejs project

var monitode = require('monitode')();

inside expressjs project

var monitode = require('monitode');
var app = require('express')();

app.use(monitode({
    password : 'psw'
}));

inside expressjs project with logger-request

var monitode = require('monitode');
var app = require('express')();
var logger = require('logger-request');

var file = __dirname + '/monitode.log'
app.use(logger({
    filename : file,
}));
app.use(monitor({
    log : file,
}));

Monidote informations are stored inside GLOBAL Object. One istance for environment.

GLOBAL.monitode;

monitode(options)

options

  • output - Boolean If enabled, show output to shell console (default "false")

  • os - Boolean If enabled, show os (netstat, iostat) statistics to web console/database/email (default "false") NOT FOR WIN

  • tickle - Boolean If enabled, using tickle inside dynamic datas (default "disabled")

  • app - Object If enabled, using Express object for express-sitemap inside static datas (default "disabled")

  • http - Object Setting up a web console using basic-authentication

  • enabled - Boolean If disabled, don't run web console (default "enabled")

  • port - Integer Which port accept connection of web console (default "30000")

  • user - String User for web basic access authentication (default "admin")

  • password - String Password for web basic access authentication (default "password")

  • agent - String Browser User Agent for web authentication (default "all accepted")

  • realm - String Realm for web authentication (default "Monitode")

  • file - String Path of htpasswd file (default "disabled")

  • hash - String Type of hash inside your htpasswd file (default "md5")

  • dir - String Absolute path of web files directory (default "/public")

related to https://github.com/hex7c0/basic-authentication

  • https - Object Setting up a web console over TLS/SSL using basic-authentication
  • key - String Path to TLS/SSL key (default "disabled")
  • cert - String Path to TLS/SSL certificate (default "disabled")
  • port - Integer Which port accept connection of web console over TLS/SSL (default "30003")
  • user - String User for web basic access authentication over TLS/SSL (default "admin")
  • password - String Password for web basic access authentication over TLS/SSL (default "password")
  • agent - String Browser User Agent for web authentication over TLS/SSL (default "all accepted")
  • realm - String Realm for web authentication over TLS/SSL (default "Monitode")
  • file - String Path of htpasswd file (default "disabled")
  • hash - String Type of hash inside your htpasswd file (default "md5")
  • dir - String Absolute path of web files directory (default "/public")

related to https://github.com/hex7c0/basic-authentication

  • logger - Object Setting up a permanent file which save your story
  • log - String Path to log file, using logger-request (default "disabled") Parsing information stored inside log, and show it to web console or file/database
  • file - String Path to file (default "disabled") Save stats at regular intervals to file
  • timeout - Float Timeout (second) for file write (default "5")

related to https://github.com/hex7c0/logger-request

  • db - Object Setting up a connectiont to database which save your story
  • mongo - String URI for MongoDb connection (default "disabled") Save stats at regular intervals to database
  • couch - String URI for CouchDb connection (default "disabled") Save stats at regular intervals to database
  • database - String Name of your database (default "monitode")
  • timeout - Float Timeout (second) for database query (default "20")

related to https://github.com/mongodb/node-mongodb-native and https://github.com/dscape/nano

  • mail - Object Setting up SMTP

  • provider - String Check nodemailer for available email provider (default "disabled")

  • user - String User for email authentication (default "admin")

  • password - String Password for email authentication (default "password")

  • to - Array Write here your destination emails (default "empty")

  • subject - String Email subject (default "password")

  • timeout - Float Timeout (second) for email send (default "60")

  • status - Object Setting up a check of status of any number of websites and save status to file

  • enabled - Boolean If disabled, don't run check status (default "disabled")

  • sites - Array Write here your list of checking websites (default "empty")

  • port - Array Write here your list of websites port (default "empty")

  • method - String A string specifying the HTTP request method (default "GET")

  • agent - String User Agent for sending request (default "monitode crawl")

  • file - String Where save information of connection (default "status")

  • timeout - Float Timeout (second) for email send (default "120")

Examples

Take a look at my examples

Or look at pdf file

License GPLv3