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

web-kit

v0.2.1

Published

Toolkit for web development.

Readme

web-kit

Web-kit is used for web development of front-end developers.

  • It contains the grunt workflow of lively reload in it self, you have no need to write Gruntfile.
  • Once installed Run everwhere.
  • It contains a server, and when you save your html/js/css/less files it will compile and auto loaded in your browser, you'll have no need to switch between code editor and browser and press F5(cmd + R in mac) to reload your page everytime.
  • It has middleware function you can self defined your request and response by adding a parameter like web-server --middleware mid.js (in mid.js you can make the rule like if I request data.json to the server it can return the data I needed to be returned, It's useful to mock your ajax request)
  • It both can be used in windows, mac and linux platform (Thanks to win-spawn https://www.npmjs.org/package/win-spawn, when you using in Windows you need to press Ctrl+C two times if you want to stop your web-server, or kill -9 theNodePid) install =======
npm intall -g grunt-cli
npm install -g web-kit

use

run commands in your shell, it will set up an internal server to show your pages, compile less and auto loaded when your save you files in your_project_home.

web-server --dir your_project_home
web-server --port 3000
web-server --index other.html
web-server --middleware /opt/local/share/nginx/html/web-kit/mid.js
// /opt/local/share/nginx/html/web-kit/mid.js
// It's demo for how to write middleware file
// this self defined middleware file can used for simulate mock json response data for ajax request
var apis ={
	'/data/ok': {
		"code": "200",
		"msg": "It's ok"
	},
	'/data/err': {
		"code": "600",
		"msg": "something wrong"
	}
};
var midFunction = function (req, res, next) {
	var url = req.url;
	if (apis[url]) {
		res.writeHead(200, {
			'Content-Type': 'application/json'
		});
		var content = JSON.stringify(apis[url]);
		res.write(content); 
	}
	res.end();     
	next();
}
module.exports = midFunction;
web-server --help //list all the params you can you

version

  • v0.1.1 Basic functions
  • v0.2.1 fix bug of spawn for windows and add self-defined middleware for your server