Quickstart
Node.js & Bun Quickstart
Get started with Rivet Actors in Node.js and Bun
Install Rivet
Command Line
Create an Actor
Create a simple counter actor:
registry.ts
Setup Server
Choose your preferred web framework:
Run Server
Your server is now running at http://localhost:8080
Connect To The Rivet Actor
This code can run either in your frontend or within your backend:
client.ts
See the JavaScript client documentation for more information.
Deploy
By default, Rivet stores actor state on the local file system.
To scale Rivet in production, follow a guide to deploy to your hosting provider of choice:
Hosting Providers