JSPM

  • Created
  • Published
  • Downloads 3887
  • Score
    100M100P100Q128394F
  • License MIT

It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!

Package Exports

  • @replit/river
  • @replit/river/codec
  • @replit/river/logging
  • @replit/river/test-util
  • @replit/river/transport
  • @replit/river/transport/stdio
  • @replit/river/transport/ws/client
  • @replit/river/transport/ws/server

Readme

river - Streaming Remote Procedure Calls

It's like tRPC but...

  • with JSON Schema Support
  • with full-duplex streaming
  • with support for service multiplexing
  • with Result types and error handling
  • over WebSockets

To use River, you must be on least Typescript 5 with "moduleResolution": "bundler".

Developing

Run on Repl.it

  • npm i -- install dependencies
  • npm run check -- lint
  • npm run format -- format
  • npm run test -- run tests
  • npm run publish -- cut a new release (should bump version in package.json first)