Skip to content

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.

  • 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 moduleResolution bundler or nodenext.

Install the runtime, the server edge and one model adapter:

Terminal window
npm install @vrealtime/core @vrealtime/server @vrealtime/boson
ModelPackageCredentials
Boson Higgs Realtime@vrealtime/bosonBOSON_API_KEY
OpenAI Realtime@vrealtime/openaiOPENAI_API_KEY
Gemini Live@vrealtime/geminiGEMINI_API_KEY
Any text model + speech@vrealtime/cascade, @vrealtime/ai-sdk, an AI SDK providerThose of the providers you use

On Node, serve() needs the ws package, an optional peer dependency:

Terminal window
npm install ws
Terminal window
npm install @vrealtime/client

For React, add the hook package:

Terminal window
npm install @vrealtime/react
PackageUse it for
@vrealtime/vadTurn detection on the server for models without their own voice activity detection
@vrealtime/testingA scripted fake model for tests, with virtual time
@vrealtime/protocolThe wire protocol types and codecs, for building your own client or tooling

The Packages reference lists every package, its entry points and its dependencies.