@deepstream/client

中文文档
7.1.1发布于 2026/08/26MITTypeScriptCommonJS近 30 天下载 7546

the javascript client for deepstreamIO

原始使用文档
文档目录3 节
  1. Documentation
  2. Usage with Typescript
  3. Install in react-native

deepstream.io-client-js

Build Status Coverage Status npm version

The Browser / Node Client for deepstreamIO

Documentation

For API documentation see the documentation page!

For tutorials see the tutorial page!

Usage with Typescript

This repository comes with the Typescript typings bundled. No need to download them separately!

Make sure the src/client.d.ts file is accessible to the Typescript compiler. Do this by making sure it's an included file in tsconfig.json by adding a typeRoots defininition. (Required Typescript 2.0 or higher.)

"typeRoots": [ "./node_modules/deepstream.io-client.js/src/client.d.ts" ]

Install in react-native

For usage in react-native the bundled client available at dist/bundle/ds.js must be used. In order to automatically change the main file in package.json to the bundle file install as: DEEPSTREAM_ENV=react-native npm install @deepstream/client. Also the metro bundler must be configured. Check the documentation for more details

版本与发布记录

@deepstream/client 共发布 98 个版本,首次发布于 2019/05/28;过去 12 个月发布了 3 个版本。

版本发布日期距今
7.1.1latest2026/08/262 个月前
7.1.02026/05/265 个月前
7.0.62026/05/046 个月前
7.0.52025/04/271.5 年前
7.0.42024/02/202 年前
7.0.22023/06/033 年前

其他发布通道:next → 5.0.0-rc.1,ci → 5.2.0-rc1。

关于 @deepstream/client 的常见问题

@deepstream/client 是什么?

the javascript client for deepstreamIO

如何安装 @deepstream/client?

在项目目录运行 npm install @deepstream/client,或使用 pnpm add / yarn add / bun add。

@deepstream/client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@deepstream/client 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@deepstream/client 可以商用吗?

@deepstream/client 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@deepstream/client 的下载量有多少?

根据 npm 官方下载统计,@deepstream/client 在 2026/10/12 – 2026/11/10 这 30 天内被下载 7,546 次,日均约 252 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@deepstream/client 还在维护吗?

最新版本 7.1.1 发布于 2026/08/26(2 个月前);至今共发布 98 个版本,其中过去 12 个月发布了 3 个;首次发布于 2019/05/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。