Official
API Development
Integrates JavaScript clients with Rivet Actors across browser, Node.js, and Bun environments.
This skill provides comprehensive guidance for developers building JavaScript clients that interact with Rivet Actors using the rivetkit/client library. It streamlines the process of creating clients, managing stateful and stateless connections, and handling actor-based communication patterns. By offering best practices for error handling, secure key addressing, and advanced lifecycle management like skipReadyWait, it ensures robust and secure integrations for real-time applications and serverless workflows.
Key Features
01Advanced lifecycle control with low-level HTTP and WebSocket APIs
02Cross-platform support for browser, Node.js, and Bun runtimes
0316 GitHub stars
04Dynamic connection parameter handling for JWT and token refreshing
05Simplified Rivet Actor connection management using createClient()
06Secure actor addressing using compound keys to prevent injection
Use Cases
01Building real-time collaborative applications with stateful Rivet Actors
02Managing complex actor connection lifecycles in serverless environments
03Implementing secure client-side communication with Rivet-based backends