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

coffee-site-monitor

v0.0.1

Published

Website monitor

Downloads

3

Readme

#Coffee Site Monitor

based off Node Site Monitor : https://[email protected]/hootware/node-site-json.git

A simple node server that will check the status of any number of websites and alert any number of users in different ways.

##Why not just use Node Site Monitor?

Node Site Monitor has a slightly different philosophy to what I hold: users should be tightly related to sites. A site should have its own array of users, and those users may want different communication channels for different sites. I also wanted to do as much as possible in CoffeeScript. In the project's future everything with be CoffeeScript and it will focus on getting site config from MongoDB. There will be a central deployment that will communicate with other instances that do the response testing, and take care of communication with users centrally.

##Install

###NPM

npm install coffee-site-monitor

###Manual

You need to download the code and also install the nodemailer library as this is used for e-mail alerts

##Usage

Easy peasy! It will load the config when started and will just keep running. If you want to change the config, you need to restart the application.

coffee site-monitor

##Check types

The different ways that are checked to see the status of a site

  • Check if host is reachable
  • Check HTTP status code
  • Check for connect timeouts
  • Check to see if text on the page matches what is expected

##Alert types

The different ways of sending alerts to users. Users can have multiple methods, each with different "availability windows"

  • E-mail:
    • GMail is the only service available at the moment
    • Other providers/SMTP setup coming soon
  • (future) Twitter DM (free SMS!)
  • (future) Twitter mention
  • (future) Custom POST request
  • Make your own... just extend the base communication class lib/communication/base.js

##Storage types

The different ways to store the site check data and what

  • stdout (console.log)
  • (future) file
  • (future) MongoDB
  • Make your own... just extend the base communication class lib/storage/base.js

##Setup This is all done in a simple config file. As long as you match the format in the config.json example it will work fine. The arrays in the config don't have any soft limits, so the only limits will be in node or hardware. Let us know if you have any issues. If you want to change the config, you need to restart the application.

Copy the sample-config.json and rename to config.json then start the application.