rivetkit  by rivet-gg

SDK for stateful serverless applications

created 1 year ago
1,050 stars

Top 36.5% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
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

3 days ago

Responsiveness

1 day

Pull Requests (30d)
75
Issues (30d)
9
Star History
174 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Daniel Han Daniel Han(Cofounder of Unsloth), and
1 more.

airweave by airweave-ai

0.6%
3k
Semantic MCP server for AI agents
created 7 months ago
updated 2 days ago
Feedback? Help us improve.