rivetkit-client-swiftui

Installation
Summary

SwiftUI client library for connecting to Rivet Actors with reactive bindings and event streaming.

  • Provides @Actor property wrapper for get-or-create semantics with connection lifecycle management, plus view modifiers for environment setup and event subscription
  • Supports typed async actions, fire-and-forget sends, and AsyncStream event subscriptions with 0–5 typed arguments
  • Includes connection status tracking, error handling via ActorError, and compound key support for hierarchical actor addressing
  • Requires single .rivetKit(endpoint:) or .rivetKit(client:) call at app root; reads optional config from environment variables (RIVET_NAMESPACE, RIVET_TOKEN, RIVET_RUNNER)
SKILL.md

RivetKit SwiftUI Client

Use this skill when building SwiftUI apps that connect to Rivet Actors with RivetKitSwiftUI.

Version

RivetKit version: 2.3.0-rc.5

Error Handling Policy

  • Prefer fail-fast behavior by default.
  • Avoid broad do/catch unless absolutely needed.
  • If a catch block is used, handle the error explicitly, at minimum by logging it.

Install

Add the Swift package dependency and import RivetKitSwiftUI:

Related skills
Installs
5.3K
GitHub Stars
14
First Seen
Jan 26, 2026