livekit/node-sdks · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
LiveKit Node SDKs
使用此 SDK 为您的 Node 应用添加实时视频、音频和数据功能。通过连接 LiveKit Cloud 或自托管服务器,您可以使用几行代码快速构建多模态 AI、直播或视频通话等应用。
Monorepo Navigation
- Packages:
- Server SDK - 用于与服务器 API 交互。
- Node realtime SDK - 用于以服务器端参与者身份连接 LiveKit,并发布和订阅音频、视频和数据。
- Examples
开发环境搭建
如果您有兴趣为该项目做出贡献,或运行此单体仓库中的一部分示例,则必须首先搭建您的开发环境。
搭建单体仓库
此仓库由多个包组成,这些包部分相互依赖。 它依赖于 pnpm workspaces 和 Turborepo(会自动安装)。
克隆仓库并在根目录运行 pnpm install:
pnpm install
为了链接初始依赖项并检查是否一切安装正确,请运行
pnpm build
这将一次性构建 /packages 中的所有包以及 /examples 中的示例。
之后,您可以使用更细粒度的命令来仅重新构建您正在处理的包。
设置子模块
运行以下命令以安装子模块。
git submodule update --init --recursive
然后运行 pnpm build 以确保所有内容都是最新的。
| LiveKit 生态系统 | |
|---|---|
| Agents SDKs | Python · Node.js |
| LiveKit SDKs | Browser · Swift · Android · Flutter · React Native · Rust · Node.js · Python · Unity · Unity (WebGL) · ESP32 · C++ |
| Starter Apps | Python Agent · TypeScript Agent · React App · SwiftUI App · Android App · Flutter App · React Native App · Web Embed |
| UI Components | React · Android Compose · SwiftUI · Flutter |
| Server APIs | Node.js · Golang · Ruby · Java/Kotlin · Python · Rust · PHP (community) · .NET (community) |
| Resources | Docs · Docs MCP Server · CLI · LiveKit Cloud |
| LiveKit Server OSS | LiveKit server · Egress · Ingress · SIP |
| Community | Developer Community · Slack · X · YouTube |