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

hostfile

v0.0.2

Published

Hosts database manager for *NIX systems

Downloads

24

Readme

hosts(1) - hosts database manager

A command line tool for managing the hosts database on UNIX systems. Requires bash >= 4.2.

Synopsis

Often it makes sense when developing a web application to use the host name for development so you create a host file mapping to point the domain name to the local loopback address:

127.0.0.1	example.com

Then you put the application live so you comment out the entry:

#127.0.0.1	example.com

But you still need to switch between the local development version and the live version regularly which is when editing the hosts file manually becomes tedious.

Enter the hosts(1) tool which lets you manage the host file as a set of blocks which can be easily switched on or off.

Documentation

The man page for hosts(1) is available via the command hosts help or you can view the online version if you prefer.

Directory Layout

By default the blocks and other files are stored in $hosts_storage with this directory layout:

hosts
├── backup
│   └── hosts
├── history
│   └── hosts.1
├── loopback
│   └── hosts
├── blocks
    └── example.on

Developers

Verify you have bash >= 4.2 using bash --version. If you have an older version, you should update.

Ensure you have md5(1) and curl(1), clone the repository and install the strike(7) dependency by running npm install.

Tests

Use the bake symlink to run the test suite:

./bake test

You must have an active internet connection for all tests to pass as some tests query the database.

License

Everything is MIT. Read the license if you feel inclined.