rivetkit-client-javascript
Originally fromrivet-dev/skills
Installation
SKILL.md
RivetKit JavaScript Client
Use this skill when building JavaScript clients (browser, Node.js, or Bun) that connect to Rivet Actors with rivetkit/client.
First Steps
- Install the client (latest: 2.1.0-rc.2)
npm install rivetkit@2.1.0-rc.2 - Create a client with
createClient()and call actor actions.
Error Handling Policy
- Prefer fail-fast behavior by default.
- Avoid
try/catchunless absolutely needed. - If a
catchis used, handle the error explicitly, at minimum by logging it.