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

wxatm

v0.1.3

Published

Wechat access token manager

Readme

简介

这个一个微信AccessToken中控服务器,用于统一管理刷新AccessToken

安装

$ npm install wxatm

全局安装

$ npm install -g wxatm

配置

$ cp ./config.json.default config.json #复制一份配置文件
{
  "wxAppId": "xxxxxxxxxxxxxxxxxxx",   //微信AppId
  "wxAppSecret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", //微信AppSecret
  "store":"memory", //储存方式,有效值为memory|redis ,设置为memory时,会将accessToken存储在变量中
  "port": 4730, //HTTP端口
  "https":{
      "enable":true, //是否使用HTTPS
      "port":4740,  //HTTPS端口
      "sslCert": "./sslcert/server.crt",
      "sslKey": "./sslcert/server.key"
    },
  "auth":{
    "enable": false,//是否使用HTTP Base Authorization
    "apps": [  //HTTP Base Authorization的用户名和密码,当auth.enable为false此参数忽略
      {
        "appId": "UNIKEY1",
        "appSecret": "SECRET"
      },
      {
        "appId": "UNIKEY2",
        "appSecret": "SECRET"
      },
      {
        "appId": "UNIKEY3",
        "appSecret": "SECRET"
      }
    ]
  }
}

使用

直接运行:

$ node ./index.js

全局安装的话可以运行:

$ wxatm

或者选择你喜欢的Node进程管理器来运行,如forever或pm2:

$ pm2 ./index.js

全局安装的话可以运行:

$ pm2 wxatm

程序启动后就可以通过Restful请求来获取AccessToken,如对安全性有要求,建议使用HTTPS + HTTP Base Authorization

可以用curl命令来测试是否成功

$ curl -X GET -v --user 'UNIKEY:SECRET' http://vm.local:4730/access-token.json #获取accessToken
$ curl -X POST -v --user 'UNIKEY:SECRET' http://vm.local:4730/refresh #手动刷新accessToken

License

MIT