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

@yizhuan-cli/cli

v0.1.12

Published

易撰命令行工具,用于通过 API Key 查询易撰真实数据。

Readme

@yizhuan-cli/cli

易撰命令行工具,用于通过 API Key 查询易撰真实数据。

安装

需要 Node.js 22 或更高版本。

npm install -g @yizhuan-cli/[email protected]

如果发布在私有 npm registry,请加上对应 registry:

npm install -g @yizhuan-cli/[email protected] --registry=https://your-private-registry.example

配置

创建 ~/.config/yizhuan/config.json

{
  "apiBaseUrl": "https://yizhuan-api.yizhuan5.com",
  "apiKey": "yz_cli_xxx"
}

使用

yizhuan --help
yizhuan --version
yizhuan config path
yizhuan config show
yizhuan execute --ability membership
yizhuan execute --ability works --query "百家号昨天新增了哪些作品"
yizhuan execute --ability hot_topics --platform douyin
yizhuan execute --ability hot_topics --params '{"platform":"douyin"}'
yizhuan execute --ability accounts --params '{"mode":"public_search","platform":"toutiao","keyword":"张三"}'
yizhuan execute --ability radar --params '{"mode":"following"}'
yizhuan execute --ability radar --mode timeline --timeRange 7d
yizhuan execute --ability radar --params '{"mode":"unfollow","articleId":"205169870"}'
yizhuan execute --ability radar --json-file params.json

PowerShell 参数说明

PowerShell 对 JSON 双引号转义不友好。推荐以下写法:

# Agent 和跨 Shell 最稳妥:参数文件是唯一输入源
yizhuan execute --ability hot_topics --json-file params.json

# 单引号包 JSON
yizhuan execute --ability hot_topics --params '{"platform":"douyin"}'

# key=value
yizhuan execute --ability hot_topics --params platform=douyin

execute --json-file 不能与 --params--query 或独立参数混用。CLI 会拒绝未知参数和游离的 key=value,避免参数丢失后执行默认能力。

请避免 bash 风格的:

# 在 PowerShell 中容易失败
yizhuan execute --ability hot_topics --params "{\"platform\":\"douyin\"}"

支持的典型能力

  • 作品查询:yizhuan execute --ability works --query "AI 相关的热门作品有哪些"
  • 作者查询:yizhuan execute --ability accounts --query "查询张三这个作者"
  • 作者指标筛选:yizhuan execute --ability author_query --params '{"platform_id":2,"min_follower":500000,"min_total_likes":100000}'
  • 作者全网搜索:yizhuan execute --ability accounts --params '{"mode":"public_search","platform":"toutiao","keyword":"张三"}'
  • 关注全网作者:yizhuan execute --ability accounts --params '{"mode":"follow_public_author","platform":"toutiao","keyword":"张三","extAuthorId":"author-1"}'
  • 热点查询:yizhuan execute --ability hot_topics --platform douyin
  • 雷达查询:yizhuan execute --ability radar --params '{"mode":"following"}'
  • 竞品动态:yizhuan execute --ability radar --mode timeline --timeRange 7d
  • 竞品动态筛选:yizhuan execute --ability radar --params '{"mode":"timeline","timeRange":"7d","platform":"baijiahao","keyword":"AI"}'
  • 取消关注雷达作者:先查询关注列表拿到 articleId,再执行 yizhuan execute --ability radar --params '{"mode":"unfollow","articleId":"205169870"}'
  • 会员查询:yizhuan execute --ability membership --query "我的会员什么时候到期"

如果你是通过 Codex、Cursor、Claude Code 这类 Agent 使用 CLI,也可以直接用自然语言提问,例如:

  • 在头条号全网搜索张三这个作者
  • 查询我关注账号近7天的竞品动态
  • 查询 AI 相关的热门文章
  • 取消关注陈某某先生
  • 我的会员什么时候到期