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

searchmetrics

v1.0.2

Published

An easy to use abstraction layer for the searchmetrics api.

Readme

searchmetrics

A thin abstraction layer for the searmetrics api. It's auto generated from the current api docs at http://api.searchmetrics.com.

The motivation to develop this library was to provide an bullet prove and well documented (also code documented) way to write some nice apps based upon the searchmetrics api like an real time dashboard, which shows the ups and downs of our customers.

Install

Simply hack in your machines terminal:

npm install searchmetrics

Usage

var searchmetrics = require('searmetrics')('your api key', 'your api secret');
searchmetrics.researchOrganicGetValueSeoVisibility({
	url: 'linux-doku.de'
}, function(data) {
	console.log(data);
})

will result in

{ visibility: 0, trend: { trend: 0, abs: 0, per: null } }

ok not realy search engine optimized, but now I have this nice tool so I'll gonna change this ;-)

Documentation

Because the complete api endpoint source code is auto generated form the api doc's also the inline source code documentation is done by magic hands. So simply look at the documentation in the doc folder. If the doc folder is not generated properly type in this command, wait a moment and be suprized:

jsdoc -c conf.json

Development

To regenerate the endpoints.js from the searchmetrics api docs type the following command in the root of the module folder:

node build/generate.js

after that, you can regenerate the documentation

jsdoc -c conf.json

The generate.js will take some time, cause it gets a list of all api endpoints, and then requests every single endpoint page to grab the parameters, documentation, etc. With this information the code will be generated and written to the endpoints.js file, which is automatically required in the searchmetrics.js main module file.