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

weilmt

v1.0.4

Published

web performance watch

Downloads

42

Readme

前言
为解决公司现有生成环境项目问题,搭建对应的监控系统,按照快速迭代的思想,将监控系统拆分为以下几个模块:
1.数据监控

  • pv/uv
  • 部分按钮点击次数
  • 用户页面停留时间
  • 用户来源

2.性能监控

  • dns解析时间
  • tcp链接建立时间
  • 首屏显示时间
  • dom渲染完成时间
  • 页面加载完成时间
    具体实现

3.异常监控

  • js异常监控
  • 资源异常监控
  • 接口监控

4.服务端实现

  • nginx部署配置
  • 定时任务、分析入库
  • 搭建管理后台

ps准备工作:

  • 数据库设计
  • redis读取缓存配置
  • mq队列(用于紧急报警处理)
  • 与公众号等绑定

根据以上三个模块进行拆分,由于1、3模块需要涉及到用户信息,顾优先实现第二模块,前端性能监控,完成后再实现第一模块。

完成后需要将代码中的注射删除,减少文件体积

备注:参考博客链接排名部分先后
1.https://zhuanlan.zhihu.com/p/65834362
2.https://juejin.im/post/5ecf022b51882543116e23fb
3.http://velocity.oreilly.com.cn/2014/ppts/meituan.pdf
4.前端生成唯一id:https://blog.csdn.net/qq_37568049/article/details/80736305