| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore: fmt | 4 个月前 | |
feat: `registry.start()` (#4477) * feat(rivetkit): add registry.start() as the default server pattern Replace the srvx + Hono + vite-plugin-srvx setup with a simpler registry.start() that starts the manager server, serves static files from public/ if it exists, and runs the actor driver. This is now the recommended way to run RivetKit. Key changes: - Add registry.start() method to Registry class - Add publicDir config option for static file serving - Move @hono/node-server and @hono/node-ws to regular deps - Update client default endpoint to http://localhost:6420 - Add deprecation warning when no endpoint is passed to client - Migrate all 30 examples to the new pattern - Update quickstart docs and client docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update all docs to use registry.start() and consistent patterns - Replace separate actors.ts/server.ts with single index.ts + registry.start() - Update all code examples to import from "./index" instead of "./actors" - Standardize createClient endpoint to localhost:6420 (not 8080) - Remove srvx references, replace with npx tsx --watch - Add registry.start() to runtime-modes comparison and registry-configuration - Update skill-base-rivetkit.md to reference registry.start() as primary - Update StepRunServer default file to index.ts - Update react quickstart to remove StepSetupServer/StepRunServer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 6 个月前 | |
feat: `registry.start()` (#4477) * feat(rivetkit): add registry.start() as the default server pattern Replace the srvx + Hono + vite-plugin-srvx setup with a simpler registry.start() that starts the manager server, serves static files from public/ if it exists, and runs the actor driver. This is now the recommended way to run RivetKit. Key changes: - Add registry.start() method to Registry class - Add publicDir config option for static file serving - Move @hono/node-server and @hono/node-ws to regular deps - Update client default endpoint to http://localhost:6420 - Add deprecation warning when no endpoint is passed to client - Migrate all 30 examples to the new pattern - Update quickstart docs and client docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update all docs to use registry.start() and consistent patterns - Replace separate actors.ts/server.ts with single index.ts + registry.start() - Update all code examples to import from "./index" instead of "./actors" - Standardize createClient endpoint to localhost:6420 (not 8080) - Remove srvx references, replace with npx tsx --watch - Add registry.start() to runtime-modes comparison and registry-configuration - Update skill-base-rivetkit.md to reference registry.start() as primary - Update StepRunServer default file to index.ts - Update react quickstart to remove StepSetupServer/StepRunServer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 6 个月前 | |
feat: `registry.start()` (#4477) * feat(rivetkit): add registry.start() as the default server pattern Replace the srvx + Hono + vite-plugin-srvx setup with a simpler registry.start() that starts the manager server, serves static files from public/ if it exists, and runs the actor driver. This is now the recommended way to run RivetKit. Key changes: - Add registry.start() method to Registry class - Add publicDir config option for static file serving - Move @hono/node-server and @hono/node-ws to regular deps - Update client default endpoint to http://localhost:6420 - Add deprecation warning when no endpoint is passed to client - Migrate all 30 examples to the new pattern - Update quickstart docs and client docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update all docs to use registry.start() and consistent patterns - Replace separate actors.ts/server.ts with single index.ts + registry.start() - Update all code examples to import from "./index" instead of "./actors" - Standardize createClient endpoint to localhost:6420 (not 8080) - Remove srvx references, replace with npx tsx --watch - Add registry.start() to runtime-modes comparison and registry-configuration - Update skill-base-rivetkit.md to reference registry.start() as primary - Update StepRunServer default file to index.ts - Update react quickstart to remove StepSetupServer/StepRunServer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 6 个月前 | |
feat(site): auto-generate templates from examples dir (#3603) | 9 个月前 | |
fix(exmaples): fix using vite-plugin-srvx (#3859) | 8 个月前 | |
chore(release): update version to 2.3.20 | 16 天前 | |
feat: `registry.start()` (#4477) * feat(rivetkit): add registry.start() as the default server pattern Replace the srvx + Hono + vite-plugin-srvx setup with a simpler registry.start() that starts the manager server, serves static files from public/ if it exists, and runs the actor driver. This is now the recommended way to run RivetKit. Key changes: - Add registry.start() method to Registry class - Add publicDir config option for static file serving - Move @hono/node-server and @hono/node-ws to regular deps - Update client default endpoint to http://localhost:6420 - Add deprecation warning when no endpoint is passed to client - Migrate all 30 examples to the new pattern - Update quickstart docs and client docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update all docs to use registry.start() and consistent patterns - Replace separate actors.ts/server.ts with single index.ts + registry.start() - Update all code examples to import from "./index" instead of "./actors" - Standardize createClient endpoint to localhost:6420 (not 8080) - Remove srvx references, replace with npx tsx --watch - Add registry.start() to runtime-modes comparison and registry-configuration - Update skill-base-rivetkit.md to reference registry.start() as primary - Update StepRunServer default file to index.ts - Update react quickstart to remove StepSetupServer/StepRunServer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 6 个月前 | |
refactor(dashboard): fix ts issues (#3981) | 8 个月前 | |
chore: fmt | 4 个月前 | |
feat(site): auto-generate templates from examples dir (#3603) | 9 个月前 |
Actor Actions
Demonstrates how to define and call actions on Rivet Actors for RPC-style communication between actors and clients.
Getting Started
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/actor-actions
npm install
npm run dev
Features
- Type-safe actor actions: Define and call actions with full TypeScript type safety
- Actor state management: Initialize and persist actor state using
createState - Cross-actor communication: Create and interact with actors from within other actors
- RPC-style patterns: Call actor methods from client code with automatic type inference
Implementation
This example demonstrates the fundamentals of defining and calling actor actions:
- Actor Definition (
src/backend/registry.ts): Shows how to define actions with parameters, return values, and state management
Resources
Read more about actions, state, and actor setup.
License
MIT