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 🙏

© 2024 – Pkg Stats / Ryan Hefner

code-review-leaderboard

v1.3.1

Published

Find out who is doing the most code reviews at your organisation

Downloads

77

Readme

code-review-leaderboard

Build Status codecov semantic-release

code-review-leaderboard scrapes data from all pull requests across every repository within your organisation. This data is processed and consolidated into a leaderboard. Find out who is doing the most code reviews at your organisation 🥇

Currently supports the following platforms:

  • Azure Repos
  • Github
  • Gitlab

Running from the command line

Installing

Install code-review-leaderboard globally using npm:

npm install -g code-review-leaderboard

Setting up your configuration and running locally

You can set up your configuration from the command line using:

code-review-leaderboard

It will then fetch the pull request data from the selected organisations, using the provided credentials. If successful, it will print out a leaderboard that looks like this:

Example results

Demo

Video demo

Running in TypeScript

Installing

Install the project using:

git clone https://github.com/lachiejames/code-review-leaderboard.git

Setting up your configuration

Open code-review-leaderboard.config.js from the root directory, and populate the following options:

| Property | Description | Example | | -------------------------- | ----------------------------------------------- | --------------------------------- | | startDate | Include pull requests updated after this date | Date("2021-05-01") | | endDate | Include pull requests updated before this date | Date("2021-05-07") | | azure.enabled | Include pull requests from Azure | true | | azure.baseUrl | The Azure home page for your organisation | "https://dev.azure.com/Example" | | azure.personalAccessToken | Authenticates HTTP requests to Azure | "3Ccz4G6QPilk" | | github.enabled | Include pull requests from Github | true | | github.baseUrl | The Github home page for your organisation | "https://github.com/Example" | | github.personalAccessToken | Authenticates HTTP requests to Github | "3Ccz4G6QPilk" | | gitlab.enabled | Include pull requests from Gitlab | false | | gitlab.baseUrl | The Gitlab home page for your organisation | "https://gitlab.example.com/" | | gitlab.personalAccessToken | Authenticates HTTP requests to Gitlab | "Hf4sXcfn7M69" | | httpTimeoutInMS | Max time to wait for a HTTP request to complete | 5000 |

Running locally

Installing dependencies:

yarn

Compiling to JavaScript:

yarn build

Running with Node:

yarn start

Running tests:

yarn test

More info

Check out this blog post that describes code-review-leaderboard in further detail: https://lachiejames.com/spice-up-code-reviews-at-your-organisation-with-a-leaderboard/