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

rhz-component-library

v1.0.1

Published

Vue3 Basic Component Library

Readme

Rhz Components Library


tips

  • 组件库基于 vue3 只有 vue3 项目可用
  • 工具函数 任何项目都可用
  • 项目开发需要 node >= 16
  • 建议使用 pnpm 包管理工具

项目结构说明

rhz-component-library
├─ client  // 开发调试组件
│  ├─ App.vue
│  └─ main.ts
├─ docs  // 组件文档
│  ├─ package.json
│  └─ press
│     └─ index.md
├─ public  // 公共文件
│  └─ vite.svg
├─ script  // 脚本
│  └─ build-types.js
├─ src  // 源码
│  ├─ components   // 组件存放位置
│  ├─ styles // 组件依赖样式
│  ├─ utils   // 工具
│  ├─ assets // 图片 字体相关
│  └─ index.ts  // 统一导出
├─ .npmrc
├─ README.md
├─ index.html
├─ package.json
├─ .eslintignore
├─ .eslintrc.json
├─ .prettierrc
├─ pnpm-lock.yaml
├─ pnpm-workspace.yaml
├─ tsconfig.json
├─ tsconfig.node.json
├─ typings  // 声明文件
│  ├─ auto-imports.d.ts
│  ├─ components.d.ts
│  └─ vite-env.d.ts
└─ vite.config.ts

开发启动

{
  "dev": "vite", // 开发环境
  "dev:docs": "pnpm run -C docs dev", // doc开发环境
  "build": "vite build", // lib 打包
  "build:docs": "vite build docs", // doc 打包
  "lint": "eslint .", // eslint 检查
  "lint:fix": "eslint --ext .js,.ts,.vue,.json,.md --fix .", // eslint 检查并修复
  "release": "vite build && standard-version -r patch && npm publish" // 版本自动化
}

组件安装

npm install rhz-component-library

组件使用

主文件导入

// 样式在main中统一导入
import 'rhz-component-library/dist/style.css'
// 全部组件导入
import rhz from 'rhz-component-library'

app.use(rhz)

组件导入

// 样式在main中统一导入
import 'rhz-component-library/dist/style.css'
// 组件按需导入
import { RhzCaptcha } from 'rhz-component-library'