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

@zan_team/zan-router

v1.1.2

Published

ZAN AI Router CLI

Readme

ZAN Router CLI

一键把本机已安装的编码 Agent(Claude Code、OpenClaw、Codex、OpenCode、Neovate、Hermes、DSH)接入 ZAN Router。支持 macOS、Linux、Windows,Node >=18。

本地测试

npm install
npm run build

npx zan-router setup --model deepseek-v4-pro

安装

# 无需全局安装
npx @zan_team/zan-router setup --model deepseek-v4-pro

# 或全局安装
pnpm add -g @zan_team/zan-router
zan-router setup --model deepseek-v4-pro

命令

zan-router setup [--agents LIST] [--model MODEL] [--base-url URL]
zan-router detect
zan-router status [--agent AGENT] [--format text|json]
zan-router doctor [--agent AGENT] [--format text|json]
zan-router restore [--list] [--agent AGENT] [--backup ID]
  • setup:检测已安装 Agent → 校验 API Key 与模型兼容性 → 安全写入配置。auto 为其废弃别名;也可直接用 Agent 名作为子命令(zan-router opencode --model ...)。
  • detect:打印本机 Agent 安装状态,不联网不修改文件。CLI 不可用但配置目录/文件存在时,会提示 config found, CLI not in PATH。
  • status:只读取本机安装与配置状态,不发起网络请求。
  • doctor:分步骤串行实时诊断(Agent 安装、配置文件合法性、Base URL、凭证存在性、凭证有效性、模型权限、网络连通性、最小真实请求)。
  • restore:查看或恢复 CLI 创建的恢复点。每个 Agent 拥有独立 backup ID;--list 展示执行各恢复点后预计得到的模型;直接执行且有多个 Agent 可恢复时,需要交互选择一个 Agent。

--api-key 被禁用,Key 只能通过隐藏交互输入或 ZAN_API_KEY 环境变量提供。 --base-url 默认 https://ai.zan.top,/v1 由 CLI 按需补充。

开发

pnpm install
pnpm typecheck     # tsc --noEmit
pnpm test          # vitest 单元测试
pnpm test:cli      # 构建 + CLI 集成测试
pnpm test:package  # 构建 + pack→install→run 冒烟
pnpm build         # tsup 产出 dist/cli.js
pnpm dev           # tsx 直接运行源码