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

@yoka-ui/cli

v0.4.0

Published

CLI for @yoka-ui/ui: query component knowledge, start MCP, and configure AI agent environments.

Readme

@yoka-ui/cli

CLI for @yoka-ui/ui · 当前版本 0.4.0
查询组件知识、启动 MCP、一键配置 AI Agent、业务仓健康检查与缺陷报告。

复用 @yoka-ui/mcp 的数据访问逻辑,可在已安装 @yoka-ui/ui 的项目中离线工作;也可通过 YOKA_UI_REPO_PATH 指向源码仓。

完整用户文档见文档站:CLI(站点路由 /docs/cli)。

安装

npm i -g @yoka-ui/cli
# 或
npx @yoka-ui/cli <command>
# 或项目内
pnpm add -D @yoka-ui/cli

要求 Node.js >= 18。

命令一览

| 命令 | 说明 | | --- | --- | | yoka list | 列出 Yk / YkPro 组件 | | yoka info <Component> | Props / 类型 / 默认值 | | yoka doc <Component> | 完整 *.docs.md | | yoka demo <Component> [name] | Demo 源码(省略 name 列出 variant) | | yoka exports | 导出符号表 | | yoka token [--scope] | YK 设计令牌 | | yoka design [--source] [--section] | Design 规范 Markdown | | yoka semantic <Component> | 语义化槽位 | | yoka changelog [--version] [--component] | 查询 CHANGELOG | | yoka doctor [--cwd] | 业务仓接入健康度(只报告) | | yoka usage <Component> [--cwd] | 查找组件用法 | | yoka lint [--cwd] | 反模式规则(CI 友好) | | yoka bug / yoka bug-cli | GitLab Issue 模板(默认 dry-run) | | yoka migrate [--from] [--to] | CHANGELOG 升级导读(不改业务代码) | | yoka mcp | 启动 @yoka-ui/mcp stdio | | yoka setup --client <x> | 一键写 MCP / Skill |

知识查询命令支持 --format json|text(默认 text)。出错时非零退出;jsonerror 字段。

快速示例

yoka list
yoka info YkProTable
yoka doctor --cwd ./apps/web --format json
yoka setup --client cursor --mode both --dry-run
yoka migrate --from 1.0.0 --to 1.1.0

setup

yoka setup --client cursor
yoka setup --client claude --mode both --install

| 选项 | 说明 | | --- | --- | | --client | cursor / claude / vscode / codex / opencode / qoder / qwen-code | | --mode | mcp(默认)/ skill / both | | --dry-run | 只预览 | | --install | 未声明 @yoka-ui/ui 时自动安装;失败则中止 setup |

Skill 来自 CLI 自带的 vendor/skill/ 快照(构建时从仓库 ai/skill/ 打包),不依赖业务仓已装组件库。

bug / migrate

  • yoka bug / yoka bug-cli:默认只打印模板与 New Issue URL;--submitGITLAB_TOKEN(或 --token
  • yoka migrate:读数据根 CHANGELOG.md--cwd 影响本地 CHANGELOG / --to 解析;不做 AST codemod

数据根

优先级:已安装的 @yoka-ui/uinode_modules)→ YOKA_UI_REPO_PATH 源码仓。
mcp / setup 可不依赖业务仓已装 @yoka-ui/ui

本地开发

cd ecosystem/yoka-ui-cli
pnpm build          # 拷贝 skill 快照 + father build
pnpm test           # vitest
pnpm test:coverage  # 覆盖率门禁(statements/lines/functions ≥80%)

源码:src/commands/src/utils/;测试:src/__tests__/

相关