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

tsukikage

v0.1.4

Published

πŸ† A sleek, customizable React ranking component library

Readme

πŸ† tsukikage

月影 β€” moonlight in Japanese. A sleek, fully customizable React ranking component library.

npm version license react typescript


✨ What is tsukikage?

tsukikage is a React component library for building beautiful, flexible ranking lists. Drop it into your project, pass your data, and get a fully styled, animated leaderboard β€” with total control over how it looks and behaves.

Whether you're building a game leaderboard, a points-based system, a productivity tracker, or any competitive UI, tsukikage gives you the tools to make it shine. πŸŒ™


πŸš€ Getting Started

🚧 This library is currently in active development. The API may change before the first stable release.

Installation (coming soon)

npm install tsukikage

Usage

import { Ranking } from 'tsukikage'

const entries = [
  { id: 1, label: "Hector",      score: 9840 },
  { id: 2, label: "Alex Poatan", score: 7200 },
  { id: 3, label: "Jon Jones",   score: 6800 },
]

function App() {
  return (
    <Ranking
      entries={entries}
      title="Leaderboard"
      scoreType={1}
      highlightFn={(entry) => entry.score > 9000}
    />
  )
}

🧩 Components

<Ranking />

The main component. Accepts a list of entries and renders a sorted, styled ranking list.

| Prop | Type | Default | Description | |---------------|-----------------------------------------------|---------|-----------------------------------------------------------------| | entries | RankingEntry[] | β€” | Required. Array of items to rank. | | title | string | β€” | Optional heading displayed above the list. | | scoreType | 1 \| 2 \| 3 | 1 | Controls the score unit label: pts, xp, or coins. | | highlightFn | (entry, index) => boolean | β€” | Function that determines which entries get a highlight effect. |

RankingEntry type

interface RankingEntry {
  id: string | number   // Unique identifier
  label: string         // Display name
  score: number         // Numeric score (used for sorting)
  avatar?: string       // Optional image URL
}

🎨 Visual Features

  • πŸ₯‡πŸ₯ˆπŸ₯‰ Medal badges for the top 3 positions
  • ✨ Highlight animations β€” shine effect, scale, and glow for featured entries
  • πŸ–ΌοΈ Avatar support β€” image or auto-generated initials fallback
  • 🏷️ Score labels β€” pts / xp / coins (more coming soon)
  • πŸ“ Smooth hover interactions β€” lift, scale, shadow transitions
  • 🎞️ CSS-only animations β€” no JavaScript animation dependencies

πŸ›£οΈ Roadmap

Here's what's planned for tsukikage:

  • [ ] 🎭 Multiple visual themes (dark, neon, minimal, glass, etc.)
  • [ ] πŸ”¦ More highlight types (pulse, border glow, badge, crown)
  • [ ] πŸ”’ Custom score formatters
  • [ ] 🏷️ Custom score unit labels (beyond pts, xp, coins)
  • [ ] πŸ”„ Animated re-ranking (score changes with smooth transitions)
  • [ ] πŸ“± Mobile-first responsive variants
  • [ ] β™Ώ Full accessibility (ARIA roles, keyboard navigation)
  • [ ] 🌐 npm package release
  • [ ] πŸ“– Storybook documentation site

πŸ—‚οΈ Project Structure

src/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ Ranking.tsx        # Main ranking component
β”‚   └── RankingItem.tsx    # Individual row component
β”œβ”€β”€ css/
β”‚   └── Ranking.module.css # Scoped styles with animations
β”œβ”€β”€ types/
β”‚   └── ranking.types.ts   # TypeScript interfaces & types
β”œβ”€β”€ utils/
β”‚   └── ranking.utils.ts   # Sorting helpers & medal logic
└── main.tsx               # App entry point

πŸ› οΈ Development

This project uses Vite + React 19 + TypeScript.

# Install dependencies
npm install

# Start dev server
npm run dev

# Build
npm run build

# Lint
npm run lint

🀝 Contributing

Contributions, ideas, and feedback are very welcome! This is an early-stage project and the API is still being shaped. Feel free to open an issue or submit a PR.


πŸ“„ License

MIT Β© tsukikage contributors