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

sellmate-utils

v0.1.5

Published

Help libs to authenticate against the Sellmate REST API

Readme

sellmate-utils

Useful authentication module to help you connect your App with the Sellmate REST API www.sellmate.com.

Installation

$ npm install sellmate-utils

or

$ git clone git://github.com/emmenko/sellmate-utils.git
$ cd sellmate-utils
$ npm install

Quick start

  1. Create a new OAuth2 object with some parameters (host is optional, default is 'auth.sellmate.com'):

    var oa = new OAuth2(client_id, client_secret, redirectUri, host);
    
    e.g.: var oa = new OAuth2('1234', 'qwertasdfgzxcv', 'http://localhost:8888/callback');
  2. Get the OAuth Request Token URL and call it (parameters are optional, i.e. shop):

    var authUrl = oa.getAuthorizeUrl(params);
    
    e.g.: var authUrl = oa.getAuthorizeUrl({ 'shop': 'my-shop' });
  3. Your App should have a callback servlet (i.e. http://localhost:8888/callback) where you get the notification with the code as a parameter. Now you can request an AccessToken:

    oa.getAccessToken(code, {
    	'shop': 'my-shop',
    	'grant_type': 'authorization_code',
    }, function(error, response, body) {
    	// The body response contains some parameters among which you will 
    	// find the `access_token` and the `refresh_token`
    });

Example

There is an example app at ./example

$ node examples/server.js
$ open http://localhost:8888

Testing

$ npm test