Introducing Simple Remote Data (SRD), a Static Land compliant TypeScript library for managing state from remote sources.
SRD’s top features are:
- Only 549 bytes minified and gzipped, that is ridiculously small!
- Built with Higher Kinded Types (HKT’s) to allow Typescript to infer these complex disjoint union types.
- Static Land compliant!
- Made for React or any other JS based frontend framework.
What is a Remote Data type?
A Remote Data type is a kind of discriminate union type in functional programming for managing the state of some data that is retrieved remotely and asynchronously, such as http response data, websockets, server sent events, reading a file, or any other async IO.