# Tesla

> The flexible HTTP client library for Elixir, with middleware and multiple adapters

Source: https://talira.ai/catalog/tesla-17em3bn3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Plugins: yes[^2]
- Backed by: [Elixir Tesla](https://talira.ai/orgs/elixir-tesla.md)

Tesla is an HTTP client library for Elixir built around a middleware stack: you build an API client by composing middleware for base URLs, headers, JSON encoding, authentication, logging, retries and more, over a common interface. The HTTP adapter underneath is swappable (Mint, Finch, Hackney and others), so the same client code runs on whichever one an application uses. It was inspired by Ruby's Faraday.

## Links

- GitHub: https://github.com/elixir-tesla/tesla
- Docs: https://hexdocs.pm/tesla/

## Problems it solves

- build an API client in Elixir with retries, logging and auth as middleware
- switch the HTTP adapter in my Elixir app without rewriting request code
- an HTTP client for Elixir like Ruby's Faraday
- add JSON encoding and base URLs to every request from one client module

## Features

- composable middleware stack
- swappable adapters: Mint, Finch, Hackney and others
- middleware for JSON, auth, logging and retries

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.66, momentum 0.36, community 0.90, backing 0.30, extensibility 0.20.

- last commit 2 days ago
- 61 commits in the last 90 days
- latest release v1.23.0 16 days ago
- 2.1k GitHub stars
- 182 contributors
- backed by Elixir Tesla
- has a plugin system

## Alternatives

- [HTTPoison](https://talira.ai/catalog/httpoison-cgavy63p.md): Yet another HTTP client for Elixir, powered by hackney

## Sources

[^1]: https://github.com/elixir-tesla/tesla/blob/master/LICENSE (checked 23 Nov 2026)
[^2]: https://github.com/elixir-tesla/tesla (checked 23 Nov 2026)
