Frontend & Clients
Node.js & Bun
The Rivet JavaScript client allows you to connect to and interact with actors from browser and Node.js applications.
Basic Usage
Installation
Install the RivetKit package:
Create Client and Connect to Actor
Make sure you have a running Rivet actor server to connect to. You can follow the Node.js & Bun Quickstart to set up a simple actor server.
Create client and connect to actors and listen for real-time updates:
index.ts
API Reference
Follows the same API as the Node.js client, allowing you to use the same methods and properties for interacting with actors.