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

@eolthar/vendor

v1.1.0

Published

Installs GitHub dependencies without git by vendoring source tarballs

Readme

@eolthar/vendor

Installs GitHub dependencies without git by vendoring source tarballs.

Installing a GitHub dependency makes npm run git ls-remote to turn the ref into a commit, so a host without git fails before anything is downloaded. Minimal runtime images and managed environments often ship without it, and installing it is not always an option. This package removes that step: the ref goes to codeload and comes back as a tarball over HTTPS, so nothing beyond Node is needed.

How it works

Packages listed in the vendor field of package.json are streamed as tarballs from codeload, unpacked into a local directory and linked through file: references, so npm resolves them and their registry dependencies without ever touching the git protocol. The dependencies block is rewritten with those links and stays that way, while the vendor field is left alone.

Git specs found in dependencies are moved into the vendor field on the first run. Git specs found inside a vendored package are lifted to the root and handled the same way, which keeps the vendor directory flat, with one directory per package name and no nested node_modules. When two packages ask for different refs of the same name, the first one wins and the other is reported.

Anything after # is passed to codeload as a ref, so a branch, a tag, a full or a short commit hash all work. Without it the default branch is used. A version range, #semver:^1.2.0, is refused, since resolving one needs the git protocol.

A package is downloaded only when its directory is missing, so removing the directory is the way to refresh it.

Install

npm i @eolthar/vendor

Example

A project that starts through boot.js, with the manifest, the entry point and the output of a real run. See the full example.

ensure(options)

| Option | Default | Description | | --------- | ------------------ | ------------------------------------------ | | dir | vendor | Directory the packages are unpacked into | | field | vendor | Key in package.json holding the map | | cwd | caller directory | Where the lookup for package.json starts | | force | false | Remove and download everything again | | offline | false | Throw instead of reaching the network | | token | env.GITHUB_TOKEN | Credential for private repositories |

Returns a map of name to { spec, path }.

dir has to stay inside the project, because Node resolves a linked package through its real path, and a directory outside the project would cut the vendored packages off from the root node_modules.

Notes

Downloads are streamed, so memory stays flat regardless of repository size.

npm installs the devDependencies of a vendored package because a file: directory is linked rather than packed. That is what allows a prepare script to build sources that ship without dist.

License

MIT