Installation
All packages are published to npm under the @vrealtime scope, from CI with provenance, and share one version. Install only the ones you use.
Requirements
Section titled “Requirements”- Server: Node 22 or later, Bun, Deno, or Cloudflare Workers.
- Client: any modern browser, or Node 22 or later.
- Packages are ESM only. With TypeScript, use
moduleResolutionbundlerornodenext.
Server
Section titled “Server”Install the runtime, the server edge and one model adapter:
npm install @vrealtime/core @vrealtime/server @vrealtime/boson| Model | Package | Credentials |
|---|---|---|
| Boson Higgs Realtime | @vrealtime/boson | BOSON_API_KEY |
| OpenAI Realtime | @vrealtime/openai | OPENAI_API_KEY |
| Gemini Live | @vrealtime/gemini | GEMINI_API_KEY |
| Any text model + speech | @vrealtime/cascade, @vrealtime/ai-sdk, an AI SDK provider | Those of the providers you use |
On Node, serve() needs the ws package, an optional peer dependency:
npm install wsClient
Section titled “Client”npm install @vrealtime/clientFor React, add the hook package:
npm install @vrealtime/reactOptional packages
Section titled “Optional packages”| Package | Use it for |
|---|---|
@vrealtime/vad | Turn detection on the server for models without their own voice activity detection |
@vrealtime/testing | A scripted fake model for tests, with virtual time |
@vrealtime/protocol | The wire protocol types and codecs, for building your own client or tooling |
The Packages reference lists every package, its entry points and its dependencies.