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

npm-gh

v0.0.5

Published

A simple npm bash wrapper, to use GitHub as a light-weight npm registry for publishing.

Readme

npm-gh

A simple npm bash wrapper, to use GitHub as a light-weight npm registry for publishing.

Why?

I wanted:

  • A private NPM registry,
  • which was easily accessible by GitHub teams and users,
  • who already had access to my private GitHub repos,
  • but did not necessarily have access to my corporate intranet / vpn.

I did not want:

  • To have to maintain a private NPM registry on a public / hosted server.
  • To have individual GitHub repos for each npm package.
  • To spend the time to modify an npm fork.

I don't care about:

  • Having a web-based search-able, browse-able interface; GitHub is good enough for me.
  • The unsightly git output when npm-gh publishes to a repo. I might fix it one day, when I care more.

Installation

First of all, you'll need npm.

Then at a command-line:

npm install -g  git://github.com/NetDevLtd/npm-gh.git#npm-gh/0.0.1

Yep, that's right, npm-gh uses its own repo as a GitHub-backed public npm registry for itself.

I may also publish on npmjs.org. But not today.

Use

In your package.json you need the following:

"name": "$myPackage",
"version": "$myVersion",
"registry": {
  "type": "git",
  "url": "[email protected]:$GitHubAccount/$RegistryRepo.git
}

If any of the above properties do not exist, or if you invoked npm-gh in any other way, npm is called instead.

Once your package.json is ready, you can run npm-gh publish, and it will publish version $myVersion of $myPackage to $RegistryRepo on $GitHubAccount, assuming you have the correct GitHub permissions to do so.

In another package which depends on $myPackage you should add the following to your package.json dependency list:

"$myPackage": "git+ssh://[email protected]:$GitHubAccount/$RegistryRepo.git#$myPackage/$myVersion"

git+ssh://[email protected]:$GitHubAccount... is necessary for $RegistryRepos which are private.

git://github.com/$GitHubAccount.. should be sufficient for $RegistryRepos which are public.

Notes

Differences from npm

npm publish allows you to specify tarballs and / or directories to publish.

npm-gh currently only allows you to publish your current working directory. The next release will address that.

Private packages

npm-gh ignores the private property of your package.json, as the whole point was to be able to publish private packages to a potentially private GitHub repo, instead of the public npm registry.

Updating published packages

npm-gh will allow you to update an existing published version.

While this is bad practice for released versions, the script allows it, to keep it simple, and also to allow for pre-release versions to change during the R&D lifecycle, without bumping version numbers in the package.json.

Registry Maintenance

Removal and pruning of obsolete versions of packages is currently only possible by deleting the appropriate branches in the $RegistryRepo via git.

License

This package is made available under the MIT License.