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

@yungu-fed/componentlibrary

v0.1.2

Published

基于 Figma / 组件库规范的 React 组件库(由 componentlibrary 迁移)

Readme

m-componet

React 组件库,源码由 componentlibrary 仓库迁移至本仓库的 src/

环境

  • Node.js ≥ 18(推荐与仓库根目录 .nvmrc 一致,例如 nvm use
  • 若在 Node 16 下执行 vite build,会出现 getRandomValues is not a function

脚本

| 命令 | 说明 | |------|------| | npm install | 安装依赖;postinstall 会将 MathLive 字体/CSS 复制到 public/ | | npm run dev | 启动 Vite,预览 src/demo | | npm run build | 库构建:输出 dist/index.es.jsdist/index.umd.jsdist/style.css 与类型 | | npm run storybook | Storybook(已接 Less;示例见 stories/) |

包入口

与迁移前 componentlibrary 一致:

  • 主入口:import { Button, Form, ... } from 'm-componet'
  • 样式:import 'm-componet/style'style.js 引用 dist/style.css

宿主接入细节可参考原仓库的《宿主接入说明》等文档(若尚未拷贝至本仓库,请从 componentlibrary 同步)。

与旧 m-componet 的关系

原根目录下的 Figma 版 components/(Button、Table、Icon…)已移除,避免与迁移后的 src/components 重复;Storybook 旧故事已删除,当前保留 stories/Button.stories.tsx 作为示例,可按需增补。