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

@rienn/guanyuan-cli

v0.5.7

Published

观远 Agent CLI — 给 AI Agent 用的观远 BI 取数遥控器(零依赖 Go 单二进制)

Readme

@rienn/guanyuan-cli

观远 Agent CLI — 给 AI Agent 用的观远 BI 取数遥控器。零依赖 Go 单二进制,本包自带 Windows + macOS (Intel / Apple Silicon) 二进制,按系统自动选。

安装 / 更新

npm install -g @rienn/guanyuan-cli         # 安装
guanyuan update                            # 升级到最新(等价 npm install -g @rienn/guanyuan-cli@latest)

status / doctor 发现新版会提示 guanyuan update。更新后建议再跑 guanyuan skill installguanyuan refresh

登录

guanyuan login --from-chrome    # 从本地 Chrome 自动抓观远 uIdToken(唯一登录方式,自动维护登录态)
guanyuan status                 # 校验可访问 + token 剩余天数

装过 guancli 并登录过观远的机器可跳过 login,自动复用其登录态。

工作流

guanyuan refresh                                  # 建本地能力索引(默认轻目录,秒级;字段证据由 search 按需加深)
# refresh --deep 已下线;用 search 自动按需加深 Top 候选
guanyuan search "抖音 渠道 销售额"                  # 找卡片:候选自带 metrics/fields/matched_by/risk_hints
guanyuan inspect --card-id <card_id>              # 看卡片指标/参数/筛选字段
guanyuan values search --card-id <id> --field "商品名称" --search "枕"   # 搜合法枚举值
guanyuan query --card-id <id> --metric "销售额" --filter "3rd_level_chan=天猫萨和" --dry-run
guanyuan query --card-id <id> --metric "销售额" --filter "3rd_level_chan=天猫萨和"
guanyuan export --card-id <评论卡> --filter "商品名称=深睡床笠"          # 评论/文本/大明细
  • 树形渠道:叶子是真实列时 --filter 直筛即可(CLI 自动列平筛);多级/叶子非列用 --cascade "1st,2nd,3rd=...,...,..." 全路径。
  • 所有命令 stdout 是 JSON envelope:ok=truedataok=falseerror.code + error.suggestions

源码与文档:https://github.com/Xuleileon/guanyuan-agent-cli