Secret User Agent of HTTP
Ruby Shell
Clone or download
technoweenie Merge pull request #51 from alyssais/readme
Write a descriptive README
Latest commit 13b6dd6 May 12, 2017


Sawyer is an experimental hypermedia agent for Ruby built on top of Faraday.


Add this line to your application's Gemfile:

gem 'sawyer'

And then execute:


Or install it yourself as:

gem install sawyer


require "sawyer"

# Create a Sawyer agent
agent ="",

# Fetch the root of the API
root =

# Access a resource directly
contributors =, "repos/lostisland/sawyer/contributors").data

# Load a hypermedia relation
top_contributor = contributors.first
followers = top_contributor.rels[:followers]

For more information, check out the documentation.


After checking out the repo, run script/test to bootstrap the project and run the tests. You can also run script/console for an interactive prompt that will allow you to experiment.

To package the gem, run script/package. To release a new version, update the version number in lib/sawyer.rb, and then run script/release, which will create a git tag for the version, push git commits and tags, and push the .gem file to


Check out the contributing guide for more information on contributing.


The gem is available as open source under the terms of the MIT License.