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

sorftime-cli

v1.0.0

Published

Sorftime 命令行工具 - 多账户管理与API接口调用

Readme

sorftime-cli

Sorftime 命令行工具 - 多账户管理与API接口调用

安装

🔒 安全说明:本工具完全开源,代码可公开审计

  • 开源仓库地址:https://github.com/sorftime/sorftime-cli
  • npm 官方包主页:https://www.npmjs.com/package/sorftime-cli
  • 发布者为 Sorftime 官方认证账号,无恶意代码

方式1:全局安装(推荐)

npm install -g sorftime-cli

方式2:本地编译安装(适合安全要求高的用户)

git clone https://github.com/sorftime/sorftime-cli.git
cd sorftime-cli
npm install && npm run build
npm link

使用

账户管理

# 添加账户(保存Account-SK)
# profile-name: 账户名称,可自定义。如 sorftime-cli
# your-account-sk: 账户的Account-SK。Sorftime API 和 CLI 公用Key,开通后API Key 同时可用于CLI。 获取方式详见:https://www.sorftime.com/cli
sorftime add <profile-name> <your-account-sk>

# 列出所有账户
sorftime list / sorftime ls

# 切换当前活跃账户
sorftime use <profile-name>

# 查看当前活跃账户
sorftime whoami

# 删除账户
sorftime remove <profile-name>

API调用

# 调用API接口
# endpoint: API接口名称,参考文档 https://www.sorftime.com/cli
# domain: 站点ID, 例如:1: us | 2: gb | 3: de | ......
sorftime api <endpoint> [params]  --domain 1


# 示例:调用类目查询接口
sorftime api categoryrequest '{"nodeid": "3743561"}' --domain 1

# 示例:调用产品详情接口
sorftime api productrequest '{"asin": "B0CVM8TXHP", "trend":1}'  --domain 1

功能特性

  • ✅ 已上线电商平台数据:亚马逊、Shopee、Walmart、 更多平台即将开放:Tiktok、Temu、1688、MercadoLibre
  • ✅ 多账户Profile管理
  • ✅ 自动处理API认证
  • ✅ 自动解码解压Shopee/Walmart接口返回结果
  • ✅ JSON格式输入输出,适合脚本和管道调用
  • ✅ 友好的命令行交互和错误提示