
faraday
Simple, but flexible HTTP client library, with support for multiple backends.
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Oct 2026
Faraday is the standard HTTP client for Ruby, the layer GitHub's own Octokit gem sits on. You set up a connection once (base URL, headers, auth) and every request passes through a stack of middleware, the same Rack idea Rails uses on the server, so logging, JSON parsing, auth headers and raising on errors each live in one small plug-in instead of being copied into every call. MIT licensed and completely free.
Setup is gem 'faraday'. It runs on Ruby's built-in Net::HTTP by default and supports Ruby 3.0+. Since 2.0 the other adapters (Typhoeus, Excon, Patron and friends) and most middleware moved into separate gems, so retries mean adding faraday-retry. JSON request and response handling still ships in core. There is no paid tier. Solo, small teams, larger teams: free. Simpler scripts are fine with HTTParty or plain Net::HTTP; Faraday earns its keep when you're writing an API client other people will use.
The catch: 2026 brought three security advisories. A path like //evil.com could swap the base host and carry your Authorization header along, the first fix missed URI objects, and deeply nested query strings could crash a worker. Run 2.14.3 or later (1.10.6 on 1.x).
Free vs Self-Hosted vs Paid
fully freeFree: The whole library, MIT licensed, installed with gem 'faraday'. Core includes the Net::HTTP adapter plus JSON, URL-encoding, authorization, instrumentation, logging and raise-error middleware.
Self-hosted: Nothing to host. It's a Ruby gem (Ruby 3.0+). Extra adapters (Typhoeus, Excon, Patron, HTTPClient and others) and middleware such as retries are separate free gems listed in Awesome Faraday.
Paid: No paid tier, no commercial edition, no hosted service.
Free at every size. The only cost is keeping it at 2.14.3 or later so you have the 2026 SSRF and nested-params DoS fixes.
What to do by team size
- Solo
- free; one line in your Gemfile
- Small team
- free; standardize every outbound API call on one middleware stack
- Medium team
- free; pin to 2.14.3+ and add faraday-retry
- Large team
- free; audit for 1.x pins and old versions with the 2026 advisories
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT License
Use freely, including commercial. Just keep the license.
Commercial use: ✓ Yes
About
- Owner
- lostisland (Organization)
- Stars
- 5,953
- Forks
- 1,030
Also by lostisland
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
392.8k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
286.7k ★DeepSeek Harness
DeepSeek Harness: Everything is a Plugin.
258.6k ★