rivetkit-client-javascript

Create JavaScript clients for Rivet Actors using rivetkit/client.

567|82|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/pedronauck/skills --skill rivetkit-client-javascript-pedronauck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rivetkit-client-javascript
Source: https://github.com/pedronauck/skills/tree/main/skills/rivetkit-client-javascript
Command: npx skills add https://github.com/pedronauck/skills --skill rivetkit-client-javascript-pedronauck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for developers building JavaScript clients to interact with Rivet Actors, simplifying the process of creating clients, calling actions, and managing connections.

Core Features & Use Cases

  • Client Creation: Easily instantiate clients for browser, Node.js, or Bun environments using createClient().
  • Actor Interaction: Define and call actions on Rivet Actors, handling both stateless and stateful operations.
  • Use Case: You need to build a real-time chat application where users can interact with a chat room actor. This skill will guide you on how to connect to the actor, send messages, and subscribe to updates.

Quick Start

Install the RivetKit client by running npm install [email protected] in your project directory.

Frequently Asked Questions about rivetkit-client-javascript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect to Rivet Actors using a JavaScript client?

To connect to Rivet Actors, use the `createClient()` function from the `rivetkit/client` library to instantiate a client in your browser, Node.js, or Bun environment. This allows you to manage connections and interact with actors.

Can I call actions on stateful actors in real-time with JavaScript?

Yes, you can call actions on stateful Rivet Actors in real-time by defining and invoking them through the JavaScript client. This supports stateful actor interactions and real-time communication for applications like chat rooms.

Does the RivetKit JavaScript client work in Bun and Node.js environments?

Yes, the RivetKit JavaScript client supports browser, Node.js, and Bun environments. You can install it via `npm install [email protected]` and use `createClient()` across all supported platforms.

How do I handle events and errors when interacting with Rivet Actors?

The RivetKit JavaScript client handles events and errors by managing connections to Rivet Actors. You can subscribe to actor updates and implement robust error handling for stateless and stateful operations.

What is the best way to build a real-time chat application with Rivet Actors?

The best way to build a real-time chat application is to use the JavaScript client to connect to a chat room actor, send messages by calling actions, and subscribe to real-time event updates for new messages.