rivetkit  by rivet-dev

SDK for stateful serverless applications

Created 1 year ago
1,151 stars

Top 33.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides ActorCore, a TypeScript framework for building stateful, serverless applications, targeting developers of AI agents, collaborative tools, and local-first applications. It simplifies state management by offering long-lived compute units with automatic state persistence, eliminating the need for traditional databases and enabling real-time updates with built-in low-latency events.

How It Works

ActorCore implements a "stateful serverless" paradigm, where compute units retain state between invocations, akin to actors with built-in persistence. State is stored locally to the compute, enabling ultra-fast reads/writes without database round trips. Data is also deployed to the edge, close to users, minimizing latency. This approach aims to combine the benefits of the actor model with the scalability and ease of serverless.

Quick Start & Requirements

  • Install/Run: npx create-actor@latest
  • Prerequisites: Node.js, Bun, or Rust environments. SQLite support is planned for April.
  • Links: Documentation, Discord, X, Bluesky

Highlighted Details

  • Deployable to Rivet, Cloudflare Workers, Bun, Node.js, and more.
  • Supports JavaScript and TypeScript actors; Python and Rust clients are planned.
  • Examples provided for various use cases including AI agents, real-time chat, and collaborative documents.
  • Local development via a "Studio" tool, similar to Postman for stateful serverless.

Maintenance & Community

Maintained by Rivet.gg, with active community engagement encouraged via Discord and GitHub Discussions. A roadmap for 2025 includes features like SQLite support, Auth extensions, and Workflows.

Licensing & Compatibility

Licensed under Apache 2.0, permitting commercial use and integration with closed-source applications.

Limitations & Caveats

Currently not ideal for OLAP, data lakes, graph databases, or highly relational data, though future improvements are expected. Read replicas for actors are under development to address potential single-bottleneck concerns.

Health Check
Last Commit

23 hours ago

Responsiveness

1 day

Pull Requests (30d)
163
Issues (30d)
13
Star History
49 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.