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

@axin666/ai-ui

v0.2.0

Published

A Vue 3 component library for admin systems

Downloads

363

Readme

AI UI

一个基于 Vue 3 + TypeScript 的组件库,面向中后台场景。

🌐 在线地址

✨ 特性

  • 🚀 Vue 3 + TypeScript - 基于 Vue 3 Composition API 和 TypeScript 构建
  • 🎨 可定制主题 - 基于 CSS 变量的主题系统,支持亮色/暗色模式
  • 📦 按需引入 - 支持 Tree Shaking,减小包体积
  • 🔧 AI Coding 友好 - 统一的代码结构、完备的类型定义

📦 安装

# npm
npm install @axin666/ai-ui

# pnpm
pnpm add @axin666/ai-ui

🔨 使用

完整引入

import { createApp } from 'vue'
import AiUI from '@axin666/ai-ui'
import '@axin666/ai-ui/dist/style.css'
import App from './App.vue'

const app = createApp(App)
app.use(AiUI)
app.mount('#app')

按需引入

<script setup lang="ts">
// 从主入口引入组件
import { AiButton, AiInput } from '@axin666/ai-ui'

// 导入工具函数
import { createBem } from '@axin666/ai-ui'

// 导入 Hooks
import { useEventListener } from '@axin666/ai-ui'
</script>

<template>
  <AiButton type="primary">按钮</AiButton>
  <AiInput v-model="value" placeholder="请输入内容" />
</template>

🛠️ 开发

# 安装依赖
pnpm install

# 启动开发服务器
pnpm dev

# 构建组件库
pnpm build

# 运行测试
pnpm test

# 启动文档站点
pnpm docs:dev

📁 项目结构

ai-ui/
├── packages/              # 组件库核心代码
│   ├── index.ts          # 主入口文件
│   ├── components/       # 组件源码
│   │   ├── Button/       # 按钮组件
│   │   │   ├── src/
│   │   │   │   ├── AiButton.vue   # 组件实现
│   │   │   │   ├── props.ts       # Props 定义
│   │   │   │   └── style.scss     # 样式
│   │   │   ├── index.ts           # 组件出口
│   │   │   └── __tests__/         # 单元测试
│   │   ├── Input/       # 输入框组件
│   │   ├── index.ts     # 组件库入口
│   │   └── types.ts     # 公共类型
│   ├── hooks/           # 通用 Hooks
│   │   ├── useEventListener.ts
│   │   ├── useClickOutside.ts
│   │   └── index.ts
│   ├── utils/           # 工具函数
│   │   ├── bem.ts       # BEM 命名工具
│   │   ├── dom.ts       # DOM 工具
│   │   ├── props.ts     # Props 工具
│   │   └── index.ts
│   └── theme/           # 主题系统
│       ├── index.scss   # 默认主题(CSS 变量)
│       ├── dark.scss    # 暗色主题
│       └── tokens/      # 设计令牌
│           ├── colors.ts
│           ├── spacing.ts
│           ├── typography.ts
│           └── index.ts
├── playground/          # 开发预览环境
│   ├── App.vue         # 预览页面
│   ├── main.ts         # 预览入口
│   └── vite-env.d.ts  # 类型声明
├── docs/               # VitePress 文档
│   ├── components/    # 组件文档
│   ├── guide/         # 指南文档
│   └── index.md       # 文档首页
├── index.html          # 开发预览 HTML
├── vite.config.ts      # Vite 配置
├── tsconfig.json       # TypeScript 配置
└── package.json        # 项目配置

📄 License

MIT