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

lingee-icon

v1.0.18

Published

React SVG icon components library with 860+ icons, supporting tree-shaking and on-demand import.

Readme

lingee-icon

基于 React 的 SVG 图标组件库,共 968 个图标,27 个分类。

安装

pnpm add lingee-icon

使用(React 组件)

import { Search, Check } from "lingee-icon";

function App() {
  return (
    <div>
      <Search size={24} color="#333" />
      <Check size="1em" />
    </div>
  );
}

使用(纯 HTML / SVG Sprite)

lingee-icon 提供完整的 SVG Sprite 文件,可在纯 HTML 场景中直接使用:

<!-- 1. 在页面中引入 Sprite(任选一种方式) -->

<!-- 方式 A:通过 CDN -->
<script src="https://cdn.jsdelivr.net/npm/lingee-icon@latest/dist/svg-sprite.js"></script>

<!-- 方式 B:本地引入构建产物 -->
<script src="node_modules/lingee-icon/dist/svg-sprite.js"></script>

<!-- 2. 通过 <use> 引用图标(图标名为 PascalCase) -->
<svg width="20" height="20" fill="currentColor">
  <use href="#Search"></use>
</svg>

<svg width="24" height="24" fill="#333">
  <use href="#Check"></use>
</svg>

常用尺寸:16 / 18 / 20 / 24px。图标名即为 <use href="#图标名"> 中的 ID。

选图流程

  1. 查阅 ICONS.md 获取完整分类索引(CDN: https://cdn.jsdelivr.net/npm/lingee-icon@latest/ICONS.md
  2. 按语义从分类索引中选择图标名(PascalCase)
  3. 使用 <use href="#图标名"> 引用

Props(React 组件)

| Prop | 类型 | 默认值 | 说明 | |------|------|--------|------| | size | number | string | "1em" | 图标宽高 | | color | string | "currentColor" | 填充颜色 | | fill | string | undefined | 直接作为 SVG fill,支持渐变引用 | | rotate | number | 0 | 顺时针旋转度数 | | spin | boolean | false | 持续自转动画 | | className / style / onClick / ...rest | - | - | 标准 SVG 属性透传 |

图标索引

完整图标分类索引见 ICONS.md

禁止的图标来源

| 来源 | 禁止原因 | |------|----------| | @ant-design/icons | 风格不统一,包体积大 | | lucide-react | 风格不统一 | | webui/src/app/assets/icons/*.svg | 散落 SVG 无法统一管理 |

图标不存在时按下方「新增图标」流程添加,不要从其他来源引入。

新增图标

详细流程见 AGENTS.md

渐变色图标

  • 方式 A(默认):外层 CSS 渐变背景 + 单色图标(color="#fff"
  • 方式 B:SVG 内部路径渐变,需挂载 GradientDefs Provider + fill="url(#id)"

原则:默认走方式 A,仅设计稿强制要求 SVG 路径渐变时走方式 B。

参考实现:packages/webui/src/app/pages/skill-center/components/SkillIconDefs.tsx

构建

pnpm --filter lingee-icon build       # 完整构建
pnpm --filter lingee-icon preview     # 重新生成 icon-preview.html