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/kuaishou-sdk

v0.3.1

Published

快手小店开放平台 TypeScript SDK

Downloads

814

Readme

@qzsy/kuaishou-sdk

快手小店开放平台的 Bun + TypeScript SDK。内置 346 个 API 的请求和响应类型,包含完整的接口字段、嵌套结构和逐接口文档。

安装

bun add @qzsy/kuaishou-sdk

使用

import { createKuaishouClient } from "@qzsy/kuaishou-sdk";

const client = createKuaishouClient({
  appKey: process.env.KUAISHOU_APP_KEY!,
  signSecret: process.env.KUAISHOU_SIGN_SECRET!,
  accessToken: process.env.KUAISHOU_ACCESS_TOKEN!
});

const response = await client.api.openItemAutopassEdit({
  itemId: 3221412313,
  purchaseLimit: true,
  limitCount: 99
});

console.log(response);

SDK 默认使用 HMAC_SHA256,也可以设置 signMethod: "MD5"。访问令牌申请与刷新由使用方根据开放平台 OAuth 流程处理。可注入兼容 Fetch 的 fetch 函数以适配自定义网络环境。

业务返回码不是成功(result !== 1,或网关 code / sub_code 表示失败)时,请求会抛出 KuaishouApiError。错误对象带有 result、code、subCode、官方说明 info 和原始 response。码表来自开放平台《返回码说明》,可用 KuaishouResultCode 与 explainKuaishouCode 对照。需要自己判断原始 JSON 时,创建客户端传入 throwOnError: false。

构建

在 monorepo 根目录运行 bun install 后执行 bun run build。npm 包的 ESM 入口、类型入口和 exports 均统一指向 dist;发布包仅包含 dist 与本 README。

文档