req

Req is a batteries-included HTTP client for Elixir. (by wojtekmach)

Req Alternatives

Similar projects and alternatives to req

  1. zigler

    12 req VS zigler

    zig nifs in elixir

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. finch

    5 req VS finch

    Elixir HTTP client, focused on performance (by sneako)

  4. httpotion

    0 req VS httpotion

    [Deprecated because ibrowse is not maintained] HTTP client for Elixir (use Tesla please)

  5. activitypub

    0 req VS activitypub

    Haskell ActivityPub server library (by lukehoersten)

  6. mint

    4 req VS mint

    Functional HTTP client for Elixir with support for HTTP/1 and HTTP/2 🌱 (by elixir-mint)

  7. tesla

    4 req VS tesla

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

  8. HttpBuilder

    A DSL for building chainable, composable HTTP requests. API structure taken from the lovely elm-http-builder

  9. magicbane

    0 req VS magicbane

    Discontinued A web framework that integrates Servant, EKG, fast-logger, wai-cli… | now on https://codeberg.org/valpackett/magicbane

  10. aeson

    9 req VS aeson

    A fast Haskell JSON library

  11. httpoison

    4 req VS httpoison

    Yet Another HTTP client for Elixir powered by hackney

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better req alternative or higher similarity.

req discussion

Log in or Post with

req reviews and mentions

Posts with mentions or reviews of req. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-10-15.
  • Using zstandard on-the-fly (de)compression in Elixir
    2 projects | dev.to | 15 Oct 2025
    We use Req, one of the best Elixir libraries. We send the response body to the field :into where a function - that respects Req's specs - is waiting to process the received streams.
  • Notes on streaming downloads with progress in Elixir
    3 projects | dev.to | 2 May 2024
    We will use the Req library, a superset of Finch, which is itself a superset of Mint.
  • How to implement a disk cache plugin for Elixir's Req HTTP client?
    5 projects | news.ycombinator.com | 17 Aug 2023
    > no error checking at all (I assume it just panics or exception?)

    In Elixir, bang functions per convention will raise on error. `get/2` will return error tuples allowing you to handle errors. In fact, get!/2 just calls get/2 and raises for you[^1].

    > no mention of JSON at all

    Req is the most "batteries included" Elixir HTTP lib out there. I can't speak for Wojtek, but I believe the goal was to make Req extremely easy to use in scripting or things like LiveBook without having to do much work. That being said, the automatic decoding is mentioned in the readme[^2] and the docs[^3].

    > if "body" is JSON, how do you even get the raw body, or can you?

    Per the docs[^3], you can either skip with a `:raw` option, or just build your own request using only the steps you want.

    > just seems over engineered/over fitted whatever you want to call it.

    Fair, but again, this library is designed to be on that end of the spectrum. There are plenty of other libraries further down the stack that you can use. I am partial to Finch[^4], upon which Req is built.

    To address the sibling comment about "Let it Crash", the language allows you to easily recover from crashes, but that is for resiliency, not error handling. In practice you would use the non-bang get/2, pattern match on the response, handle any errors, perhaps use Kernel.get_in/2 to safely traverse the map, etc. The example provided by the author is not "production ready".

    [^1]: https://github.com/wojtekmach/req/blob/v0.3.11/lib/req.ex#L3...

  • A Breakdown of HTTP Clients in Elixir
    1 project | news.ycombinator.com | 25 Jul 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic req repo stats
5
1,315
8.5
6 days ago

wojtekmach/req is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of req is Elixir.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Elixir is
the 21st most popular programming language
based on number of references?