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

wb-besieged

v0.1.1

Published

前端性能订制 检测

Readme

性能检测订制工具 -- Besieged

废话放在最前面

性能肯定是H5很重要的一个环节,值得我们关注。

所以我就有了这么一个不成熟的想法~~

首先一起约定一个list(起名为,checklist),告诉我们自己,H5页面上线的时候,我们需要注意的一些点 然后,我就根据这个checklist 做一个工具,检测这些点。 然后呢,我们在H5上线之前,就可以跑一跑,看看我们的性能是不是达到了一个基础的要求。让我们自己心中有个数,之后如果需要优化,也有一个简单的标准

这个工具就起名为 Besieged~~

然后我也希望这个工具可以,越来越成熟,越走越远。我们拭目以待

checklist

  • 资源加载总大小控制: 首屏资源不大于500 kb
  • 页面总相应时间: 3s
  • 图片文件大小kb控制: 单张图片不要大于50kb
  • 图片文件数量控制: 个数不大于15
  • css请求数:不大于3
  • js请求数:不大于3
  • 首屏ajax请求不大于3
  • IconFont正确使用: 无线端不需要有ttf以外的字体文件,字体文件只能有一个
  • 不要有30x,40x,50x的请求
  • 正常情况禁止使用gif图片(降低CPU消耗,提升渲染能力)
  • 协议收敛,不写死http或者https头部
  • 域名收敛? 好像我们没有域名。。。。

我们需要继续讨论以上指标和其他的点

Besieged 使用

* 安装

        npm install wb-besieged -g

* 使用

        bes -help
        bes test http://www.baidu.com/

* 注意事项

        待定

Besieged 维护和版本log

  • v0.1.0 第一个可用版本