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

netty-js

v1.1.0

Published

Netty - A website monitoring and tracking service for uptime, response time, and SSL checks.

Readme

Netty - Node.js URL Monitoring Library

Description: Monitor uptime, response time, SSL certificates, DNS, and more. Supports multiple URLs, retries, intervals, slow response alerts, and event-driven notifications.

Installation: npm install monitor

Usage Example:

const Monitor = require('./monitor');

const monitor = new Monitor({ url: ['https://example.com', 'https://google.com'], interval: 30000, // check every 30 seconds timeout: 10000, // request timeout retries: 2, // retry failed requests twice retryDelay: 2000, // wait 2s between retries slowThreshold: 1500 // emit 'slow' if response > 1.5s });

monitor.on('check', (res) => console.log('Checked:', res)); monitor.on('up', (res) => console.log('UP:', res.url)); monitor.on('down', (res) => console.log('DOWN:', res.url)); monitor.on('slow', (res) => console.log('SLOW response:', res.url, res.responseTime)); monitor.on('error', (err) => console.log('Error:', err));

monitor.start();

// Access last result for a specific URL setTimeout(() => { console.log('Last result for example.com:', monitor.getLast('https://example.com')); }, 35000);

Features:

  • Monitor multiple URLs
  • Interval-based checks
  • DNS lookup verification
  • HTTP/HTTPS requests with retries
  • SSL certificate validation
  • SSL expiration warnings (7 days before expiry)
  • Response time tracking
  • Slow response alerts
  • Event-driven (check, up, down, slow, error)
  • Keeps last 100 checks per URL

Events: check - Emitted after every check up - Emitted if URL is up down - Emitted if URL is down slow - Emitted if response time exceeds threshold error - Emitted on network/DNS/SSL error

Result Object Structure: url: URL being monitored up: true/false statusCode: HTTP status code responseTime: response time in ms dns: DNS lookup info { address, family } ssl: SSL certificate info { subject, issuer, validFrom, validTo } sslExpired: true/false sslWarning: true if SSL expires within 7 days checkedAt: ISO timestamp

Methods: start() - Start monitoring all URLs stop() - Stop monitoring checkAll() - Perform a single check for all URLs getLast(url) - Get the last check result for a URL getHistory(url) - Get the last 100 results for a URL

License: MIT