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

wh-web

v1.0.0

Published

项目介绍 -- vue.js+node.js+webpack构建的前端项目,后端用的是我的另一个项目[wh-server](https://github.com/smallsnail-wh/wh-server)(前后端分离)。

Readme

wh-web

项目介绍

vue.js+node.js+webpack构建的前端项目,后端用的是我的另一个项目wh-server(前后端分离)。

项目展示

地址:https://smallsnail-wh.github.io 用户名:admin 密码:admin (第一次打开可能会有点慢)

技术栈

  • vue2
  • vuex
  • vue-router
  • axios
  • iview
  • webpack

前后端通信:

使用的是axios库。

UI 组件库:

使用了iview组件库。

安全协议:

oauth2

前端界面开发

注:需要安装nodejs

  • 启动:
    1. 命令行进入项目文件夹
    2. 运行npm install
    3. 运行npm run dev启动前端工程
  • 打包命令: 运行npm run build

Http状态码

在axios.js中拦截异常,并进行处理。
目前以写的异常处理有:
	1. 401 清除token信息并跳转到登录页面
	2. 403 无权限,跳转到首页

如果你项目启动有错误:

  1. 项目启动报错,请试一下用管理员权限输入命令。
  2. 如果出现如下图的错误,请把webpack.dev.config.js和webpack.prod.config.js中的fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {});更改为fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {}); 这里写图片描述

该项目的升级版:

https://github.com/smallsnail-wh/interest