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

uni-boost-module

v0.1.4

Published

A powerful UniApp module system with plugin architecture, virtual modules, and Vue integration

Readme

uni-boost-module

一个强大的 UniApp 模块系统,具有插件架构、虚拟模块和 Vue 集成功能。

安装

npm install uni-boost-module
# 或
pnpm add uni-boost-module
# 或
yarn add uni-boost-module

快速开始

// vite.config.ts
import { defineConfig } from 'vite'
import { createUniBoostPlugins } from 'uni-boost-module';

export default defineConfig({
  plugins: [
    // 其他插件...
    ...(await createUniBoostPlugins({
      modulePath: 'src/modules',
      fileName: 'pages.json',
      src: 'src'
    }))
  ]
})

主要功能

  • 🚀 模块化架构 - 支持模块化的页面和组件管理
  • 🔌 插件系统 - 灵活的插件架构,支持自定义插件
  • 🎯 虚拟模块 - 动态生成虚拟模块,提高开发效率
  • 🔧 Vue 集成 - 深度集成 Vue 3,支持组合式 API
  • 📝 TypeScript 支持 - 完整的 TypeScript 类型定义
  • 🔥 热更新 - 支持开发时热更新
  • 📊 日志系统 - 完善的日志记录和调试功能

API 文档

createUniBoostPlugins

创建 UniBoost 插件集合的主要函数。

interface UniBoostConfig {
  modulePath?: string;     // 模块路径,默认 'src/modules'
  pagesType?: 'json' | 'ts'; // 页面配置类型,默认 'json'
  enableHmr?: boolean;     // 是否启用热更新,默认 true
  logLevel?: 'debug' | 'info' | 'warn' | 'error'; // 日志级别,默认 'info'
  fileName?: string;       // 配置文件名,默认 'pages.json'
  src?: string;           // 源码目录,默认 'src'
}

Vue 集成

import { createVueModuleHookPlugin, useModuleHooks } from '@uni-boost/module'

// Vue 插件
app.use(createVueModuleHookPlugin({
  enableLogging: true,
  autoRegisterGlobalHooks: true
}))

// 组合式 API
const moduleHooks = useModuleHooks()

许可证

MIT License - 详见 LICENSE 文件。

贡献

欢迎提交 Issue 和 Pull Request!

更多信息

更多详细文档请查看 项目主页