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 🙏

© 2024 – Pkg Stats / Ryan Hefner

qnp

v0.0.20

Published

Query NPM locally fast, <200 ms, cute and convenient

Downloads

26

Readme

qnp -- query node packages

Query NPM from downloaded data in <200 ms. This is useful when you need to do dozens of searches before you find what you were looking for.

##Updating local database

Once it is installed, type qnp -up, and wait until download of 80MB registry and indexing is done. Downloading may take a while, indexing takes less than a minute.

#Search examples qnp forth -back search anything matching forth but not containing back.

qnp a coffee search for packages authored by someone whose name concain coffee.

qnp t ^elfu$ search for a package titled as elfu, qnp query is not the Regular Expression, but ^ and $ will match the beginning and the ending of the title (also works for author and keywords).

qnp k ^hub$ search hub in keywords, but ignore github, hubbot etc.

##Installation

[sudo] npm install -g qnp

Invoking qnp without arguments will display help:

Search local copy of npm database, use `qnp -up` to update.
USAGE: qnp [-up] [t] [d] [k] [g] <keyword -keyword>
t - title, d - desc., k - keywords
-up - update, download and index 80+ MB file from npmjs.org
g - disable colors
default: t d k - all on

##How speed is achieved

qnp will start socket server on port 7000 that will load prepared index file into memory and stay in background. Indexed data in the server process takes about 20 MB.