npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details


  • User packages



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.


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 🙏

© 2023 – Pkg Stats / Ryan Hefner




A ES6 client for APIs written in Flask-Potion





Build Status Dependency Status

A TypeScript client for APIs written in Flask-Potion.

Table of Contents


Install this package with NPM:

$(node bin)/npm install potion-client

Or Yarn:

yarn install potion-client

It can also be used with JSPM:

$(npm bin)/jspm install potion=npm:potion-client


Before you use this package, make sure you include reflect-metadata and a shim for ES6/7 features (core-js has the most comprehensive collection of shims and I advise using it).

Furthermore, this package has multiple implementations available, it can be used with:

IMPORTANT: All resource properties that are retrieved from the backend will be converted from snake case to camel case, so the following:

class Foo(db.Model):
    bar_name = db.Column(db.String(256), nullable=True)

Will match the following resource on the client side:

class Foo extends Item {
    barName: string;


If you'd like to contribute:

  1. Clone the repository git clone;
  2. Install all the deps yarn install/npm install.

Now you can start hacking :)

Before you make a pull request, you can check if builds and tests will run successfully:

  1. Run the tests using npm run test (if you wish to run tests on file change, use npm run test:continuous);
  2. Use npm run build to build the .ts files and see if any errors have occurred.

If you're a contributor and you wish to publish the package, use the release scripts from package.json.

For example, if you wish to publish a patch, use:

npm run release

NOTE: Do not forget to git push --follow-tags when you push, otherwise tags might not be pushed (depending on your Git global config).

The master branch will publish to the latest tag, whereas the next branch will publish to the next tag on NPM. This can be useful for making pre releases or major changes and allowing users to test the lib, but not break apps depending on the latest version.

As a rule of thumb, you should always make a pre release only in the next branch, allowing for publishing the stable version from the master branch:

# Make a patch pre release so that:
# 1.0.0 -> 1.0.1-0
# using:
npm run release:prerelease
# NOTE: Subsequent runs of the command above,
# will result in: 1.0.1-1, 1.0.1-2, etc.

# Make a major pre release so that:
# 1.0.0 -> 2.0.0-0
# using:
npm run release:premajor
# From there on,
# to increment the pre release version so that:
# 2.0.0-0 -> 2.0.0-1
# use:
npm run release:prerelease