The open-source alternative to Durable Objects
Rivet is a library for long-lived processes with durable state, realtime, and scalability.
Easily self-hostable and works with your infrastructure.
Examples
AI Agent
Chat Room
Collab (Yjs)
Multiplayer Game
Local-First Sync
Rate Limiter
Per-User DB
Multi-Tenant SaaS
Stream Processing
Built for Modern Applications
Everything you need to build fast, scalable, and real-time applications without the complexity.
Long-Lived, Stateful Compute
Each unit of compute is like a tiny server that remembers things between requests – no need to re-fetch data from a database or worry about timeouts. Like AWS Lambda, but with memory and no timeouts.
DocumentationBlazing-Fast Reads & Writes
State is stored on the same machine as your compute, so reads and writes are ultra-fast. No database round trips, no latency spikes.
DocumentationRealtime, Made Simple
Update state and broadcast changes in realtime with WebSockets or SSE. No external pub/sub systems, no polling – just built-in low-latency events.
DocumentationStore Data Near Your Users
Your state lives close to your users on the edge – not in a faraway data center – so every interaction feels instant. (Not all platforms supported.)
DocumentationInfinitely Scalable
Automatically scale from zero to millions of concurrent actors. Pay only for what you use with instant scaling and no cold starts.
DocumentationFault Tolerant
Built-in error handling and recovery. Actors automatically restart on failure while preserving state integrity and continuing operations.
DocumentationType Safety
End-to-end TypeScript safety between clients and actors with full type inference and compile-time checking.
DocumentationRuns Anywhere
Deploy Rivet Actors anywhere - from serverless platforms to your own infrastructure with Rivet's flexible runtime options.
Don't see what you need? Add your own.
Works With Your Tools
Seamlessly integrate Rivet with your favorite frameworks, languages, and tools.
Don't see what you need? Request an integration.
Supercharged Local Development with the Studio
Like Postman, but for all of your stateful serverless needs.
View and edit your actor state in real-time as messages are sent and processed
Debug your actor in real-time - call actions, subscribe to events, and interact directly with your code
Monitor active connections with state and parameters for each client
See code changes instantly without restarting - modify and test on the fly
Join the Community
Join thousands of developers building with Rivet Actors today