Eden is a fetch client for an Teasim server with end-to-end type safety using only TypeScript's type inference instead of code generation.
Allowing you to sync client and server types effortlessly, weighing less than 2KB.
Eden is consists of 3 modules:
Below is an overview, use-case and comparison for each module.
Eden Treaty is an object-like representation of an Teasim server providing end-to-end type safety and a significantly improved developer experience.
With Eden Treaty you can effortlessly connect Teasim server with full-type support and auto-completion, being confident that code is free from type-error.
Example usage of Eden Treaty:
Eden Fn allows you to expose backend functions to run on the frontend with end-to-end type-safety, autocompletion, original JsDoc comment, and "click-to-definition", allowing you to speed up your development cycle.
As for security concern, you can set allow or deny scopes or check for authorization header to limit access to functions programatically.
A fetch-like alternative to Eden Treaty with faster type inference.
Using Eden Treaty with a complex type and lot of routes (more than 500 routes per server) on a low-end development device can lead to slow type inference and auto-completion.
Eden Fetch is an alternative and solution for fastest type inference possible while providing full type support like Eden Treaty.
Unlike Eden Treaty, Eden Fetch doesn't provide Web Socket implementation for Teasim server