rex-sdk

dmmulroy

A TypeScript SDK for the Rex server API built on the Effect library: every method is a typed Effect, and arguments and results are validated with schema codecs generated from the server's own definitions.

TypeScriptCreated

What is dmmulroy/rex-sdk?

rex-sdk is an Effect-native TypeScript software development kit for the Rex server API. The README says every Rex method is a typed Effect, so calls can be composed, retried and handled as values. Arguments and results are checked with Effect Schema codecs, and those codecs are generated from the server's own JSON Schemas rather than written by hand.

The README describes how the rest of the design follows Effect's conventions. Live events and terminal output come as Streams, and connections are owned by a Scope, so they are closed when the scope ends. One RexSdk service groups the API's namespaces together, which keeps the surface small for the caller.

It suits TypeScript developers who already use Effect and want a typed client for the Rex server, and developers who want an example of how to wrap a JSON API in Effect's schema and resource model.