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

kevin-monitor-sdk

v1.0.3

Published

自动收集、上报Web页面关键数据。包括异常监控、关键性能数据监控、用户行为数据、http请求监控。

Readme

kevin-monitor-sdk

自动收集、上报Web页面关键数据。包括异常监控、关键性能数据监控、用户行为数据、http请求监控。

数据上报类型

使用

HTML 中引入使用

<script src="../dist/monitor.js"></script>
<script>
  // 初始化 填写appid
  _monitor.init('xxxxxx')
</script>

在 npm 中使用

安装依赖

yarn add kevin-monitor-sdk

引入

import _monitor from 'kevin-monitor-sdk'

// 初始化 填写appid
_monitor.init('xxxxxx')

手动上报错误API

  • 用于 Vue/React 框架错误捕获或者其他需要手动上报错误的地方。
// Vue
// https://cn.vuejs.org/api/application.html#app-config-errorhandler
const app = createApp(App)
app.config.errorHandler = (err, instance, info) => {
  _monitor.error(err,info)
}

// React
// https://zh-hans.reactjs.org/docs/error-boundaries.html
class ErrorBoundary extends React.Component {
  ...
  componentDidCatch(error, errorInfo) {
    _monitor.error(err,info)
  }
  ...
}

// 手动上报错误
try{
  ...
}catch(err){
  _monitor.error('xx捕获错误',err)
}

开发

配置服务器 url

  • 修改 src 目录下的 config.ts
const config = {
  // 修改 url 为真实服务器地址
  url: '',
  appid: '',
}

安装依赖

yarn install

打包

yarn build