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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tntx/package-meta-react

v1.0.6

Published

组件元数据

Downloads

28

Readme

TNT 组件元数据

安装

npm i @tntx/package-meta-react --save

使用

import PackageMeta from '@tntx/package-meta-react';
import avatarImg from './avatar3.jpg';

export default () => {
  return (
    <div style={{ padding: '10px 30px' }}>
      <PackageMeta
        title="Disk资源管理"
        description="一个小而美的资源管理UI组件,通过简单的配置就有好的用户体验,上手简单,搭配灵活,支持folder文件夹、file文件、link链接;"
        author={{
          nickname: '露娜',
          avatar: <img src={avatarImg} />,
        }}
        link={{
          url: 'https://github.com/moco-ui/moco-ui',
          type: 'design',
        }}
        extra={{
          npm: 'https://www.npmjs.com/package/disk-resource-manager',
          github: 'https://github.com/rookie-ninja/disk-resource-manager',
          gitlab: 'https://gitlab.com/rookie-ninja/disk-resource-manager',
          // gitee: "https://gitee.com/rookie-ninja/disk-resource-manager",
          // otherLink: "https://github.com/rookie-ninja/disk-resource-manager",
          maturity: 85,
          useList: [
            {
              name: '天策',
              version: '1.0.0',
            },
          ],
        }}
      />
    </div>
  );
};

API

| 属性名 | 描述 | 类型 | 必需 | 默认值 | | ----------- | ---------------------- | --------------------------------------------------- | ---- | ------ | | title | 组件标题 | string | 否 | - | | description | 组件描述 | string | 是 | - | | author | 作者信息 | { nickname: string | string[]; avatar: ReactNode } | 否 | - | | link | 相关链接 | { url?: string; type?: "component" | "design" } | 否 | - | | extra | 额外链接和成熟度等信息 | object | 否 | - |

extra对象定义如下:

{
  github?: string;
  gitee?: string;
  gitlab?: string;
  npm?: string;
  otherLink?: string;
  maturity?: number;
  useList?: {
    name: string;
    version: string
  }[] | "all"
}

字段详细说明

  • title: 组件的标题,可以为空。
  • description: 对组件功能的简要描述,此字段是必需的。
  • author: 包含作者昵称(支持单个或多个)和头像元素的对象。
  • link: 包含可选 URL 及其类型的对象,用于指定组件或设计相关链接。
  • extra: 包含一系列额外链接(如 GitHub、Gitee、GitLab、npm 等)以及组件成熟度评分和使用列表。