ActorRPC Explained: The Swift RPC Package Now Called CovalentRPC
ActorRPC is the former name of CovalentRPC, a Swift package that calls distributed actors over plain HTTP. This guide explains the rename, the protocol-first API, streams, browser and Lambda support, and the early proof-of-concept limits stated by its author in November 2026. Check the current repository before adopting.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What is ActorRPC, and why is it now called CovalentRPC?
ActorRPC is the former name of CovalentRPC, a small Swift package that lets a client call a distributed actor over plain HTTP. Its author renamed it first SwiftRPC, then CovalentRPC. The November 2026 Swift Forums showcase still notes the old name, and the repository README records both earlier labels.
The package grew from a simple observation: Swift's Distributed feature now works in Embedded Swift on the main snapshot. That made it possible to put a distributed actor in a browser tab and call a server implementation hosted on AWS Lambda. The code is at elementary-swift/covalent-rpc, with a live TreasureHunt example.
Results that still use the ActorRPC name describe an earlier stage of the project. If you are evaluating the library now, read the current CovalentRPC repository rather than an old mirror: the API and wire format are explicitly unstable.
How does ActorRPC turn a Swift protocol into an HTTP call?
The contract is a Swift protocol annotated @Resolvable and conforming to RPCService; the server implements it as a distributed actor, and the client calls it as if it were local. No schema, no code generation and no YAML are involved, and every call is a plain JSON POST request.
@Resolvable
public protocol DeepThought: RPCService {
distributed func answer(to question: String) async throws -> Int
}
extension DeepThought {
public static var serviceName: String { "deep-thought" }
}
The server conforms to that protocol with an actor, and the client resolves the same protocol through a transport. Because the shared code is only a Swift protocol, both sides can be compiled against identical types without generating stubs. The author describes the goal as clean HTTP-based RPC for classic client-to-server apps, not a distributed cluster.
Why did the project avoid a cluster design?
ActorRPC deliberately drops the "distributed" part of Swift's distributed actors: there is no membership, no gossip and no location transparency. It keeps the language feature but uses it for ordinary client-to-server calls, which the author describes as server and client "like it's the 90s."
That choice has a practical benefit. Every call is a JSON POST, so existing infrastructure keeps working: routing, load balancing, proxies, CDNs, API gateways, authentication and observability. The TreasureHunt demo runs through CloudFront, API Gateway and Lambda without WebSockets, custom envelopes or a new control plane.
Can ActorRPC run in a browser and on AWS Lambda?
Yes. The published demo runs an Embedded Swift/Wasm UI in the browser and calls a distributed actor on AWS Lambda. The client uses fetch; the server is a single respond(to:body:) call inside an HTTP handler, so it fits Vapor, Hummingbird or a bare Lambda handler.
The Swift Forums showcase includes the TreasureHunt protocol with newGame, dig and reveal, plus the server setup:
var server = CovalentServer(basePath: "/rpc")
server.serve(perCall: DeepThoughtActor.init)
// In your handler for POST /rpc/*:
let response = await server.respond(to: request, body: body)
For a host that buffers a whole response, such as Lambda behind API Gateway, the README offers response.collectedBody instead of streaming. That path cannot serve a method returning an RPCStream.
What are streams in CovalentRPC?
A method that returns RPCStream<Element> delivers values one at a time as they are produced. Over HTTP the values arrive as JSON Lines, with a heartbeat line while the stream is idle. Cancelling the client task cancels the call on the server, and a disappeared client is noticed within a heartbeat or two.
@Resolvable
public protocol Ticker: RPCService {
distributed func ticks() async throws -> RPCStream<Int>
}
A dropped connection fails the stream with RPCError.Code.unavailable. The repository has a separate LiveStreams example. This is the clearest technical reason to look past the old ActorRPC name: streaming was added to the current package.
Is ActorRPC production ready in 2026?
No. The repository carries an explicit warning: "Early proof of concept. Not ready for use." There are no releases, the API and wire format may change without notice, and the package needs a Swift main snapshot plus the experimental NewCodable branch of swift-foundation.
Those requirements matter more than the old branding. A team that adopts the library today is choosing a moving target tied to toolchain snapshots, not a stable RPC framework. For related infrastructure reading, see the AgentAPIGate gateway guide.
What should you check before trying ActorRPC?
Treat ActorRPC as a name for the prototype and CovalentRPC as the project you would actually install. Confirm your Swift toolchain matches the required snapshot, read the current README for the transport and stream APIs, and decide whether a plain JSON POST design fits your deployment before spending time on the demo.
The information here comes from the author's November 2026 forum post and the repository README, both read on 2 December 2026. No release date or stability promise is published, so the reasonable scope is experimentation rather than production traffic. The rename is the practical takeaway for anyone searching the older term.
What do developers ask about ActorRPC?
ActorRPC is no longer the name you should search for when installing the package, but it remains useful for finding older discussions and example code. The current repository is CovalentRPC, and its README is the source of truth for APIs, streams and requirements.
Is ActorRPC an AI agent framework?
No. It is a Swift RPC library for calling distributed actors over HTTP. The keyword appears in AI-adjacent searches because agent stacks often need tool transport, but the package itself has no model, planner or agent loop. Judge it as plumbing, not as an orchestration system.
Does it replace gRPC or plain REST?
Not by default. It offers protocol-defined Swift endpoints over JSON POST, which is attractive for Swift-to-Swift services and Embedded Swift clients. For polyglot systems or established contracts, gRPC or OpenAPI still have stronger tooling and stable wire formats.