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

@andywongwithai/design-system

v0.2.1

Published

Personal design system — Tailwind preset + React components, extracted from my-website

Readme

@huangqianmin/design-system

个人作品站视觉风格的统一资产 —— Tailwind preset + 可复用 React 组件,源自 my-website 项目的设计语言。

特性

  • Tailwind preset —— 一行引入,主题/动画/工具类齐全
  • 核心组件 —— Navbar / BackgroundGlow / Button / IconBox / SectionHeader / ProjectCard / Tag / Footer / Eyebrow
  • 纯黑 + 玻璃质感 —— dark-only,Inter 字体,white-translucent 边框
  • 签名动效 —— 慢速脉动径向光晕、淡入上浮、错落延迟

在新项目中使用

1. 安装

# 在新项目里
npm install ../design-system
# (先在 design-system/ 跑 npm install 安装 peer deps)

2. 引入 Tailwind preset

// tailwind.config.ts
import preset from '@huangqianmin/design-system/preset'

export default {
  presets: [preset],
  content: [
    './src/**/*.{js,ts,jsx,tsx,mdx}',
    '../../design-system/src/components/**/*.{js,ts,jsx,tsx}',
  ],
}

3. 引入样式

/* src/app/globals.css */
@import '@huangqianmin/design-system/styles';
@tailwind base;
@tailwind components;
@tailwind utilities;

4. 使用组件

import { Navbar, BackgroundGlow, Button, ProjectCard, SectionHeader } from '@huangqianmin/design-system/components'

export default function Home() {
  return (
    <div className="min-h-screen bg-bg text-white">
      <BackgroundGlow variant="home" />
      <Navbar />
      <main>
        <SectionHeader eyebrow="作品集" title="从概念到落地的完整项目" />
        <ProjectCard
          title="概念层级图谱"
          description="可视化展示概念之间的层级继承关系"
          tags={['React', 'Fastify', 'D3.js']}
          accent="blue"
          href="https://example.com"
        />
      </main>
    </div>
  )
}

项目结构

design-system/
├── tailwind.preset.js        # Tailwind 主题扩展(颜色/字号/动画/容器)
├── src/
│   ├── index.ts              # 主入口
│   ├── styles/globals.css    # 动画 keyframes + 工具类
│   ├── lib/cn.ts             # className 合并工具
│   ├── tokens/               # 颜色/字号/间距/动效常量
│   └── components/           # 9 个核心组件
└── docs/DESIGN_SYSTEM.md     # 设计原则 + token 表 + 组件 API

设计原则

详见 docs/DESIGN_SYSTEM.md

许可

MIT