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

@qzsy/jushuitan

v1.1.0

Published

聚水潭开放平台 TypeScript SDK - 完整封装全部开放 API

Downloads

400

Readme

@qzsy/jushuitan

聚水潭开放平台 TypeScript SDK,完整封装文档中的 169 个 API(19 个分类)。

安装

npm install @qzsy/jushuitan

字段级 TypeScript 类型(v1.1+)

每个接口从官方 reqJsonSchema / respJsonSchema 自动生成类型,IDE 可补全 biz 入参响应 data 字段:

import { JushuitanSdk, type ShopsQueryBiz, type ShopsQueryData } from "@qzsy/jushuitan";

const sdk = new JushuitanSdk({ appKey, appSecret, accessToken });

// 入参、返回值均有字段提示
const res = await sdk.basic.shopsQuery({
  page_index: 1,
  page_size: 10,
  shop_ids: [10178845],
});

const shops = res.data.datas; // ShopsQueryData['datas']

类型命名规则:{MethodName}Biz / {MethodName}Data,例如 shopsQueryShopsQueryBizShopsQueryData

也可按需单独导入:

import type { JushuitanOrdersUploadBiz, JushuitanOrdersUploadData } from "@qzsy/jushuitan";

更新 schema 缓存并重新生成:

npm run fetch-schemas   # 从官方拉取最新 JSON Schema
npm run generate        # 重新生成 API + 类型
import { JushuitanSdk, JushuitanAuthClient } from "@qzsy/jushuitan";

// 1. 获取 token(授权接口)
const auth = new JushuitanAuthClient({
  appKey: "your-app-key",
  appSecret: "your-app-secret",
  environment: "sandbox", // 或 "production"
});

const tokenRes = await auth.getInitToken("随机6位code");
const { access_token } = tokenRes.data;

// 2. 创建 SDK 客户端
const sdk = new JushuitanSdk({
  appKey: "your-app-key",
  appSecret: "your-app-secret",
  accessToken: access_token,
  environment: "sandbox",
});

// 3. 调用 API
const shops = await sdk.basic.shopsQuery({ page_index: 1, page_size: 10 });
console.log(shops.data);

API 分类

| 属性 | 分类 | 接口数 | |------|------|--------| | sdk.basic | 基础API | 6 | | sdk.product | 商品API | 20 | | sdk.inventory | 库存API | 5 | | sdk.order | 订单API | 16 | | sdk.logistics | 物流API | 4 | | sdk.purchase | 采购API | 12 | | sdk.inbound | 入库API | 7 | | sdk.outbound | 出库API | 5 | | sdk.aftersale | 售后API | 10 | | sdk.otherInout | 其它出入库API | 3 | | sdk.allocate | 调拨API | 6 | | sdk.crossBorder | 跨境API | 10 | | sdk.invoice | 票聚API | 4 | | sdk.workOrder | 聚工单开放API | 3 | | sdk.finance | 财务API | 5 | | sdk.seeding | 播种API | 8 | | sdk.virtualWarehouse | 虚拟仓API | 8 | | sdk.shengsuan | 胜算API | 15 | | sdk.wms | WMS API | 22 |

底层客户端

如需直接按路径调用:

import { JushuitanClient } from "@qzsy/jushuitan";

const client = new JushuitanClient({ appKey, appSecret, accessToken });
await client.request("/open/shops/query", { page_index: 1 });

开发

cd packages/jushuitan
npm install
npm run generate   # 从 docs/_meta.json 重新生成 API
npm test
npm run build

发布

npm publish --access public