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

@lucky-boy/lottery-table

v1.0.1

Published

> EN: Table-oriented lottery scene optimized for dense data and quick scanning. > CN: 面向高密度名单展示、便于快速浏览的表格抽奖场景。

Readme

@lucky-boy/lottery-table

EN: Table-oriented lottery scene optimized for dense data and quick scanning.
CN: 面向高密度名单展示、便于快速浏览的表格抽奖场景。

Features · 特性

  • EN: Virtualized row updates with smooth auto-scroll transitions. / CN: 虚拟化行更新并带有平滑的自动滚动动画。
  • EN: Built-in result history management (winner list, undo, clear). / CN: 内建获奖记录管理,支持撤销与清空。
  • EN: Shares the same modal, control bar, and settings drawer as lottery-ui. / CN: 与 lottery-ui 共享弹窗、控制条与设置抽屉。

Installation · 安装

pnpm add @lucky-boy/lottery-table
# peer deps
pnpm add react react-dom

Usage · 使用示例

import { LotteryTable } from "@lucky-boy/lottery-table";
import type { LotteryTableConfig, User } from "@lucky-boy/lottery-table";

const users: User[] = Array.from({ length: 300 }, (_, i) => ({
  id: `user-${i}`,
  name: `员工 ${i + 1}`
}));

const config: Partial<LotteryTableConfig> = {
  tableColumns: 4,
  backgroundImageUrl: "/assets/table-bg.png"
};

export function TableDemo() {
  return <LotteryTable users={users} config={config} onWinner={(user) => console.log(user)} />;
}

Configuration Highlights · 关键配置

| Field | Description | | ----- | ----------- | | tableColumns | EN: Number of columns rendered in the table. / CN: 表格显示的列数。 | | backgroundImageUrl | EN: Optional background image beneath the canvas. / CN: 可选背景图。 | | loopBgm | EN: Control whether the BGM loops. / CN: 控制背景音乐是否循环播放。 | | autoStartNextRound | EN: Auto trigger the next round after showing results. / CN: 展示结果后自动开始下一轮。 |

Development · 本地开发

pnpm install
pnpm run build

License · 许可

MIT