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

create-bp

v0.1.8

Published

a front-end scaffold tool

Readme

  1. 封装请求

    异步请求采用浏览器 API fetch实现,封装实现统一的接口请求和错误处理,以及对不同网络状态的响应。

  2. 封装路由

    基于 vue-router 实现对路由的封装

  3. 封装菜单

  4. 封装登录

  5. 全局状态管理

    全局状态管理使用pinia,其提供组合式 APi 的同时对 TS 的支持更好,是 Vue 官方推荐的状态管理工具,而 Vuex 将不再引入新功能。

  6. CSS 处理

    本工程使用 postcss 作为基础工具引入多个插件以支持新的 CSS 特性以及尚在草案当中的 CSS 嵌套。

  7. 代码检查及风格

    使用 eslint 进行代码检查,使用 prettier 格式化代码。

    安装 eslint prettier 等依赖,prettier 建议使用精确安装(--save-exact),然后以 eslint 为基础进行配置。prettier 的配置尽量通过配置文件.prettierrc书写,因为如 prettier-vscode 的编辑器扩展会读取 prettier 配置文件里的内容,但不会从 ESLint 读取配置,这将导致不一样的体验。

    相关阅读

  8. 提交规范

    使用huskylint-staged

    类似 husky 的替代品 simple-git-hooks

    vue核心库使用的是yorkie,基于 husky 的分支,当时的 husky 在 lerna monorepo 的应用当中存在一些问题,新版本的 husky 已经不存在此问题(v6+)


期间遇到的一些问题:

  1. Q:Cannot access 'xxx' before initialization

    A:这种就是遇到了循环依赖的问题,解除循环依赖即可。ESM 虽然支持循环依赖,但也有限制