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.

GitHub Discussions Discord Rivet Twitter Rivet Bluesky License Apache-2.0

Code snippets

Intro

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.
  • No Servers & No Configuration: Deploy with one command. Scale on demand without any configuration.
  • Simpler Than Lambda, No Timeouts Ever: No execution time limits, no complexity β€” just better serverless.
  • Batteries Included Monitoring: Includes monitoring out of the box, or bring your own monitoring.
  • 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
  • Sandboxed Code Execution

Getting Started

Quickstart

See the full quickstart guide for a comprehensive walkthrough.

Step 1: Install CLI

# macOS & Linux & WSL
curl -fsSL https://releases.rivet.gg/rivet/latest/install.sh | sh

# Windows (cmd)
powershell -Command "iwr https://releases.rivet.gg/rivet/latest/install.ps1 -useb | iex"

# Windows (PowerShell)
iwr https://releases.rivet.gg/rivet/latest/install.ps1 -useb | iex

Step 2: Create Project & Deploy

rivet init
cd my-app
rivet deploy

Step 3: Monitor

Visit the Rivet Hub to create & test your actors.

Documentation

Running Rivet

  • Self-Hosting
  • Rivet Cloud: Fastest, most affordable, and most reliable way to deploy Rivet Actors with zero infrastructure maintenance
  • Rivet Enterprise: Get a demo or have your questions answered about Rivet

Community & Support

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

Project layout

docker/                      Docker-related files
    dev-full/                Full development environment setup
    monolith/                Monolithic Docker setup
    universal/               Universal multi-stage builder image
docs/                        Documentation
docs-internal/               Internal documentation
examples/                    Example projects
frontend/                    Rivet Hub & other frontend components
packages/                    Project packages
    api/                     API package
    common/                  Common utilities
    infra/                   Infrastructure-related code
    services/                Service implementations
    toolchain/               Toolchain-related code
resources/                   Misc resources supporting Rivet
scripts/                     Scripts for various tasks
sdks/                        SDKs
    actor/                   Actor SDK
    api/                     Low-level SDK for calling API
site/                        Website & documentation

License

Apache 2.0