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

ycw-monitor

v1.0.0

Published

```javascript npm i @ycw-monitor/core npm i @ycw-monitor/performance npm i @ycw-monitor/record ```

Readme

更新中...

安装

npm i @ycw-monitor/core
npm i @ycw-monitor/performance
npm i @ycw-monitor/record

引入

import Monitor from '@ycw-monitor/core' //核心模块
import performancePlugin from '@ycw-monitor/performance' //性能监控模块
import recordPlugin from '@ycw-monitor/performance' //录屏模块

const monitor = new Monitor()

// 初始化
monitor.init({
  url: 'http://localhost:8000/report',
  appId: '',
  userId: '',
  autoTracker: false, //是否使用无痕埋点
  skeletonProject: false, // 是否属于骨架屏
  whiteBoxElements: [], // 白屏检测的容器列表
  maxCacheEventsNum: 10,
  filterXhrUrlRegExp: '', // 过滤的接口请求正则
  handleHttpStatus: null, // 用户设置handleHttpStatus函数来判断接口是否正确
  beforePushCache: null,
  whiteScreen: true,
  skeletonProject: false,
  whiteBoxElements: ['html', 'body', '#app', '#root']
  // 上报配置
  reportConfig: {
    isImgReport: false, // 是否采用图片上报
    isImmediate: false // 是否延迟上报
  },
})
// 引入性能监控插件,支持自定义性能监控列表
monitor.use(performancePlugin,{
  performanceConfig: {
    TTFB: true, // 支持自定义监视的性能列表
    CLS: true,
    FCP: true,
    FID: true,
    FP: true,
    LCP: true,
    longTask: true,
    FMP: true,
    resourceList: true,

  },
})
// 引入录屏插件,支持自定义录屏时长
monitor.use(recordPlugin,{
 //录屏配置
  recordConfig: {
    recordScreentime: 10,
    recordScreenTypeList: ['error']
  }
})

Vue2引入插件

Vue.use(monitor)

Vue3引入插件

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

React引入插件

monitor.init()
monitor.use(performancePlugin)
monitor.use(recordPlugin)

体验

// test/demo 启动项目
npm run start

// test/server 上报数据
npm run serve