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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hotfix

v0.0.4

Published

Push live changes to your end users

Readme

Hotfix

Hotfix is a simple utility that pushes new fixes to the end client while they're still on your site.

Requirements

Dev Dependencies

Testing

  • phantomjs - brew install phantomjs

Building

  • browserify - npm i browserify -g
  • closure-compiler - brew install closure-compiler
  • coffee-script - npm i coffee-script -g

Installation

Assuming you have node.js installed, call:

npm i hotfix -g

Usage

There are a few ways to use hotfix:

Hotfix & Express

  1. First create a simple server:
var express = require("express"),
hotfix = require("hotfix"),
server = express();
hotfix.server(server);
server.listen(8080);
  1. Next, add this script tag to the header of your HTML document:
<html>
  <head>
    <script src="/hotfix/main.bundle.js"></script>
  </head>
  <body>
    Hello World!
  </body>
</html>
  1. Open a browser, and navigate to http://localhost:8080.
  2. Make a change to your HTML doc, and call hotfix push-changes in the command line to refresh all open pages.

Hotfix & the command line

You can also use hotfix without node.js. To get started, run:

hotfix run-server --port=8080

Tips

Running a critical update that forces the user to refresh

hotfix push-changes --critical

Running an update against only certain clients (assuming you have something like window.app.version assigned). Note that all mongodb-like queries are accepted since the hotfix client uses sift.

hotfix push-changes --filter="{\"app.version\": 19 }"

Customizing the end-user message

hotfix push-changes --message="This page is about to refresh due to connectivity issues"

CLI Usage

Usage: [command] --arg=value --arg2

Help:
  help                        Show help menu
  [cmd] help                  Show command help menu

Options:
  run-server                  Runs the hotfix http server
  push-changes                Pushes changes to all clients that are currently viewing the site

run-server command

Runs the hotfix http server

Usage: run-server

Optional Flags:
  --port=8080                 The http port to run hotfix on

push-changes command

Pushes changes to all clients that are currently viewing the site

Usage: push-changes

Optional Flags:
  --filter                    mongodb-style filter for each client
  --message=New updates a...  Message to display to the client.
  --critical                  Critical update - user account is force refreshed.
  --config=/usr/local/etc...  Configuration file for pubnub.