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

szu-cli

v0.2.2

Published

Agent-friendly CLI for Shenzhen University web services.

Readme

SZU-CLI

文档 中文 Docs English Node.js >=20 License MIT

szu-cli 是面向深圳大学网页服务的 agent-friendly CLI。

它把常用校园网页能力整理成稳定命令和结构化 JSON 输出,同时复用本机持久化浏览器登录态,不保存账号密码。

连接器和 Skill 由深圳大学学生自行制作,非官方。如有任何问题,可在 github.com/AwesomeHou/szu-cli 上反馈或通过电子邮件与作者取得联系。

安装与快速开始

要求 Node.js 20 或更高版本,并确保 npm/npx 可用。

快速开始(人类用户)

从 npm 安装(推荐)

npx szu-cli@latest install

该命令会完成两件事:

  1. szu-cli@latest 安装到 npm 全局路径,使 szu-cli 命令可以直接使用。
  2. 调用 npx skills add,把 szu-cli-skill skill 以全局方式安装到当前环境中可识别的主流 AI Agent。

支持的 Agent 及其项目级、全局 skill 目录请参阅 Supported Agents,包括 Codex、Claude Code、Cursor 等。WorkBuddy 可以在连接器市场安装“深圳大学校园事务”,也可以搜索 szu-cli-skill 安装 Skill。

初始化浏览器登录态:

szu-cli auth login
szu-cli auth status

快速开始(AI Agent)

以下步骤面向正在协助用户操作的 AI Agent;登录步骤需要用户在浏览器中完成。

第 1 步 — 安装:

npx szu-cli@latest install

第 2 步 — 检查运行环境:

szu-cli doctor

第 3 步 — 登录:

szu-cli auth login

第 4 步 — 验证登录态:

szu-cli auth status

auth login 会打开一个持久化浏览器 profile。你在正常网页里完成登录后,后续命令会复用 ~/.szu-cli/browser-profiles/<browser>/ 下的登录态。

所有命令默认输出 JSON;--json 仍可作为旧调用的兼容参数。浏览器会优先使用用户选择或系统默认的 Chrome/Edge,并为 Chrome、Edge、Chromium 保存独立的 CLI profile。

当前支持 Google Chrome、Microsoft Edge 和 Playwright Chromium;Safari、Firefox 及其他默认浏览器不会被直接复用。

查看浏览器状态,或在没有可用 Chrome/Edge 时按确认安装 Playwright Chromium:

szu-cli browser status
szu-cli browser install chromium --yes

如需使用 Edge:

$env:SZU_BROWSER='edge'
szu-cli auth login

仅安装CLI或skill

仅安装 CLI:

npm install --global szu-cli

仅安装 skill:

npx --yes skills add https://github.com/AwesomeHou/szu-cli --skill szu-cli-skill --yes --global

当前能力

| 模块 | 实现的功能 | 示例命令 | |---|---|---| | 环境与认证 | 检查运行环境、浏览器后端和当前登录状态 | szu-cli doctorszu-cli auth status | | 公文通 | 查询公告列表、搜索公告并读取正文和附件信息 | szu-cli notice list --limit 10szu-cli notice search 奖学金 | | 个人课表 | 查询本学期课表或当天课程 | szu-cli course listszu-cli course today | | 全校课表与培养方案 | 查询班级课表、培养方案及课程模块 | szu-cli timetable classes --limit 5szu-cli program list --limit 5 | | 成绩与学业进度 | 查询成绩、GPA、思政学分和培养方案完成情况 | szu-cli grade listszu-cli completion summary | | 创新领航讲座 | 查询可报名讲座、讲座详情和个人学习进度 | szu-cli lecture listszu-cli lecture progress | | 体育场馆 | 查询场馆和可预约时段,预览预约或取消操作 | szu-cli sports slots --campus 粤海校区 --venue 一楼重量型健身 --date 2026-07-08szu-cli sports reserve --campus 粤海校区 --venue 一楼重量型健身 --date 2026-07-08 --slot 20:00-21:00 --field 一楼健身房 --dry-run | | 宿舍电费 | 查询可用楼栋及指定房间的用电余额 | szu-cli electricity query --campus 深大新斋区 --building 红豆斋 --room 838 | | 图书馆馆藏 | 搜索图书并查询馆藏位置、索书号和借阅状态 | szu-cli library search 交通设计szu-cli library item 3706432 | | 知网 | 在用户可见浏览器中检索论文元数据和详情 | szu-cli cnki search 交通设计 --headed | | 万方 | 在用户可见浏览器中检索论文元数据和详情 | szu-cli wanfang search 交通设计 --headed |

更多命令请看英文版 READMECLI 契约

设计方向

Agent 或用户
  -> szu-cli 命令契约
  -> 校园事务模块
  -> 直接校园网访问
  -> Playwright 持久化浏览器 profile
  -> 深圳大学网页系统

skill 只负责告诉 agent 何时、如何安全调用 szu-cli。核心登录态、网页解析和校园业务逻辑都放在 CLI 中。

安全边界

  • 不收集账号密码。
  • 不绕过登录、验证码、校园网络限制、访问控制或频率限制。
  • 默认优先实现只读能力。
  • 不做高频抓取或批量下载。
  • 状态变更命令必须先支持 --dry-runsports reservesports cancel 的真实状态变更都必须显式 --confirm,不自动支付、不取消支付。
  • 不把 cookies、浏览器 profile、截图、HAR、trace 等本地敏感文件提交到 Git。

文档

贡献与反馈

欢迎提交功能建议、Bug 报告和文档改进。

  • 通过 GitHub Issues 反馈问题或建议。提交前先搜索已有 issue;Bug 请说明运行环境、复现命令、预期结果和实际结果,注意不要附带账号、Cookie 或浏览器 profile。
  • 提交 PR 时,先 Fork 仓库并从 develop 创建主题分支;保持改动聚焦,同时更新受影响的命令文档和 skill。
  • 提交前运行 npm testnpm run docs:check,然后推送分支并通过 创建 Pull Request 发起 PR。请在描述中写明改动范围、验证结果和关联 issue。

许可证

MIT