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

vue-performance-optimizer

v1.0.8

Published

Vue.js performance monitoring and optimization library

Readme

Vue Performance Optimizer

A Vue.js performance monitoring and optimization library that automatically detects and optimizes system performance issues.

Features

  • Automatic Performance Monitoring: Monitors system performance in real-time
  • Smart Optimization: Automatically applies performance optimizations when needed
  • Zero Configuration: Works out of the box with just a simple import
  • Vue 3 Compatible: Built specifically for Vue 3 applications
  • TypeScript Support: Full TypeScript support with type definitions

Installation

自动获取最新版本 (推荐)

npm install vue-performance-optimizer

或者使用其他包管理器:

# 使用 yarn
yarn add vue-performance-optimizer

# 使用 pnpm
pnpm add vue-performance-optimizer

版本说明

  • 自动更新: 使用 ^ 前缀会自动获取最新的兼容版本
  • 当前最新版本: 1.0.3
  • 更新命令: npm update vue-performance-optimizer

手动指定版本

# 安装特定版本
npm install [email protected]

# 安装最新版本
npm install vue-performance-optimizer@latest

Bug修复更新

当组件发布bug修复版本时,其他项目可以通过以下方式获取最新版本:

# 自动获取最新版本(推荐)
npm install vue-performance-optimizer

# 或者更新到最新版本
npm update vue-performance-optimizer

# 或者重新安装
npm install

注意: 只要使用 ^ 前缀,npm install 就会自动获取到最新的兼容版本!

Usage

Simply import the library in your main application file:

// In your main.js or main.ts
import 'vue-performance-optimizer';

That's it! The library will automatically initialize and start monitoring your application's performance.

API Reference

checkSystemPerformance()

Returns the current system performance status.

import { checkSystemPerformance } from 'vue-performance-optimizer';

const status = checkSystemPerformance();
console.log(status.status); // 'normal' | 'warning' | 'critical'

canAccessModule(moduleName)

Checks if a specific module can be accessed based on current performance status.

import { canAccessModule } from 'vue-performance-optimizer';

const canAccess = canAccessModule('dashboard');

executeProtectedAction(action, actionName)

Executes an action with performance protection.

import { executeProtectedAction } from 'vue-performance-optimizer';

executeProtectedAction(() => {
  // Your action here
}, 'data-export');

performanceController

Direct access to the performance controller instance.

import { performanceController } from 'vue-performance-optimizer';

const status = performanceController.checkSystemStatus();

How It Works

The library automatically:

  1. Monitors System Performance: Continuously monitors various performance metrics
  2. Detects Performance Issues: Identifies when system performance is degrading
  3. Applies Optimizations: Automatically applies performance optimizations when needed
  4. Protects Critical Operations: Ensures critical operations are protected during performance issues

Performance States

  • Normal: System is performing optimally
  • Warning: System performance is degrading, optimizations are applied
  • Critical: System performance is severely impacted, additional protections are activated

Browser Support

  • Chrome 80+
  • Firefox 75+
  • Safari 13+
  • Edge 80+

License

MIT License - see LICENSE file for details.

Contributing

This is a performance optimization library. For issues or questions, please refer to the documentation or create an issue in the repository.

Version History

  • 1.0.0: Initial release with automatic performance monitoring and optimization