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

leaderboard-table

v1.1.0

Published

Simple leaderboard

Downloads

110

Readme

Leaderboard Quality Gate Status

Lightweight, generic and easy to use leaderboard module. With this package you can create easy scoreboard for your products, users or for whatever you want!
Demo: https://patryk-rozwadowski.github.io/npm-leaderboard-doc/

Installation:

NPM:

npm install leaderboard-table

YARN

yarn add leaderboard-table

CDN

https://unpkg.com/browse/leaderboard-table@[VERSION]/dist/leaderboard.min.css

https://unpkg.com/browse/leaderboard-table@[VERSION]/dist/leaderboard.min.js

CDN usage:

index.html:

<link rel="stylesheet" href="https://unpkg.com/browse/[email protected]/dist/leaderboard.min.css">

<script src="https://unpkg.com/browse/[email protected]/dist/leaderboard.min.js"></script>

Usage:

Leaderboard will take size of its parent size (width and height). To be use this package:

  1. import leaderboard package: import { Leaderboard } from "leaderboard-table";

  2. import leaderboard styles: import "leaderboard-table/dist/leaderboard.min.css";

  3. Create root div element with class in your HTML file: <div class="root"></div>


CSS style classes

Containers

| Class | Description | | --------------------- | ------------------------------------- | | .lb | Root container for leaderboard module | | .lb_col | Column container | | .lb_cell | Leaderboard's cell styles | | .lb_cell_container | Container of leaderboard's cell | | .lb_headers_container | Headers container |

Typography

| Class | Description | | ------------------------- | ------------------------------- | | .lb_header_text_primary | Primary styles for headers | | .lb_header_text_secondary | Secondary styles for subheaders | | .lb_text_primary | Primary styles for text | | .lb_text_secondary | Secondary styles for text |


API

Properties

| Leaderboard properties | Type | Default Value | Description | | ---------------------- | ----------- | ------------- | ------------------------------------------------------- | | rootContainer | HTMLElement | - | Your root container for leaderboard. | | leaderboardData | Object | - | Object with data which you want to put into Leaderboard | | options | Object | - | Options object |

Options

| Options | Type | Default Value | Description | | --------------------- | ------- | ------------- | ------------------------ | | headerTags | String | "h5" | Display the help window. | | logs | boolean | false | Display the help window. | | contentForEmptyRows | String | "" | Display the help window. |

Methods

| Methods | Description | | ------- | ------------------------------------- | | init() | Method for leaderboard initialization |