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

Commit 6add088

Browse files
committed
chore: rename actor-core -> @r-core/actor
1 parent a9b43d8 commit 6add088

File tree

382 files changed

+2487
-9831
lines changed

Some content is hidden

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

382 files changed

+2487
-9831
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307

308308
### Features
309309

310-
* **@actor-core/cli:** add cli ([#642](https://github.com/rivet-gg/actor-core/issues/642)) ([d919f1a](https://github.com/rivet-gg/actor-core/commit/d919f1aa11972f0513f6ad5851965b7f469624cd))
310+
* **rivetkit/cli:** add cli ([#642](https://github.com/rivet-gg/actor-core/issues/642)) ([d919f1a](https://github.com/rivet-gg/actor-core/commit/d919f1aa11972f0513f6ad5851965b7f469624cd))
311311
* add config validation ([#648](https://github.com/rivet-gg/actor-core/issues/648)) ([3323988](https://github.com/rivet-gg/actor-core/commit/3323988f6ab3d5d9ba99ba113f6b8e4a7f4c5ec7))
312312
* add cors support ([#647](https://github.com/rivet-gg/actor-core/issues/647)) ([ef13939](https://github.com/rivet-gg/actor-core/commit/ef13939f57c333d19b1cafc29b003bce1ccb8cf9))
313313
* add release candidate support to publish script ([#660](https://github.com/rivet-gg/actor-core/issues/660)) ([f6c6adc](https://github.com/rivet-gg/actor-core/commit/f6c6adc8dd8fe9ceb237ba55be7f5953fe8047ec))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ $ ./scripts/e2e-publish.ts
2525
- Modifies yarnrc to point to the local registry, publishes the package, and then restores the original yarnrc.
2626

2727
5. ```bash
28-
$ yarn workspace @actor-core/cli run test
28+
$ yarn workspace rivetkit/cli run test
2929
```
3030
- Runs the tests for the CLI, which includes running the CLI (inside Docker) with different arguments and checking the output.

clients/python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "actor-core-client"
2+
name = "rivetkit/actor-client"
33
version = "0.9.0-rc.1"
44
authors = [
55
{ name="Rivet Gaming, LLC", email="[email protected]" },
@@ -41,4 +41,4 @@ features = ["pyo3/extension-module"]
4141
testpaths = ["tests"]
4242
python_files = ["test_*.py"]
4343
log_cli = true
44-
log_level = "DEBUG"
44+
log_level = "DEBUG"

clients/python/tests/common.py

Lines changed: 9 additions & 9 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", "actor-core"],
45+
["yarn", "build", "-F", "rivetkit/actor"],
4646
cwd=repo_root,
4747
check=True
4848
)
@@ -58,15 +58,15 @@ def start_mock_server():
5858

5959
# Pack packages
6060
packages = [
61-
("actor-core", repo_root / "packages/actor-core"),
61+
("rivetkit/actor", 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"actor-core-{name}.tgz"
69+
output_path = vendor_dir / f"rivetkit/actor-{name}.tgz"
7070
subprocess.run(
7171
["yarn", "pack", "--out", str(output_path)],
7272
cwd=path,
@@ -88,7 +88,7 @@ def start_mock_server():
8888
port = get_free_port()
8989
server_script = f"""
9090
import {{ app }} from "./actors/app.ts";
91-
import {{ serve }} from "@actor-core/nodejs";
91+
import {{ serve }} from "rivetkit/nodejs";
9292
9393
serve(app, {{ port: {port}, mode: "memory" }});
9494
"""
@@ -98,15 +98,15 @@ def start_mock_server():
9898
# Create package.json
9999
logger.info("Creating package.json")
100100
package_json = {
101-
"name": "actor-core-python-test",
101+
"name": "rivetkit/actor-python-test",
102102
"packageManager": "[email protected]",
103103
"private": True,
104104
"type": "module",
105105
"dependencies": {
106-
"actor-core": f"file:{vendor_dir}/actor-core-actor-core.tgz",
107-
"@actor-core/nodejs": f"file:{vendor_dir}/actor-core-nodejs.tgz",
108-
"@actor-core/memory": f"file:{vendor_dir}/actor-core-memory.tgz",
109-
"@actor-core/file-system": f"file:{vendor_dir}/actor-core-file-system.tgz",
106+
"rivetkit/actor": f"file:{vendor_dir}/actor-core-actor-core.tgz",
107+
"rivetkit/nodejs": f"file:{vendor_dir}/actor-core-nodejs.tgz",
108+
"rivetkit/memory": f"file:{vendor_dir}/actor-core-memory.tgz",
109+
"rivetkit/file-system": f"file:{vendor_dir}/actor-core-file-system.tgz",
110110
},
111111
"devDependencies": {
112112
"tsx": "^3.12.7"

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 = "actor-core-client"
2+
name = "rivetkit/actor-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: 13 additions & 13 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", "actor-core"])
29+
.args(["build", "-F", "rivetkit/actor"])
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-
("actor-core", repo_root.join("packages/actor-core")),
49+
("rivetkit/actor", 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!("actor-core-{}.tgz", name));
57+
let output_path = vendor_dir.join(format!("rivetkit/actor-{}.tgz", name));
5858
println!(
5959
"Packing {} from {} to {}",
6060
name,
@@ -86,7 +86,7 @@ impl MockServer {
8686
// Write the server script
8787
let server_script = r#"
8888
import { app } from "./actors/app.ts";
89-
import { serve } from "@actor-core/nodejs";
89+
import { serve } from "rivetkit/nodejs";
9090
9191
serve(app, { port: PORT, mode: "memory" });
9292
"#
@@ -98,24 +98,24 @@ 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": "actor-core-rust-test",
101+
"name": "rivetkit/actor-rust-test",
102102
"packageManager": "[email protected]",
103103
"private": true,
104104
"type": "module",
105105
"dependencies": {{
106-
"actor-core": "file:{}",
107-
"@actor-core/nodejs": "file:{}",
108-
"@actor-core/memory": "file:{}",
109-
"@actor-core/file-system": "file:{}"
106+
"rivetkit/actor": "file:{}",
107+
"rivetkit/nodejs": "file:{}",
108+
"rivetkit/memory": "file:{}",
109+
"rivetkit/file-system": "file:{}"
110110
}},
111111
"devDependencies": {{
112112
"tsx": "^3.12.7"
113113
}}
114114
}}"#,
115-
vendor_dir.join("actor-core-actor-core.tgz").display(),
116-
vendor_dir.join("actor-core-nodejs.tgz").display(),
117-
vendor_dir.join("actor-core-memory.tgz").display(),
118-
vendor_dir.join("actor-core-file-system.tgz").display()
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()
119119
);
120120

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

docs/concepts/actions.mdx renamed to docs/actor/actions.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ actor.
1717
Actions are defined in the `actions` object when creating an actor:
1818

1919
```typescript
20-
import { actor } from "actor-core";
20+
import { actor } from "rivetkit/actor";
2121

2222
const mathUtils = actor({
2323
state: {},
@@ -37,7 +37,7 @@ Each action receives a context object (commonly named `c`) as its first paramete
3737
You can define helper functions outside the actions object to keep your code organized. These functions cannot be called directly by clients:
3838

3939
```typescript
40-
import { actor } from "actor-core";
40+
import { actor } from "rivetkit/actor";
4141

4242
// Private helper function - not callable by clients
4343
const calculateFee = (amount) => {
@@ -69,7 +69,7 @@ Actions have a single return value. To stream realtime data in response to an ac
6969
Calling actions from the client is simple:
7070

7171
```typescript
72-
import { createClient } from "actor-core/client";
72+
import { createClient } from "rivetkit/actor/client";
7373
import type { App } from "./src/index";
7474

7575
const client = createClient<App>("http://localhost:6420");
@@ -89,7 +89,7 @@ The actor client includes type safety out of the box. When you use `createClient
8989
<CodeGroup>
9090

9191
```typescript src/index.ts
92-
import { setup } from "actor-core";
92+
import { setup } from "rivetkit/actor";
9393

9494
// Create simple counter
9595
const counter = actor({
@@ -111,7 +111,7 @@ export type App = typeof app;
111111
```
112112

113113
```typescript client.ts
114-
import { createClient } from "actor-core/client";
114+
import { createClient } from "rivetkit/actor/client";
115115
import type { App } from "./src/index";
116116

117117
const client = createClient<App>("http://localhost:6420");
@@ -142,7 +142,7 @@ For example:
142142
<CodeGroup>
143143

144144
```typescript actor.ts
145-
import { actor, UserError } from "actor-core";
145+
import { actor, UserError } from "rivetkit/actor";
146146

147147
const user = actor({
148148
state: { users: [] },
@@ -190,7 +190,7 @@ Data schemas are not validated by default. For production applications, use a li
190190
For example, to validate action parameters:
191191

192192
```typescript
193-
import { actor, UserError } from "actor-core";
193+
import { actor, UserError } from "rivetkit/actor";
194194
import { z } from "zod";
195195

196196
// Define schema for action parameters
@@ -219,7 +219,7 @@ const counter = actor({
219219
```
220220

221221
<Note>
222-
Native runtime type validation is coming soon to ActorCore.
222+
Native runtime type validation is coming soon to RivetKit.
223223
</Note>
224224

225225
## Authentication
@@ -230,10 +230,10 @@ By default, clients can call all actions on an actor without restriction. Make s
230230

231231
When writing complex logic for actions, you may want to extract parts of your implementation into separate helper functions. When doing this, you'll need a way to properly type the context parameter.
232232

233-
ActorCore provides the `ActionContextOf` utility type for exactly this purpose:
233+
RivetKit provides the `ActionContextOf` utility type for exactly this purpose:
234234

235235
```typescript
236-
import { actor, ActionContextOf } from "actor-core";
236+
import { actor, ActionContextOf } from "rivetkit/actor";
237237

238238
const counter = actor({
239239
state: { count: 0 },

docs/concepts/authentication.mdx renamed to docs/actor/authentication.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Throwing an error in `onBeforeConnect` or `createConnState` will abort the conne
1414
Here's a basic example:
1515

1616
```typescript
17-
import { actor } from "actor-core";
17+
import { actor } from "rivetkit/actor";
1818

1919
const exampleActor = actor({
2020
state: {
@@ -46,7 +46,7 @@ const exampleActor = actor({
4646
After authentication, you can access the connection state in any action through the context object:
4747

4848
```typescript
49-
import { actor } from "actor-core";
49+
import { actor } from "rivetkit/actor";
5050

5151
const authenticatedActor = actor({
5252
state: {
@@ -80,7 +80,7 @@ const authenticatedActor = actor({
8080
### With API Server Authentication
8181

8282
```typescript
83-
import { actor } from "actor-core";
83+
import { actor } from "rivetkit/actor";
8484

8585
const apiAuthenticatedActor = actor({
8686
state: {
@@ -118,7 +118,7 @@ When authentication fails, throwing an error in `createConnState` will prevent t
118118
### With JWT Authentication
119119

120120
```typescript
121-
import { actor } from "actor-core";
121+
import { actor } from "rivetkit/actor";
122122
import jwt from "jsonwebtoken";
123123

124124
const JWT_SECRET = process.env.JWT_SECRET;

docs/concepts/connections.mdx renamed to docs/actor/connections.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For example:
1414
<CodeGroup>
1515

1616
```typescript actor.ts
17-
import { actor } from "actor-core";
17+
import { actor } from "rivetkit/actor";
1818

1919
const gameRoom = actor({
2020
state: {},
@@ -39,7 +39,7 @@ const gameRoom = actor({
3939
```
4040

4141
```typescript client.ts
42-
import { createClient } from "actor-core/client";
42+
import { createClient } from "rivetkit/actor/client";
4343
import type { App } from "./src/index";
4444

4545
const client = createClient<App>("http://localhost:6420");
@@ -57,7 +57,7 @@ There are two ways to define an actor's connection state:
5757
### Method 1: `ConnState` constant
5858

5959
```typescript
60-
import { actor } from "actor-core";
60+
import { actor } from "rivetkit/actor";
6161

6262
const chatRoom = actor({
6363
state: { messages: [] },
@@ -84,7 +84,7 @@ const chatRoom = actor({
8484
The data returned from `createConnState` is used as the initial state of the connection. The connection state can be accessed through `conn.state`.
8585

8686
```typescript
87-
import { actor } from "actor-core";
87+
import { actor } from "rivetkit/actor";
8888

8989
const chatRoom = actor({
9090
state: { messages: [] },
@@ -131,7 +131,7 @@ This is frequently used with `conn.send(name, event)` to send messages directly
131131
For example:
132132

133133
```typescript
134-
import { actor } from "actor-core";
134+
import { actor } from "rivetkit/actor";
135135

136136
const chatRoom = actor({
137137
state: { users: {} },
@@ -158,7 +158,7 @@ const chatRoom = actor({
158158
Connections can be disconnected from within an action:
159159

160160
```typescript
161-
import { actor } from "actor-core";
161+
import { actor } from "rivetkit/actor";
162162

163163
const secureRoom = actor({
164164
state: {},

0 commit comments

Comments
 (0)