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

@zhizhi-ai/cli

v0.4.4

Published

Zhizhi command line client

Readme

@zhizhi-ai/cli

Zhizhi 命令行客户端。

用法

不全局安装,直接通过 npx 运行:

npx @zhizhi-ai/cli@latest --help

也可以全局安装后使用 zhizhi 命令:

npm install -g @zhizhi-ai/cli
zhizhi --help

远端机器接入

在远端机器上使用 Web 端生成的 pairing token 注册 runtime connector:

npx @zhizhi-ai/cli@latest connect \
  --server https://your-zhizhi-server.example.com \
  --workspace-id <workspace-id> \
  --pairing-token <pairing-token> \
  --name "Remote Computer"

注册成功后,启动 connector:

npx @zhizhi-ai/cli@latest serve

后台启动 connector,并把日志写入本机 Zhizhi root 下的 daemon 日志文件:

npx @zhizhi-ai/cli@latest serve --background

只执行一轮 heartbeat/claim,用于轻量诊断:

npx @zhizhi-ai/cli@latest serve --once

常用命令

# 查看本地 connector profile 和 server live status
npx @zhizhi-ai/cli@latest status

# 查看本地 daemon 状态
npx @zhizhi-ai/cli@latest daemon status

# 查看本地 daemon 日志尾部,默认 80 行
npx @zhizhi-ai/cli@latest daemon logs --tail 120

# 停止后台 daemon
npx @zhizhi-ai/cli@latest daemon stop

# revoke connection key 并删除本地 profile
npx @zhizhi-ai/cli@latest disconnect

# 轮换 connection key
npx @zhizhi-ai/cli@latest rotate-key

# 输出 CLI 版本
npx @zhizhi-ai/cli@latest version

# 本地轻量诊断
npx @zhizhi-ai/cli@latest doctor

本地配置位置

所有命令都支持全局参数 --root <PATH> 覆盖本机 Zhizhi root;它的优先级高于 ZHIZHI_ROOT 环境变量。

npx @zhizhi-ai/cli@latest --root /opt/zhizhi-client status