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

remake_front_monitor_hello

v0.0.11

Published

current is a demo

Readme

如何使用

npm install npm i [email protected]

用户 id 由于失误这个实际上是 appId, 就是一个用户可以有多个 userId, 每个 userId 标识一个网站,然后每个用户只有一个 deviceId 用来验证,相当于是 token,secretKey

import { client } from 'remake_front_monitor_hello';
client.client.configuer({
  sender: {
    userId: 'aa7385b487e84f28a5e43e7574f4f0aa',
    deviceId: 'e20ca6dd21964f99a7d514bc4c1264e1',
    baseUrl: 'http://localhost:8088/', // 服务器地址
  },
  opt: {
    apiUrl: 'api/store/api', // 这个是配置采集数据的地址
    prefUrl: 'api/store/pref',
    resUrl: 'api/store/res',
    pvUrl: 'api/store/pv',
    jsErrUrl: 'api/store/jsErr',
    httpErrUrl: 'api/store/httpErr',
    corsErrUrl: 'api/store/corsErr',
    resErrUrl: 'api/store/resErr',
    promiseErrUrl: 'api/store/promiseErr',
  },
});
client.init();
client.start();

错误采集插件 在错误发生时发送用户行为记录

需要在发送的数据添加上 catogory: "error", 在 errDataHandler 中可以做统一处理, 带上 errKey 可以不发送同一个错误等