• Stars
    star
    312
  • Rank 134,133 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Measurements of quality for packages, especially for npm

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:

  • Versions quality (v): the more versions a package has, the more quality it is. We calculate v as v=1-1/total_number_of_versions
  • Downloads quality (d): the more downloads a package has, the more quality is it. We calculate d as d=1-1/number_of_downloads_last_year
  • Repo quality (r): if the package has no repo, the value of r is zero. Right now (there is an issue open to fix this), if the package does not have repo on Github, it's given r=0. For those packages with a repo on Github, r is calculated considering these three factors:
    • Total factor (rt), calculated as rt=1-1/total_number_of_issues
    • Open factor (ro): we consider "healthy" to have a 20% of open issues in your repo (20% of the total number of issues). Those packages with 20% or less open issues will have ro=1. For those with more than 20%, ro=1.2-open_issues/total_number_of_issues
    • Long open factor (rlo): we consider long open issues those who have been open more that 1 year and are still open today. This factor is calculated as rlo=1-long_open_issues/total_number_of_issues. If a package has no open issues, then rlo=1.

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:

  • a complete list of packages,
  • and some way to get the downloads per year.

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

Help Wanted

The following areas are a work in progress:

  • Improve the existing ratings.
  • Take other parameters into account, such as a working or broken Travis-CI build.
  • Extend to other package managers (see above).
  • Just let us know what you don't like about our project.

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

License (The MIT License)

Copyright (c) 2014-2015 Alex Fernández [email protected], Diego Lafuente, Sergio García Mondaray [email protected] 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.

More Repositories

1

loadtest

Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.
JavaScript
2,560
star
2

prototypes

Some common prototypes for node.js.
JavaScript
100
star
3

inits

Init system for Node.js
JavaScript
19
star
4

deployment

Continuous Deployment System for the masses
JavaScript
18
star
5

elyxer

eLyXer (pronounced elixir) is a LyX to HTML converter. While there are a ton of such projects all over the web, eLyXer has a clear focus on flexibility and elegant output.
Python
13
star
6

testing

Simple testing library for NodeJS
JavaScript
11
star
7

performance

A short and slick node.js performance measurement
JavaScript
6
star
8

nodecached

Memcached server written in node.js
JavaScript
5
star
9

librecounter

Free and open website statistics
JavaScript
3
star
10

basic-request

A dead-simple library to request a URL and get a result.
JavaScript
2
star
11

infra

DevOps Infrastructure Demo
JavaScript
2
star
12

decirculo

Test for Logtrust
JavaScript
2
star
13

floqq-unix

Curso de Unix para Floqq
Shell
2
star
14

challenger-code

Challenge yourself with coding exercises
JavaScript
2
star
15

simplecached

Simplified version of memcached, useful for didactic purposes
JavaScript
1
star
16

microprofiler

Low-level profiling for node.js: squeeze those microseconds
JavaScript
1
star
17

lilfinger

A simple finger-painting app for Android
Java
1
star
18

building-efficient-software

Companion repo for the talk "Building Efficient Software"
JavaScript
1
star
19

test

Test Repository
JavaScript
1
star
20

lambda-loadtester

Load tests for AWS Lambda functions
JavaScript
1
star