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

@twxx/vue3-library

v1.0.0

Published

A reusable Vue 3 component library with Pinia and Ant Design Vue integration

Readme

高度可复用的 Vue 3 组件库

这是一个基于 Vue 3、Vite、Pinia 和 TypeScript 构建的高度可复用代码库,集成了 Ant Design Vue UI 组件库,参考 Vben Admin 布局风格,旨在为多个业务系统提供共享的基础代码。

特性

  • 基于 Vue 3 Composition API
  • 使用 TypeScript 提供类型安全
  • 集成 Pinia 状态管理
  • 集成 Ant Design Vue UI 组件库
  • 支持按需导入组件和工具函数
  • 提供通用路由配置方案
  • 包含可定制的主题和样式系统
  • 支持多系统配置覆盖

安装

npm install @company/shared-library

使用方法

全量导入

import { createApp } from 'vue'
import SharedLibrary from '@your-username/shared-library'
import '@your-username/shared-library/dist/style.css'

const app = createApp(App)
app.use(SharedLibrary)

按需导入

import { Button } from '@company/shared-library'
import '@company/shared-library/dist/style.css'

路由配置

import { registerRoutes, loadRouteModule } from '@company/shared-library/routes'

// 加载特定模块
const dashboardModule = await loadRouteModule('dashboard')
const routes = registerRoutes([dashboardModule])

开发

安装依赖

npm install

启动开发服务器

npm run dev

构建库

npm run build:lib

发布

使用以下命令发布新版本:

npm version patch # 或 minor, major
npm publish

目录结构

src/
├── components/     # 可复用 UI 组件
├── composables/    # 可复用组合式函数
├── layouts/        # 通用布局组件
├── pages/          # 通用页面组件
├── routes/         # 路由配置模块
├── styles/         # 全局样式和主题
├── utils/          # 工具类函数
├── constants/      # 常量定义
├── types/          # 类型定义
├── stores/         # 状态管理
├── plugins/        # 插件配置
├── directives/     # 自定义指令
├── guards/         # 路由守卫
├── services/       # 服务封装
├── config/         # 配置管理
└── index.ts        # 主入口文件