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

@zengshushu/axi

v0.1.0

Published

CLI for deploying Axi — AI personal assistant

Downloads

23

Readme

axi

AI 个人助理一键部署 CLI 工具。通过 Docker 拉取镜像并启动服务,首次安装时引导用户完成 API Key 配置(浏览器弹窗或终端交互),配置写入 SQLite 数据库,无需手动编辑 .env 文件。

安装

npx axi init

命令

| 命令 | 说明 | | ------------------------- | ------------------------ | | axi init | 从远端拉取镜像并部署 | | axi init --local | 从当前目录构建镜像并部署 | | axi init --local <path> | 从指定目录构建镜像并部署 | | axi --help | 显示帮助信息 |

axi init 流程

  1. 环境检测 — 检查 Docker 是否安装并运行、Docker Compose v2+ 是否可用
  2. 端口检查 — 检测目标端口是否被占用,若被 Axi 自身占用则提示是否重新安装
  3. 准备基础设施 — 创建安装目录 (~/.axi)、Docker volumes (axi-dataaxi-workspace)
  4. 获取镜像 — 远端模式拉取镜像;--local 模式从本地源码 docker compose build
  5. 启动服务docker compose up -d,等待 HTTP 健康检查通过(最长 60s)
  6. 配置引导 — 检测是否已初始化:
    • 已有配置(升级模式)→ 跳过配置,保留现有数据
    • 首次安装 → 有桌面环境时打开浏览器(在页面中弹窗配置),无桌面环境时进入终端交互配置

环境变量

| 变量 | 说明 | 默认值 | | ------------- | --------------- | --------------------------------------------------- | | AXI_DIR | 安装目录 | ~/.axi | | AXI_PORT | 服务端口 | 7778 | | AXI_IMAGE | Docker 镜像地址 | hkccr.ccs.tencentyun.com/zss-ccs/zss-agent:latest | | AXI_VERSION | 镜像版本标签 | latest |

示例:

AXI_PORT=8080 npx axi init

# 本地开发:从项目源码构建镜像
axi init --local /path/to/axi

服务管理

安装完成后,进入安装目录执行 Docker Compose 命令:

cd ~/.axi
docker compose logs -f                            # 查看日志
docker compose restart                             # 重启服务
docker compose down                                # 停止服务
docker compose pull && docker compose up -d        # 升级

开发

pnpm build    # 构建 (esbuild → dist/index.mjs)
pnpm dev      # 构建并运行

系统要求

  • Node.js >= 18
  • Docker + Docker Compose v2+