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

notifications-demo

v0.0.3

Published

欢迎加入乐享知识库小程序开发,在开始之前请认知阅读本文内容

Readme

腾讯乐享知识库小程序

欢迎加入乐享知识库小程序开发,在开始之前请认知阅读本文内容

项目介绍

开发工具

开发工具

我们使用 Volta 管理我们的开发工具(Node、Yarn),使用 Yarn3 作为包管理工具,这样所有人可以在相同的环境下工作。

安装 Volta

https://docs.volta.sh/guide/getting-started

本项目已经通过 Volta 绑定了 Node 和 Yarn 的版本,安装完成 Volta 之后,首先执行一次 yarn 命令,Volta 会自动安装对应版本的 Node 和 Yarn

安装vscode插件

EditorConfig, Eslint, Prettier

配置vscode本地配置文件

.vsocde/settings.json

{
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": "explicit",
        "source.fixAll.stylelint": "explicit"
    }
}

创建本地开发环境配置文件

复制 src/config/config.local.example.tssrc/config/config.local.ts

快速上手

开发

yarn # 安装依赖
yarn dev # 启动开发

使用微信开发者工具打开 mp-sign/dist/dev/mp-weixin

构建

yarn build

图片

存放静态文件的文件夹:目前分为两类:图标资源,图片资源

  • 图标资源:即跟随项目打包的小图标放在 src/static/icons 文件夹下

  • 图片资源:较大的文件如banner类的文件放在 src/assets 文件夹下,会上传cdn

  • 只能放在上述两种方式的文件夹中

assets文件使用规则:

需要注意asset文件使用完整引用地址:@/assets/xxx

import qrcode from '@/assets/qrcode.jpg';

<image src="@/assets/qw-banner.png" />