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

bestuni

v2.0.1

Published

基于 Vue3 + TypeScript + Vite + UnoCSS 的 UniApp 快速启动模板,内置高颜值 UI 组件库

Readme

BestUni

BestUni - 基于 Vue 3 + TypeScript + Vite 的 UniApp 快速启动模板。

✨ 特性

  • 🚀 Vue 3 + TypeScript - 使用最新的 Vue 3 组合式 API
  • 📦 Vite 5 - 极速冷启动与热更新
  • 🗃 Pinia - 状态管理 + 持久化存储
  • 🔐 请求封装 - Token 自动注入、错误统一处理
  • 📱 多端支持 - H5、微信小程序、支付宝小程序、App
  • 🎨 主题定制 - 支持亮色/暗黑模式切换

📦 安装

# 克隆模板
npx degit sumintong/bestuni my-app

# 或直接下载
npm init bestuni my-app

📂 目录结构

src/
├── composables/       # 组合式函数
├── layouts/           # 布局组件
├── pages/             # 页面目录
│   ├── index/         # 首页
│   └── mine/          # 我的
├── stores/            # Pinia 状态管理
│   ├── app.ts         # 应用状态
│   ├── user.ts        # 用户状态
│   └── index.ts
├── styles/            # 全局样式
│   ├── variables.scss # SCSS 变量
│   └── index.scss     # 样式入口
├── utils/             # 工具函数
│   ├── request.ts     # 请求封装
│   ├── router.ts      # 路由工具
│   └── index.ts
├── static/            # 静态资源
├── App.vue            # 根组件
├── main.ts            # 入口文件
├── manifest.json      # 应用配置
├── pages.json         # 页面配置
└── uni.scss           # 全局样式变量

🚀 快速开始

安装依赖

pnpm install

运行项目

# H5
pnpm dev

# 微信小程序
pnpm dev:mp-weixin

# App
pnpm dev:app

打包发布

# H5
pnpm build:h5

# 微信小程序
pnpm build:mp-weixin

# App
pnpm build:app

🗃 状态管理

使用 Pinia 进行状态管理,已配置持久化存储:

import { useUserStore } from '@/stores'

const userStore = useUserStore()

// 登录
await userStore.login({ token: 'xxx', userInfo: { ... } })

// 登出
userStore.logout()

🔐 请求封装

import { request, get, post } from '@/utils'

// 基础请求
const res = await request({ url: '/api/user', method: 'GET' })

// 快捷方法
const data = await get('/api/user')
const result = await post('/api/login', { username: 'admin' })

🔗 相关链接

📄 License

MIT License © 2026 sumintong