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

zjjauth

v1.0.4

Published

OAuth 凭据管理工具 - 极简帐号池 CLI

Readme

zjjauth

基于 OAuth 2.0 + PKCE 的 Codex 多账号工具,聚焦两件事:

  • login:登录并保存账号
  • pool:查看帐号池、按序号切换 / 删除

安装

一次性使用:

npx zjjauth

全局安装:

npm install -g zjjauth
zjjauth

默认路径

  • 凭据目录:~/.zjjauth
  • Codex 目标文件:~/.codex/auth.json

目录不存在时会自动创建。

命令

zjjauth
zjjauth login
zjjauth pool

帐号池

zjjauth pool 会:

  • 优先刷新当前账号的 /usage
  • 尝试补刷新最近使用的其他账号
  • 按序号手动切换账号
  • 输入 d 后按序号删除账号

状态说明:

  • 健康:两个窗口剩余额度都高于提醒阈值
  • 低于 10%:任一窗口剩余额度低于 10%
  • 已耗尽:任一窗口剩余额度为 0
  • 请求失败:实时刷新失败,通常会回退到最近一次已知样本
  • 已失效:凭据 401 / deactivated / refresh 失败
  • 未采样:暂时没有实时额度样本

代理

程序启动时会先按当前系统询问是否启用本地代理,并让你输入端口号;默认主机是 127.0.0.1

  • Windows:会提示 Windows 本地 HTTP 代理端口,常见如 78907897
  • macOS:会提示 macOS 本地 HTTP 代理端口,常见如 78906152
  • Linux:会提示 Linux 本地 HTTP 代理端口,常见如 78907897

如果你想手动设置环境变量,不同系统可以这样写:

Windows PowerShell:

$env:HTTPS_PROXY = "http://127.0.0.1:7890"
$env:HTTP_PROXY = "http://127.0.0.1:7890"

Windows CMD:

set HTTPS_PROXY=http://127.0.0.1:7890
set HTTP_PROXY=http://127.0.0.1:7890

macOS:

export HTTPS_PROXY=http://127.0.0.1:7890
export HTTP_PROXY=http://127.0.0.1:7890

Linux:

export HTTPS_PROXY=http://127.0.0.1:7890
export HTTP_PROXY=http://127.0.0.1:7890

安全说明

  • token 不会打印到终端
  • OAuth 回调固定监听 127.0.0.1:1455
  • 凭据文件在类 Unix 系统下会写成 600
  • 切换 auth.json 时会先备份再原子替换