Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit fd29304

Browse files
committed
chore: rename actors -> workers
1 parent 7e56428 commit fd29304

File tree

358 files changed

+4793
-4797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+4793
-4797
lines changed

clients/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "@rivetkit/actor-client"
2+
name = "rivetkit-client"
33
version = "0.9.0-rc.1"
44
authors = [
55
{ name="Rivet Gaming, LLC", email="developer@rivet.gg" },

clients/python/tests/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def start_mock_server():
4242
# Build actor-core
4343
logger.info("Building actor-core")
4444
subprocess.run(
45-
["yarn", "build", "-F", "@rivetkit/actor"],
45+
["yarn", "build", "-F", "rivetkit"],
4646
cwd=repo_root,
4747
check=True
4848
)
@@ -58,15 +58,15 @@ def start_mock_server():
5858

5959
# Pack packages
6060
packages = [
61-
("@rivetkit/actor", repo_root / "packages/actor-core"),
61+
("rivetkit", repo_root / "packages/actor-core"),
6262
("nodejs", repo_root / "packages/platforms/nodejs"),
6363
("memory", repo_root / "packages/drivers/memory"),
6464
("file-system", repo_root / "packages/drivers/file-system")
6565
]
6666

6767
logger.info("Packing packages (3 total)")
6868
for name, path in packages:
69-
output_path = vendor_dir / f"@rivetkit/actor-{name}.tgz"
69+
output_path = vendor_dir / f"rivetkit-{name}.tgz"
7070
subprocess.run(
7171
["yarn", "pack", "--out", str(output_path)],
7272
cwd=path,
@@ -98,12 +98,12 @@ def start_mock_server():
9898
# Create package.json
9999
logger.info("Creating package.json")
100100
package_json = {
101-
"name": "@rivetkit/actor-python-test",
101+
"name": "rivetkit-python-test",
102102
"packageManager": "yarn@4.2.2",
103103
"private": True,
104104
"type": "module",
105105
"dependencies": {
106-
"@rivetkit/actor": f"file:{vendor_dir}/actor-core-actor-core.tgz",
106+
"rivetkit": f"file:{vendor_dir}/actor-core-actor-core.tgz",
107107
"@rivetkit/nodejs": f"file:{vendor_dir}/actor-core-nodejs.tgz",
108108
"@rivetkit/memory": f"file:{vendor_dir}/actor-core-memory.tgz",
109109
"@rivetkit/file-system": f"file:{vendor_dir}/actor-core-file-system.tgz",

clients/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "@rivetkit/actor-client"
2+
name = "rivetkit-client"
33
version = "0.9.0-rc.1"
44
description = "Rust client for ActorCore - the Stateful Serverless Framework for building AI agents, realtime apps, and game servers"
55
edition = "2021"

clients/rust/tests/e2e.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl MockServer {
2626

2727
// Run `yarn build -F actor-core` in the root of this repo
2828
let status = Command::new("yarn")
29-
.args(["build", "-F", "@rivetkit/actor"])
29+
.args(["build", "-F", "rivetkit"])
3030
.current_dir(&repo_root)
3131
.status()
3232
.expect("Failed to build actor-core");
@@ -46,15 +46,15 @@ impl MockServer {
4646

4747
// Define packages to pack
4848
let packages = [
49-
("@rivetkit/actor", repo_root.join("packages/actor-core")),
49+
("rivetkit", repo_root.join("packages/actor-core")),
5050
("nodejs", repo_root.join("packages/platforms/nodejs")),
5151
("memory", repo_root.join("packages/drivers/memory")),
5252
("file-system", repo_root.join("packages/drivers/file-system")),
5353
];
5454

5555
// Pack each package to the vendor directory
5656
for (name, path) in packages.iter() {
57-
let output_path = vendor_dir.join(format!("@rivetkit/actor-{}.tgz", name));
57+
let output_path = vendor_dir.join(format!("rivetkit-{}.tgz", name));
5858
println!(
5959
"Packing {} from {} to {}",
6060
name,
@@ -98,12 +98,12 @@ serve(app, { port: PORT, mode: "memory" });
9898
let package_json_path = server_dir.join("package.json");
9999
let package_json = format!(
100100
r#"{{
101-
"name": "@rivetkit/actor-rust-test",
101+
"name": "rivetkit-rust-test",
102102
"packageManager": "yarn@4.2.2",
103103
"private": true,
104104
"type": "module",
105105
"dependencies": {{
106-
"@rivetkit/actor": "file:{}",
106+
"rivetkit": "file:{}",
107107
"@rivetkit/nodejs": "file:{}",
108108
"@rivetkit/memory": "file:{}",
109109
"@rivetkit/file-system": "file:{}"
@@ -112,10 +112,10 @@ serve(app, { port: PORT, mode: "memory" });
112112
"tsx": "^3.12.7"
113113
}}
114114
}}"#,
115-
vendor_dir.join("@rivetkit/actor-actor-core.tgz").display(),
116-
vendor_dir.join("@rivetkit/actor-nodejs.tgz").display(),
117-
vendor_dir.join("@rivetkit/actor-memory.tgz").display(),
118-
vendor_dir.join("@rivetkit/actor-file-system.tgz").display()
115+
vendor_dir.join("rivetkit-actor-core.tgz").display(),
116+
vendor_dir.join("rivetkit-nodejs.tgz").display(),
117+
vendor_dir.join("rivetkit-memory.tgz").display(),
118+
vendor_dir.join("rivetkit-file-system.tgz").display()
119119
);
120120

121121
std::fs::write(&package_json_path, package_json).expect("Failed to write package.json");

docs/clients/javascript.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ icon: node-js
44
---
55

66
import MvpWarning from "/snippets/mvp-warning.mdx";
7-
import StepDefineActor from "/snippets/step-define-actor.mdx";
7+
import StepDefineWorker from "/snippets/step-define-worker.mdx";
88
import StepRunStudio from "/snippets/step-run-studio.mdx";
99
import StepDeploy from "/snippets/step-deploy.mdx";
1010
import SetupNextSteps from "/snippets/setup-next-steps.mdx";
1111

12-
The RivetKit JavaScript client allows you to connect to and interact with actors from browser and Node.js applications.
12+
The RivetKit JavaScript client allows you to connect to and interact with workers from browser and Node.js applications.
1313

1414
<MvpWarning />
1515

@@ -71,20 +71,20 @@ The RivetKit JavaScript client allows you to connect to and interact with actors
7171
</CodeGroup>
7272
</Step>
7373

74-
<StepDefineActor />
74+
<StepDefineWorker />
7575

7676
<Step title="Create your client">
77-
Create a file `src/client.ts` in your project to connect to your actor:
77+
Create a file `src/client.ts` in your project to connect to your worker:
7878

7979
```typescript src/client.ts
80-
import { createClient } from "@rivetkit/actor/client";
81-
import type { App } from "../actors/app";
80+
import { createClient } from "rivetkit/client";
81+
import type { App } from "../workers/app";
8282

8383
async function main() {
8484
// Replace with your endpoint URL after deployment
8585
const client = createClient<App>("http://localhost:6420");
8686

87-
// Get or create an actor instance
87+
// Get or create a worker instance
8888
const counter = await client.counter.get();
8989

9090
// Subscribe to events
@@ -139,5 +139,5 @@ The RivetKit JavaScript client allows you to connect to and interact with actors
139139

140140
## Next Steps
141141

142-
See the [Interacting with Actors](/concepts/interacting-with-actors) documentation for information on how to use the client.
142+
See the [Interacting with Workers](/concepts/interacting-with-workers) documentation for information on how to use the client.
143143

docs/clients/python.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ icon: python
44
---
55

66
import MvpWarning from "/snippets/mvp-warning.mdx";
7-
import StepDefineActor from "/snippets/step-define-actor.mdx";
7+
import StepDefineWorker from "/snippets/step-define-worker.mdx";
88
import StepRunStudio from "/snippets/step-run-studio.mdx";
99
import StepDeploy from "/snippets/step-deploy.mdx";
1010
import SetupNextSteps from "/snippets/setup-next-steps.mdx";
1111

12-
The RivetKit Python client provides a way to connect to and interact with actors from Python applications.
12+
The RivetKit Python client provides a way to connect to and interact with workers from Python applications.
1313

1414
<MvpWarning />
1515

@@ -39,21 +39,21 @@ The RivetKit Python client provides a way to connect to and interact with actors
3939
```
4040
</Step>
4141

42-
<StepDefineActor />
42+
<StepDefineWorker />
4343

4444
<Step title="Create your client">
4545
Create a new file `main.py`:
4646

4747
<CodeGroup>
4848
```python Async
4949
import asyncio
50-
from actor_core_client import AsyncClient
50+
from worker_core_client import AsyncClient
5151

5252
async def main():
5353
# Replace with your endpoint URL after deployment
5454
client = AsyncClient("http://localhost:6420")
5555

56-
# Get or create an actor instance
56+
# Get or create a worker instance
5757
counter = await client.get("counter")
5858

5959
# Subscribe to events using callback
@@ -77,12 +77,12 @@ The RivetKit Python client provides a way to connect to and interact with actors
7777
```
7878

7979
```python Sync
80-
from actor_core_client import Client
80+
from worker_core_client import Client
8181

8282
# Replace with your endpoint URL after deployment
8383
client = Client("http://localhost:6420")
8484

85-
# Get or create an actor instance
85+
# Get or create a worker instance
8686
counter = client.get("counter")
8787

8888
# Subscribe to events using callback

docs/clients/rust.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ icon: rust
44
---
55

66
import MvpWarning from "/snippets/mvp-warning.mdx";
7-
import StepDefineActor from "/snippets/step-define-actor.mdx";
7+
import StepDefineWorker from "/snippets/step-define-worker.mdx";
88
import StepRunStudio from "/snippets/step-run-studio.mdx";
99
import StepDeploy from "/snippets/step-deploy.mdx";
1010
import SetupNextSteps from "/snippets/setup-next-steps.mdx";
1111

12-
The RivetKit Rust client provides a way to connect to and interact with actors from Rust applications.
12+
The RivetKit Rust client provides a way to connect to and interact with workers from Rust applications.
1313

1414
<MvpWarning />
1515

@@ -35,13 +35,13 @@ The RivetKit Rust client provides a way to connect to and interact with actors f
3535
```
3636
</Step>
3737

38-
<StepDefineActor />
38+
<StepDefineWorker />
3939

4040
<Step title="Create your client">
41-
Modify `src/main.rs` to connect to your actor:
41+
Modify `src/main.rs` to connect to your worker:
4242

4343
```rust src/main.rs
44-
use actor_core_client::{Client, GetOptions, TransportKind, EncodingKind};
44+
use worker_core_client::{Client, GetOptions, TransportKind, EncodingKind};
4545
use serde_json::json;
4646
use std::time::Duration;
4747

@@ -54,7 +54,7 @@ The RivetKit Rust client provides a way to connect to and interact with actors f
5454
EncodingKind::Cbor,
5555
);
5656

57-
// Get or create an actor instance
57+
// Get or create a worker instance
5858
let options = GetOptions::default();
5959
let counter = client.get("counter", options).await?;
6060

docs/concepts/cors.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Cross-Origin Resource Sharing (CORS) is a security mechanism that allows a web a
88

99
You'll need to configure CORS when:
1010

11-
- **Local Development:** You're developing locally and your client runs on a different port than your actor service
12-
- **Different Domain:** Your frontend application is hosted on a different domain than your actor service
11+
- **Local Development:** You're developing locally and your client runs on a different port than your worker service
12+
- **Different Domain:** Your frontend application is hosted on a different domain than your worker service
1313

1414
## Example
1515

1616
```ts
17-
import { setup } from "@rivetkit/actor";
17+
import { setup } from "rivetkit";
1818
import counter from "./counter";
1919

2020
const app = setup({
21-
actors: { counter },
21+
workers: { counter },
2222
// Change this to match your frontend's origin
2323
cors: { origin: "https://yourdomain.com" }
2424
});

docs/concepts/edge.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Edge Networking
3-
description: Actors run near your users on your provider's global network (if supported).
3+
description: Workers run near your users on your provider's global network (if supported).
44
icon: globe
55
---
66

77
## Region selection
88

99
### Automatic region selection
1010

11-
By default, actors will choose the optimal region based on the client's location.
11+
By default, workers will choose the optimal region based on the client's location.
1212

1313
<Note>
1414
Under the hood, Rivet uses [Anycast routing](https://en.wikipedia.org/wiki/Anycast) to automatically find
@@ -17,16 +17,16 @@ By default, actors will choose the optimal region based on the client's location
1717

1818
### Manual region selection
1919

20-
The region an actor is created in can be overridden using region options:
20+
The region a worker is created in can be overridden using region options:
2121

2222
```typescript client.ts
23-
import { createClient } from "@rivetkit/actor/client";
23+
import { createClient } from "rivetkit/client";
2424
import type { App } from "./src/index";
2525

2626
const client = createClient<App>("http://localhost:6420");
2727

28-
// Create actor in a specific region
29-
const actor = await client.example.get({
28+
// Create worker in a specific region
29+
const worker = await client.example.get({
3030
options: {
3131
create: {
3232
region: "atl"
@@ -35,7 +35,7 @@ const actor = await client.example.get({
3535
});
3636
```
3737

38-
See [Create & Manage Actors](/docs/manage) for more information.
38+
See [Create & Manage Workers](/docs/manage) for more information.
3939

4040
## Available regions
4141

@@ -45,6 +45,6 @@ See available regions [here](/docs/regions).
4545

4646
It's common to need to display a list of available regions in your application.
4747

48-
To fetch a full list of regions, you can use the `GET https://api.rivet.gg/regions` HTTP endpoint. See API documentation [here](/docs/api/actor/regions/list).
48+
To fetch a full list of regions, you can use the `GET https://api.rivet.gg/regions` HTTP endpoint. See API documentation [here](/docs/api/worker/regions/list).
4949

5050
We don't recommend hard-coding the region list. This allows you to develop your application with a local development cluster.

0 commit comments

Comments
 (0)