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

vipshop-cli

v1.0.4

Published

A Node.js based CLI toolkit with device fingerprinting and skill collection for Vipshop.

Readme

vipshop-cli

一套基于原生 Node.js 构建的唯品会 (Vipshop) 现代化命令行交互系统与 AI Agent 技能池工具包。

特性 (Features)

📦 性能卓越 - 基于标准 Node.js fetch API 直接与唯品会内部接口对接,执行耗时微秒级,完美替代 Python 桥接方案。
🛡️ 原生加密环境 - 内置操作系统指纹感知 (OS, CPU, 时区),依靠 AES-256-GCM 引擎自动生成请求头 x-vip-ctx,行为特征完全模拟真实设备。
🆔 标准标识生成 - 包含原生的 mars_cid 生成算法,支持自动持久化 device.json,确保设备会话的稳定性与安全性。
🔑 状态解耦 - 自动读取 ~/.vipshop-user-login/tokens.json。登录态采用 Agent 友好型 的单次轮询模式,适配高频异步交互。

安装 (Installation)

你可以选择全局或项目内安装:

# 全局安装,注册 vipshop 命令
npm install -g .

# 本地链接测试 
npm link

使用手册 (Usage)

直接在终端或 Agent Shell 中调用。提供四大核心服务支持:

# 获取帮助信息
vipshop --help

# 2. 获取登录状态 (1.0.1+ 新增)
vipshop status

# 3. 退出登录 (1.0.1+ 新增)
vipshop logout

# 4. 搜索商品
vipshop search-product --query "运动鞋"

# 5. 查看具体商品详情
vipshop product-detail --product-id 6921388647706229776

# 6. 获取最新的主站特卖活动与大牌日会场数据
vipshop search-promotion

Agent 轮询建议 (Polling Logic)

1.0.1 版本开始,vipshop login --poll <qrToken> 调整为 单次非阻塞查询。建议 Agent 采用以下策略:

  • 周期:每 3 秒执行一次。
  • 限制:最大执行 10 次。
  • 返回:返回标准 JSON 包含 status 字段 (NOT_SCANNED | SCANNED | CONFIRMED | INVALID)。

技术堆栈

  • commander.js ^14
  • Native Crypto (AES-256-GCM)
  • Native Zlib (Gzip Telemetry)
  • Fetch API
  • ESBuild (Zero-Dependency Bundler)