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

@ucascn/datahub-cli

v0.1.3

Published

DataHub Open API 与 API Hub 通用命令行客户端

Downloads

309

Readme

@ucascn/datahub-cli

DataHub 开放接口与 API Hub 的通用 TypeScript CLI,安装后的命令为 datahub

使用

npm install -g @ucascn/datahub-cli
datahub auth init
datahub api list open --format json
datahub api list hub --format json
datahub api call open /material/query --data @request.json --format json
datahub api call hub /ncc/wu_liao_cha_xun --data @request.json --format json

auth init 在交互式终端中会询问 Base URL(默认 https://work.ucas.com.cn:4011)并隐藏输入 API Key;非交互环境请提供 --base-url--api-key 或对应环境变量。

接口按 source + HTTP method + path 定位;同一路径有多个方法时增加 --method GET--method POST

输出默认是 JSON,也可以显式传入 --format json;当前不支持其他输出格式,缺少格式值也会报错。

CLI 由远端 /api/open/docs.json/api/hub/docs.json 动态发现接口,不维护业务接口 固定代码。API Key 只通过 X-API-Key 请求头发送。

Agent Skill

Skill 由独立仓库统一维护,不随 CLI 包发布。标准安装方式:

npx skills add ucas-cn/datahub-cli-skill -y -g

仓库地址:https://github.com/ucas-cn/datahub-cli-skill(skill 内容以 npx skills add 安装,CLI 不提供 skill 子命令)。