river-ts-streaming

Community

Type-safe SSE & WebSocket streams with river.ts

AuthorBewinxed
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill unifies Server-Sent Events (SSE) and WebSocket communications under a single, type-safe model using river.ts, reducing boilerplate and type drift when building real-time apps.

Core Features & Use Cases

  • Type-safe event schemas via RiverEvents builder
  • SSE streaming on server with RiverEmitter
  • Client-side consumption with RiverClient
  • WebSocket adapter with RiverSocketAdapter and RPC-style requests
  • Streaming with chunked data
  • Cross-protocol interoperability

Quick Start

Define your events with RiverEvents and build the event map. Initialize RiverEmitter on the server to stream events to connected clients. On the client, use RiverClient to subscribe to events and optionally use RiverSocketAdapter for WebSocket RPC.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: river-ts-streaming
Download link: https://github.com/Bewinxed/river.ts/archive/main.zip#river-ts-streaming

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.