# serverchan-sdk

> Server酱官方SDK，支持 ESM/CMD ，兼容 Nodejs/Web。使用示例：

Latest version **1.0.7** (published 2026-07-13) · 94 weekly downloads

## Install

```sh
npm install serverchan-sdk
pnpm add serverchan-sdk
yarn add serverchan-sdk
bun add serverchan-sdk
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2026-07-13 |
| First published | 2024-09-30 |
| Weekly downloads | 94 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | easychen |

## Links

- npm: https://www.npmjs.com/package/serverchan-sdk
- npm.io page: https://npm.io/package/serverchan-sdk

## Recent versions

- 1.0.7 (latest) — 2026-07-13
- 1.0.6 — 2024-10-15
- 1.0.5 — 2024-09-30
- 1.0.4 — 2024-09-30
- 1.0.3 — 2024-09-30
- 1.0.2 — 2024-09-30
- 1.0.1 — 2024-09-30
- 1.0.0 — 2024-09-30

## README

# serverchan-sdk

Server酱官方SDK，支持 ESM/CMD ，兼容 Nodejs/Web。使用示例：

```js
import { scSend } from 'serverchan-sdk';
const ret = await scSend('sendkey', 'title', 'description can be markdown', {tags:'服务器报警|图片'})
console.log(ret);
```

options:

```jsonc
{
    /** SC3专用：标签列表，多个标签使用竖线分隔 */
    tags?: string;
    /** SC3和SCT：消息卡片的简短描述 */
    short?: string;
    /** SCT：是否隐藏调用IP，1为隐藏 */
    noip?: 1;
    /** SCT：推送使用的消息通道，多个通道值用竖线隔开 */
    channel?: string;
    /** SCT：消息抄送的 openid，多个 openid 用逗号或竖线分隔 */
    openid?: string;
}
```

---
_Source: https://npm.io/package/serverchan-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
