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

@huayoung/huayoungtk-cli

v1.0.19

Published

花漾TK 命令行工具,供 AI Agent 调用花漾TK平台 API

Downloads

2,292

Readme

huayoungtk-cli

花漾TK 官方命令行工具,供 AI Agent 调用花漾TK平台 API。

覆盖达人建联、达人 CRM、买家管理、索样管理、商品/订单查询等核心功能,让你的 AI 工具(Claude Code、Hermes 等)直接操作花漾TK。

安装与升级

安装和升级都执行这两句:

# 安装 CLI
npm install -g @huayoung/huayoungtk-cli
# 安装 Skills(让自身学会使用花漾TK)
huayoungtk-cli skills install

也可以手动指定 AI Agent:

huayoungtk-cli skills install --agent claude-code   # 只安装给 Claude Code
huayoungtk-cli skills install --agent hermes        # 只安装给 Hermes

登录

获取 API Token:打开花漾TK门户网站 → 设置我的个人设置开放龙虾(OpenClaw)配置 → 生成并复制授权 Key。

huayoungtk-cli auth login --token <API-Token>

验证

huayoungtk-cli auth check
huayoungtk-cli team info

Skills

Skills 是 Markdown 文件,告诉 AI Agent 如何使用花漾TK命令。安装后 AI Agent 会自动加载。

| Skill | 说明 | |-------|------| | huayoungtk | 完整技能:认证、达人管理、店铺管理、设备管理、团队信息、任务查询 |

huayoungtk-cli skills install                  # 安装全部
huayoungtk-cli skills install --agent hermes   # 安装给指定 Agent
huayoungtk-cli skills list                     # 查看可用 Skills
huayoungtk-cli skills uninstall                # 卸载

认证

Token 获取方式:打开花漾TK门户网站 → 设置我的个人设置开放龙虾(OpenClaw)配置 → 生成并复制授权 Key。

| 命令 | 说明 | |------|------| | auth login --token <token> | 保存 API Token(同时验证有效性) | | auth logout | 清除已保存的 Token | | auth status | 查看当前登录状态 | | auth check | 验证 Token 是否有效 |

输出格式

所有命令默认输出 JSON,方便 AI Agent 解析。

-o json    # JSON 输出(默认)
-o table   # 表格输出(人类友好)
-o ndjson  # 单行 JSON 输出

使用 -o 切换输出格式:

huayoungtk-cli team info -o table

命令列表

huayoungtk-cli auth <login|logout|status|check>   # 认证管理
huayoungtk-cli job get --job-id <id>               # 查看任务详情与状态
huayoungtk-cli job cancel --job-id <id>            # 取消任务
huayoungtk-cli team info                           # 查看团队信息、套餐、配额
huayoungtk-cli shop list                           # 查看店铺列表
huayoungtk-cli shop get --shop-id <id>             # 查询单个店铺
huayoungtk-cli shop get --shop-name <name>         # 按名称查询店铺
huayoungtk-cli device list                         # 查看可用设备
huayoungtk-cli config show                         # 查看配置
huayoungtk-cli skills install                      # 安装 AI Agent Skills
huayoungtk-cli skills uninstall                    # 卸载 AI Agent Skills
huayoungtk-cli skills list                         # 查看可用 Skills
huayoungtk-cli doctor                              # 诊断环境问题

配置

配置存储在 ~/.huayoungtk-cli/config.json

{
  "mcpToken": "your-api-token",
  "endpoint": "https://api.szdamai.com",
  "teamId": "123456",
  "userId": "789012"
}

可通过环境变量覆盖:

| 变量 | 说明 | |------|------| | HUAYOUNGTK_CLI_TOKEN | API Token(优先级低于 config.json) | | HUAYOUNGTK_CLI_CONFIG_DIR | 自定义配置目录(默认 ~/.huayoungtk-cli) |