https://github.com/lostisland/faraday_middleware
Various Faraday middlewares for Faraday-based API wrappers
https://github.com/lostisland/faraday_middleware
Keywords from Contributors
activerecord mvc activejob crash-reporting rubygems rspec oauth2 authorization error-monitoring rack
Last synced: about 1 hour ago
JSON representation
Repository metadata
Various Faraday middlewares for Faraday-based API wrappers
- Host: GitHub
- URL: https://github.com/lostisland/faraday_middleware
- Owner: lostisland
- License: mit
- Created: 2010-06-28T20:13:32.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T09:43:40.000Z (9 months ago)
- Last Synced: 2025-12-07T01:28:38.620Z (6 days ago)
- Language: Ruby
- Homepage:
- Size: 437 KB
- Stars: 557
- Watchers: 19
- Forks: 200
- Open Issues: 11
- Releases: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
README.md
Faraday Middleware
A collection of useful Faraday middleware. See the documentation.
gem install faraday_middleware
⚠️ DEPRECATION WARNING ⚠️
As highlighted in Faraday's UPGRADING guide, faraday_middleware is DEPRECATED, and will not be updated to support Faraday 2.0.
If you rely on faraday_middleware in your project and would like to support Faraday 2.0:
- The
jsonmiddleware (request and response) are now both bundled with Faraday 🙌 - The
instrumentationmiddleware is bundled with Faraday - All other middlewares, they'll be re-released as independent gems compatible with both Faraday v1 and v2, look for
awesome-faraday
Most of the middlewares are up for adoption, contributors that would like to maintain them.
If you'd like to maintain any middleware, have any question or need any help, we're here!
Please reach out opening an issue or a discussion.
Dependencies
Ruby >= 2.3.0
As of v0.16.0, faraday and faraday_middleware no longer officially support JRuby or Rubinius.
Some dependent libraries are needed only when using specific middleware:
| Middleware | Library | Notes |
|---|---|---|
| FaradayMiddleware::Instrumentation | activesupport |
|
| FaradayMiddleware::OAuth | simple_oauth |
|
| FaradayMiddleware::ParseXml | multi_xml |
|
| FaradayMiddleware::ParseYaml | safe_yaml |
Not backwards compatible with versions of this middleware prior to faraday_middleware v0.12. See code comments for alternatives. |
| FaradayMiddleware::Mashify | hashie |
|
| FaradayMiddleware::Rashify | rash_alt |
Make sure to uninstall original rash gem to avoid conflict. |
Examples
require 'faraday_middleware'
connection = Faraday.new 'http://example.com/api' do |conn|
conn.request :oauth2, 'TOKEN'
conn.request :json
conn.response :xml, content_type: /\bxml$/
conn.response :json, content_type: /\bjson$/
conn.use :instrumentation
conn.adapter Faraday.default_adapter
end
Owner metadata
- Name: lostisland
- Login: lostisland
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2613464?v=4
- Repositories: 22
- Last ynced at: 2024-03-25T19:32:01.094Z
- Profile URL: https://github.com/lostisland
GitHub Events
Total
- Issues event: 2
- Watch event: 3
- Delete event: 1
- Issue comment event: 2
- Push event: 1
- Pull request event: 1
- Pull request review event: 1
- Fork event: 2
- Create event: 1
Last Year
- Watch event: 2
- Delete event: 1
- Push event: 1
- Pull request event: 1
- Pull request review event: 1
- Fork event: 2
- Create event: 1
Committers metadata
Last synced: 8 days ago
Total Commits: 459
Total Committers: 67
Avg Commits per committer: 6.851
Development Distribution Score (DDS): 0.669
Commits in past year: 1
Committers in past year: 1
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Erik Michaels-Ober | s****k@g****m | 152 |
| Mislav Marohnić | m****c@g****m | 93 |
| Olle Jonsson | o****n@g****m | 44 |
| Mattia | i****a | 27 |
| d-m-u | d****n@g****m | 20 |
| Wynn Netherland | w****d@g****m | 15 |
| Josh Kalderimis | j****s@g****m | 14 |
| Takafumi ONAKA | t****a@g****m | 10 |
| Nathaniel Bibler | g****t@n****m | 5 |
| John Joseph Bachir | j@j****c | 5 |
| Peter Goldstein | p****n@g****m | 4 |
| Steve Agalloco | s****o@g****m | 4 |
| Terence Lee | h****2@g****m | 3 |
| grosser | g****l@g****m | 3 |
| Akinori MUSHA | k****u@i****g | 2 |
| Connor Ford | c****d | 2 |
| Nathaniel Barnes | k****i@g****m | 2 |
| Noah Kantrowitz | n****h@c****t | 2 |
| Stefan Sedich | s****h@g****m | 2 |
| Tyler Hunt | t****r@t****m | 2 |
| Tim Rogers | t****m@g****m | 2 |
| slainer68 | s****8@g****m | 1 |
| Sebastian Edwards | s****y@g****m | 1 |
| Roman Gusev | g****e@g****m | 1 |
| Peter Williams | w****s@g****m | 1 |
| Micah Cooper | m****r@g****m | 1 |
| Marty Zalega | e****y@g****m | 1 |
| Adam Hawkins | me@b****m | 1 |
| RJ Pittman | r****n@c****m | 1 |
| Akil Burgess | a****s@g****m | 1 |
| and 37 more... | ||
Committer domains:
- starkast.net: 1
- lislis.de: 1
- ruby-lang.org: 1
- 7vn.ru: 1
- timrogers.co.uk: 1
- sema.in: 1
- annesley.cc: 1
- customink.com: 1
- broadcastingadam.com: 1
- github.com: 1
- gocardless.com: 1
- tylerhunt.com: 1
- coderanger.net: 1
- idaemons.org: 1
- jjb.cc: 1
- nathanielbibler.com: 1
Issue and Pull Request metadata
Last synced: 18 days ago
Total issues: 30
Total pull requests: 81
Average time to close issues: about 1 year
Average time to close pull requests: 3 months
Total issue authors: 21
Total pull request authors: 19
Average comments per issue: 2.27
Average comments per pull request: 0.95
Merged pull request: 68
Bot issues: 0
Bot pull requests: 0
Past year issues: 3
Past year pull requests: 6
Past year average time to close issues: 2 days
Past year average time to close pull requests: 18 minutes
Past year issue authors: 3
Past year pull request authors: 2
Past year average comments per issue: 2.33
Past year average comments per pull request: 1.67
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- olleolleolle (9)
- iMacTia (2)
- nroose (1)
- justinfrench (1)
- kyvision (1)
- stevelacey (1)
- timrogers (1)
- graaff (1)
- 19r3ka (1)
- vchepkov (1)
- dwery (1)
- doutatsu (1)
- ivy (1)
- zenspider (1)
- feihokpai (1)
Top Pull Request Authors
- olleolleolle (32)
- d-m-u (23)
- onk (9)
- iMacTia (5)
- return-nil (2)
- AlexWayfer (2)
- petergoldstein (2)
- tomtaylor (1)
- masciugo (1)
- payk24 (1)
- dalthon (1)
- kfazinic (1)
- Be-ngt-oH (1)
- utkarsh2102 (1)
- dasch (1)
Top Issue Labels
- info (3)
- unconfirmed (3)
- Help Wanted (3)
- good first issue (3)
- bug (3)
- feature (2)
Top Pull Request Labels
- feature (3)
- unconfirmed (1)
- bug (1)
Package metadata
- Total packages: 6
-
Total downloads:
- rubygems: 824,763,292 total
- Total docker downloads: 1,322,413,444
- Total dependent packages: 1,832 (may contain duplicates)
- Total dependent repositories: 46,353 (may contain duplicates)
- Total versions: 159
- Total maintainers: 5
gem.coop: faraday_middleware
Various middleware for Faraday
- Homepage: https://github.com/lostisland/faraday_middleware
- Documentation: http://www.rubydoc.info/gems/faraday_middleware/
- Licenses: MIT
- Latest release: 1.2.1 (published about 1 year ago)
- Last Synced: 2025-12-07T12:03:28.693Z (5 days ago)
- Versions: 49
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 412,350,933 Total
- Docker Downloads: 661,206,722
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.019%
- Downloads: 0.057%
- Maintainers (3)
rubygems.org: faraday_middleware
Various middleware for Faraday
- Homepage: https://github.com/lostisland/faraday_middleware
- Documentation: http://www.rubydoc.info/gems/faraday_middleware/
- Licenses: MIT
- Latest release: 1.2.1 (published about 1 year ago)
- Last Synced: 2025-12-07T15:01:30.891Z (5 days ago)
- Versions: 49
- Dependent Packages: 1,830
- Dependent Repositories: 46,353
- Downloads: 412,356,056 Total
- Docker Downloads: 661,206,722
-
Rankings:
- Dependent packages count: 0.03%
- Downloads: 0.052%
- Dependent repos count: 0.156%
- Docker downloads count: 0.187%
- Average: 0.786%
- Forks count: 1.877%
- Stargazers count: 2.416%
- Maintainers (3)
proxy.golang.org: github.com/lostisland/faraday_middleware
- Homepage:
- Documentation: https://pkg.go.dev/github.com/lostisland/faraday_middleware#section-documentation
- Licenses: mit
- Latest release: v1.2.1 (published about 1 year ago)
- Last Synced: 2025-12-07T15:02:02.168Z (5 days ago)
- Versions: 50
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 1.893%
- Stargazers count: 2.502%
- Average: 6.193%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
gem.coop: agiley-faraday_middleware
Various middleware for Faraday
- Homepage: https://github.com/lostisland/faraday_middleware
- Documentation: http://www.rubydoc.info/gems/agiley-faraday_middleware/
- Licenses: MIT
- Latest release: 0.9.1 (published over 12 years ago)
- Last Synced: 2025-12-07T15:01:26.557Z (5 days ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 26,389 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 11.206%
- Downloads: 33.619%
- Maintainers (1)
rubygems.org: agiley-faraday_middleware
Various middleware for Faraday
- Homepage: https://github.com/lostisland/faraday_middleware
- Documentation: http://www.rubydoc.info/gems/agiley-faraday_middleware/
- Licenses: MIT
- Latest release: 0.9.1 (published over 12 years ago)
- Last Synced: 2025-12-07T15:02:00.310Z (5 days ago)
- Versions: 5
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 26,389 Total
-
Rankings:
- Forks count: 1.674%
- Stargazers count: 2.208%
- Dependent packages count: 7.713%
- Average: 16.168%
- Downloads: 22.464%
- Dependent repos count: 46.782%
- Maintainers (1)
rubygems.org: faraday_middleware_safeyaml
Various middleware for Faraday - forked to fix security issue (Waiting on https://github.com/lostisland/faraday_middleware/pull/157)
- Homepage: https://github.com/lostisland/faraday_middleware
- Documentation: http://www.rubydoc.info/gems/faraday_middleware_safeyaml/
- Licenses: MIT
- Latest release: 0.12.pre.safeyaml (published over 8 years ago)
- Last Synced: 2025-12-07T15:01:29.226Z (5 days ago)
- Versions: 1
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 3,525 Total
-
Rankings:
- Dependent packages count: 14.595%
- Dependent repos count: 45.286%
- Average: 45.913%
- Downloads: 77.86%
- Maintainers (1)
Dependencies
- addressable < 2.4 development
- brotli >= 0.1.8 development
- hashie >= 1.2 development
- json < 3 development
- multi_xml >= 0.5.3 development
- rack < 2 development
- rack-cache >= 1.1, < 1.3 development
- rake >= 12.3.3 development
- rash_alt >= 0.4.3 development
- rspec >= 3 development
- rubocop ~> 1.12.0 development
- rubocop-packaging ~> 0.4 development
- rubocop-performance ~> 1.5.2 development
- safe_yaml >= 0 development
- simple_oauth >= 0.1, < 0.3 development
- simplecov ~> 0.12.0 development
- webmock ~> 2.3 development
- faraday ~> 1.0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 32.034257110770305