Skip to content

rivet-gg/rivet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rivet

Scalable. Stateful. Serverless.
Rivet is the platform to build realtime, edge, or agent applications.No limitations of Redis or timeouts of Lambda.

License Apache-2.0 GitHub commit activity GitHub Discussions Discord Rivet Twitter

Code snippets

Rivet comes with simple primitives to build your backend. Leverage Rivet Actors to build complex functionality with ease.

Features

  • State & Persistence: State that feels like memory but works like storage. Ideal for dynamic, fast-moving apps.
  • Remote Procedure Calls: Lightweight messaging built for speed. Complete client/server type safety included.
  • Runs Forever, Sleeps When Idle: Always available, sleeps on network inactivity or timeouts, and wakes instantly on demand.
  • Edge Networking: Automatically distribute your applications near your users for ultra-low latency.
  • Fault Tolerance: Ensure application & state resilience through crashes with zero downtime.

Infrastructure

  • Works with Your Runtime: Supports v8 isolates, WebAssembly, and containers to work with your existing tools.
  • Scales to Zero: Handle millions of connections with low latency and high-throughput writes while saving costs through instant actor sleep/wake cycles.
  • Built-in Monitoring: Includes monitoring out of the box.
  • No Servers & No Configuration: Deploy with one command. Scale on demand without any configuration.
  • Powered by V8 Isolates & Deno Runtime: Faster, cheaper, and more lightweight than lambda functions & containers.
  • Supports Both Isolates & Containers: Run your code on V8 isolates or run things like Godot/Unity game servers or video encoding in containers.
  • Simpler Than Lambda, No Timeouts Ever: No execution time limits, no complexity β€” just better serverless.
  • Built with Technologies You Can Trust: Rust, FoundationDB, the Rivet workflow engine, and Rivet orchestrator make Rivet delightfully boring to use.

Use cases

  • AI agents
  • Game Servers
  • Collaborative applications
  • Local-first apps
  • Discord Activities
  • Chat Apps
  • Yjs Sync & Storage
  • Run Untrusted User Code

Quickstart

Follow the setup guide.

Self-hosting & manual deployment

Read our self-hosting documentation.

Rivet Cloud

Rivet Cloud is the fastest, most affordable, and most reliable way to deploy Rivet Actors with zero infrastructure maintenance. Get started at hub.rivet.gg.

Rivet Enterprise

Get a demo, tailored pricing to fit your needs, or have your questions answered about Rivet. Contact us here.

Documentation

Community & Support

Architecture

Core technologies

  • Rust
  • V8 & Deno: Actor isolate runtime
  • FoundationDB: Actor state
  • CockroachDB: OLTP
  • ClickHouse: Developer-facing monitoring
  • Valkey: Caching
  • NATS: Pub/sub
  • Traefik: Load balancers & tunnels

Diagram

Architecture

Project layout

docker/                      Docker-related files
    client/                  Client image
    dev-full/                Full development environment setup
    monolith/                Monolithic Docker setup
    server/                  Server image
docs/                        Documentation
docs-internal/               Internal documentation
examples/                    Example projects
packages/                    Project packages
    api/                     API package
    common/                  Common utilities
    infra/                   Infrastructure-related code
    services/                Service implementations
    toolchain/               Toolchain-related code
resources/                   Resource files
scripts/                     Scripts for various tasks
sdks/                        SDKs
    actor/                   Actor SDK
    api/                     API SDK

License

Apache 2.0