# Effetch > Typed HTTP calls for Effect, without the boilerplate. You give Effetch a path and a schema. It fills in the path, builds the query, sends the request, checks the status and decodes the response. What you get back is an Effect that's typed end to end, errors included. Each link in the sections up to Optional is a page as Markdown, in the order the docs read. [llms-full.txt](https://effetch.pages.dev/llms-full.txt) has every page in one file. They cover the newest release of `@monarcode/effetch`. ## Get started - [Introduction](https://effetch.pages.dev/docs/index.md): Typed HTTP calls for Effect, without the boilerplate. - [Installation](https://effetch.pages.dev/docs/installation.md): Add Effetch to a project and import its entry points. - [Getting started](https://effetch.pages.dev/docs/getting-started.md): Write a program that makes a typed call, run it and see what each part does. - [Coming from axios or ky](https://effetch.pages.dev/docs/coming-from-axios-or-ky.md): Map what you know from axios or ky to Effetch, and see what has no counterpart. ## Guides - Clients - [Declare a client](https://effetch.pages.dev/docs/clients.md): Declare a client as an Effect service with Fetch.Service. - [Client configuration](https://effetch.pages.dev/docs/clients/configuration.md): Look up an option a client accepts, its default, and what it changes for each call. - [Provide the client](https://effetch.pages.dev/docs/clients/providing.md): Give a program the HttpClient that the client's layer needs, then run it. - [Derive a client](https://effetch.pages.dev/docs/clients/derived.md): Make a client from another, with a different base URL or one more header. - [Fetch.Service or Fetch.make](https://effetch.pages.dev/docs/clients/service-or-make.md): Choose between declaring a client as a service and building one with Fetch.make. - Calls - [Make a call](https://effetch.pages.dev/docs/calls.md): Pick a method, fill in the path's parameters and build the query string. - [Send a body](https://effetch.pages.dev/docs/calls/body.md): Send JSON, form data, text or bytes, encoded with a schema or as is. - [Upload files](https://effetch.pages.dev/docs/calls/uploads.md): Upload files with a typed multipart body. - [Read the response](https://effetch.pages.dev/docs/calls/responses.md): Decode the body with a schema, or read text, bytes or the whole response. - [Call options](https://effetch.pages.dev/docs/calls/options.md): Look up an option a call accepts, its default, and the page that explains it. - [When the methods aren't enough](https://effetch.pages.dev/docs/calls/http-client.md): Choose the method at runtime, read a stream, or use the HttpClient underneath a client. - Errors - [Call errors](https://effetch.pages.dev/docs/errors.md): Learn what a call can fail with and how each error is typed. - [Catch errors](https://effetch.pages.dev/docs/errors/catching.md): Handle an error by its tag or its status, and read the API's error body. - [Errors by status](https://effetch.pages.dev/docs/errors/status-errors.md): Turn an error status into your own domain error. - [Logging and defects](https://effetch.pages.dev/docs/errors/logging-and-defects.md): Learn what stays out of a logged error, and why bugs are defects rather than errors. - Endpoints - [Endpoints or methods](https://effetch.pages.dev/docs/endpoints.md): Learn what endpoints add over methods, and when to use each. - [Define endpoints](https://effetch.pages.dev/docs/endpoints/defining.md): Save a route with its schemas and defaults, and see how they combine with the client's and the call's. - [Share endpoints as a service](https://effetch.pages.dev/docs/endpoints/services.md): Bind a record of endpoint definitions to a client once, and share them as an Effect service. - [Call an endpoint](https://effetch.pages.dev/docs/endpoints/calling.md): Pass what changes on each call, and bind endpoints to a client with bind, bindAll or api.endpoint. - [Typed query parameters](https://effetch.pages.dev/docs/endpoints/typed-query.md): Give an endpoint a schema that types each call's query and encodes it before it's sent. - [Build an endpoint's URL](https://effetch.pages.dev/docs/endpoints/urls.md): Get the URL a call to an endpoint would go to, without sending a request. - Plugins - [Built-in plugins](https://effetch.pages.dev/docs/plugins.md): Add a bearer token, retries, a timeout and logging to every call a client makes, and see the order they run in. - [Refresh a token](https://effetch.pages.dev/docs/plugins/token-refresh.md): Renew an expired access token with the bearer plugin and send the request again. - [Retry-After and a time limit](https://effetch.pages.dev/docs/plugins/retry-after.md): Honor a Retry-After header, and limit how long each attempt and the whole call may take. - [Log to the console](https://effetch.pages.dev/docs/plugins/console-logging.md): Print every call's route, status, headers, bodies and error to the console during development. - [Change plugins for one call](https://effetch.pages.dev/docs/plugins/per-call.md): Turn off or adjust a client's plugin for one call. - [Write a plugin](https://effetch.pages.dev/docs/plugins/writing.md): Build a first plugin step by step, then look up the hooks and how a plugin reads the route. - [Plugin recipes](https://effetch.pages.dev/docs/plugins/recipes.md): Copy a plugin that signs out on a 401, or one that sets a deadline with its own error. ## Going further - [Streaming responses](https://effetch.pages.dev/docs/streaming.md): Read Server-Sent Events or newline-delimited JSON as a Stream, and handle how a stream fails or stops. - [Pagination](https://effetch.pages.dev/docs/pagination.md): Page through a list with Fetch.paginate, with the cursor in the body or in a header. - Testing - [Test with a fake backend](https://effetch.pages.dev/docs/testing.md): Test calls against a fake backend made from your endpoints. - [Test errors and statuses](https://effetch.pages.dev/docs/testing/errors.md): Make the fake backend fail or answer with another status. - [Test stream endpoints](https://effetch.pages.dev/docs/testing/streams.md): Fake a streamed response with a list of events or values. - [Check what was sent](https://effetch.pages.dev/docs/testing/requests.md): Assert on the requests your code sent, and learn how they're matched. - [Use a hand-written HttpClient](https://effetch.pages.dev/docs/testing/http-client.md): Fake the transport with your own HttpClient, for a network failure or a body that arrives slowly or breaks off. - [Structure an app](https://effetch.pages.dev/docs/structuring-an-app.md): Lay out clients and endpoints in a small app, a feature-sliced app and an app with several backends. - [Platform notes](https://effetch.pages.dev/docs/platforms.md): Set up Effetch for browsers and React Native. ## Resources - Reference - [Entry points](https://effetch.pages.dev/docs/reference.md): Find which entry point exports what, and the reference page that lists it. - [Fetch](https://effetch.pages.dev/docs/reference/fetch.md): Every member of the Fetch namespace: clients, calls, responses, uploads, errors, plugins, endpoints, streaming and pagination. - [Plugins](https://effetch.pages.dev/docs/reference/plugins.md): Every export of @monarcode/effetch/plugins: the built-in plugins and their options. - [FetchTest](https://effetch.pages.dev/docs/reference/fetch-test.md): Every member of the FetchTest namespace: the fake backend for tests and the requests it records. - [Compatibility](https://effetch.pages.dev/docs/reference/compatibility.md): The Effect versions, runtimes and TypeScript versions Effetch supports, and which of them CI tests. - [Limitations](https://effetch.pages.dev/docs/reference/limitations.md): The known limits of paths, plugins and streams, and how to work around them. - [Examples](https://effetch.pages.dev/docs/examples.md): Find a complete program that uses Effetch, typechecked with the package. - [Upgrade from 0.1.0-rc.3](https://effetch.pages.dev/docs/upgrading.md): Move a project's imports to the Fetch namespace with the effetch-migrate command. ## Optional - [Changelog](https://raw.githubusercontent.com/monarcode/effetch/f63a036d91edf84c7699b496d1002aa25f491f54/CHANGELOG.md): What changed in each release, and what to change in your code, as Markdown. - [Source on GitHub](https://github.com/monarcode/effetch): The package's source, its tests and runnable examples. - [Package on npm](https://www.npmjs.com/package/@monarcode/effetch): The published versions of `@monarcode/effetch`.