BewinxedBewinxedCommunityยท1 Agent Skills Included

river.ts

Type-safe SSE and WebSocket event streaming for TypeScript

Builds type-safe Server-Sent Events and WebSocket communication between servers and clients in TypeScript. Defines shared event schemas once, then streams, broadcasts, and handles chunked data with full type checking on both ends. Eliminates manual reconnection logic, message parsing, and mismatched payload errors in real-time apps.
npx skills add Bewinxed/river.ts --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install river.ts?โ–ผ

Run `npx skills add Bewinxed/river.ts --all -g -y` in your terminal to install this skill globally.

What does river.ts do?โ–ผ

It lets you define typed event schemas once and use them for both Server-Sent Events and WebSockets, with automatic chunking, reconnection, and cleanup.

Does river.ts support request/response over WebSocket?โ–ผ

Yes. The RiverSocketAdapter supports RPC-style requests with typed responses, timeouts, and concurrent pending requests.

Which frameworks work with river.ts?โ–ผ

It works with express-like backends, modern frontend frameworks like Svelte, and any WebSocket implementation including Bun.

Is river.ts type-safe?โ–ผ

Yes. Event payloads and responses are fully typed, so TypeScript catches mismatched data at compile time on both server and client.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’