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

sauth

v0.0.4

Published

Social auth from the command line

Readme

sauth

Command line social authentication strategies

install

$ npm i sauth -g

about

sauth makes use of strategies for authentication. The goal of a strategy is to authenticate a user with some type of authentication control flow like OAuth. A strategy is devised into asynchronous phases. The end result is usually to output an access token and/or user information in the terminal. Implementing a strategy is fairly trivial and only involves writing a few interface functions. See sauth-instagram for a simple example.

usage

sauth(1) is meant to be used as a command line utility. The basic usage is:

usage: sauth [-hV] <strategy> [-c config] [...args]

where strategy is the name of the strategy to use. It is required internally as sauth-{NAME} and should exists in one of the paths found in module.paths. Arguments are passed to the strategy as an object and are up to the strategy implementor. The argument --client-id=1234 is serialized into an object {'client-id': 1234} and passed to the strategy as the fist argument. The second argument is a callback that should be invoked after the strategy has completed.

The -c or --config argument is a path to a JSON or javascript file that will be the arguments passed to the strategy itself. This makes it convenient for running strategies from the command line.

example:

{
  "client_id": "1234",
  "client_secret": "5678",
  "redirect_uri": "http://localhost:9999/ig/auth",
  "port": 9999
}
$ sauth instagram -c ig-strategy-conf.json

license

MIT