Home

Awesome

Package quality Build Status

Package quality

package-quality

Measurements of quality for packages, initially for npm.

Add Your Badge

To show the quality of your npm package, just add one of these images to your GitHub README:

[![Package quality](https://packagequality.com/shield/yourpackage.svg)](https://packagequality.com/#?package=yourpackage)
[![Package quality](https://packagequality.com/badge/yourpackage.png)](https://packagequality.com/#?package=yourpackage)

Or, in HTML markup:

<a href="https://packagequality.com/#?package=yourpackage"><img src="https://packagequality.com/badge/yourpackage.png"/></a>
<a href="https://packagequality.com/#?package=yourpackage"><img src="https://packagequality.com/shield/yourpackage.svg"/></a>

replacing yourpackage with (surprise!) the name of your package. You can choose between badge or mini-badge; the latter is courtesy of shields.io.

Measuring Quality

Any objective measurements of quality are going to be flawed one way or another. package-quality only attempts to give some indications about quality, not be an absolute rating on which to bet your farm. If you don't agree with our ratings, please help us improve them!

Algorithm

The following factors are considered when calculating the quality of a package:

The repo quality r is calculated as the average of rt, ro and rlo: r=(rt+ro+rlo)/3.

The overall quality of a package is q=v*d*r.

How to Understand Star Ratings

By xkcd

Just joking. New packages will always appear with low stars, until they get enough momentum. Also, packages that "just work" and get no issues will be underrated by our system.

Other Package Managers

Right now the quality is computed only for npm packages. But it is trivial to extend the ratings to other package managers, since there are only external measurements from GitHub and npm: we don't even look at the code.

If you want to extend package-quality to a new package manager, you just need:

Let us know and we will set up a new subdomain.

Help Wanted

The following areas are a work in progress:

Just send mail or, even better, a pull request.

License (The MIT License)

Copyright (c) 2014-2015 Alex Fernández alexfernandeznpm@gmail.com, Diego Lafuente, Sergio García Mondaray sgmonda@gmail.com and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.