@deepstream/server

中文文档
10.2.4发布于 2026/10/12MITTypeScriptCommonJS近 30 天下载 3278

a scalable server for realtime webapps

原始使用文档
文档目录3 节
  1. Getting Started:
  2. Community Links
  3. Contributing

deepstream - the open realtime server deepstream

deepstream is an open source server inspired by concepts behind financial trading technology. It allows clients and backend services to sync data, send messages and make rpcs at very high speed and scale.

npm versionDocker Stars

deepstream has three core concepts for enabling realtime application development

records are schema-less, persistent documents that can be manipulated and observed. Any change is synchronized with all connected clients and backend processes in milliseconds. Records can reference each other and be arranged in lists to allow modelling of relational data

events allow for high performance, many-to-many messaging. deepstream provides topic based routing from sender to subscriber, data serialisation and subscription listening.

remote procedure calls allow for secure and highly available request response communication. deepstream handles load-balancing, failover, data-transport and message routing.

deepstream offers a combination of different authentication mechanisms with a powerful permission-language called Valve that allows you to specify which user can perform which action with which data.

Getting Started:

  1. Tutorials - What is deepstream
  2. Installing deepstream
  3. Quickstart
  4. Documentation
  1. Stack Overflow
  2. Github Discussions

Contributing

deepstream development is a great way to get into building performant Node.js applications, and contributions are always welcome with lots of ❤. Contributing to deepstream is as simple as having Node.js (10+) and TypeScript (3+) installed, cloning the repo and making some changes.

~ » git clone [email protected]:deepstreamIO/deepstream.io.git
~ » cd deepstream.io
~/deepstream.io » git submodule update --init
~/deepstream.io » npm i
~/deepstream.io » npm start
      _                     _
   __| | ___  ___ _ __  ___| |_ _ __ ___  __ _ _ __ ____
  / _` |/ _ \/ _ \ '_ \/ __| __| '__/ _ \/ _` | '_ ` _  \
 | (_| |  __/  __/ |_) \__ \ |_| | |  __/ (_| | | | | | |
  \__,_|\___|\___| .__/|___/\__|_|  \___|\__,_|_| |_| |_|
                 |_|
 =====================   starting   =====================

From here you can make your changes, and check the unit tests pass:

~/deepstream.io » npm t

If your changes are substantial you can also run our extensive end-to-end testing framework:

~/deepstream.io » npm run e2e

For power users who want to make sure the binary works, you can run sh scripts/package.sh true. You'll need to download the usual node-gyp build environment for this to work and we only support the latest LTS version to compile. This step is usually not needed though unless your modifying resource files or changing dependencies.

版本与发布记录

@deepstream/server 共发布 105 个版本,首次发布于 2019/05/28;过去 12 个月发布了 14 个版本。

版本发布日期距今
10.2.4latest2026/10/1230 天前
10.2.32026/10/111 个月前
10.2.22026/09/112 个月前
10.2.12026/07/273 个月前
10.2.02026/07/273 个月前
10.1.42026/06/304 个月前

其他发布通道:canary → 5.1.9-rc.2。

关于 @deepstream/server 的常见问题

@deepstream/server 是什么?

a scalable server for realtime webapps

如何安装 @deepstream/server?

在项目目录运行 npm install @deepstream/server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 deepstream,可以用 npx deepstream 直接运行。

@deepstream/server 支持 TypeScript 吗?

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

@deepstream/server 支持 ESM 还是 CommonJS?

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

@deepstream/server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@deepstream/server 可以商用吗?

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

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

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

@deepstream/server 还在维护吗?

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