The API is implemented using effect
. It uses the HttpApi
module from @effect/platform
to define the API endpoints.
Since version 3.10 of
effect
you don't need to install@effect/schema
anymore, sinceSchema
is now a built-in feature ofeffect
.
We can therefore install the dependencies inside api-client
using pnpm
:
pnpm add effect @effect/platform
Make sure to install the dependencies inside
packages/api-client
, not in the root of the project.
package.json
"dependencies": {
"@effect/platform": "^0.69.9",
"effect": "^3.10.4"
}