node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


Breathe Easy

Build Status

An extensible, JavaScript REST client base class.


Breathe Easy is a barebones set of objects for constructing RESTful JavaScript web service consumers.

That being said, it also provides an object called Smoother that removes much of the boilerplate involved in constructing a client.

Basic Usage with Smoother

Include smoother.min.js and you're good to go.

Let's say we want to represent GitHub's users api.

Github ='');
Github.register('User', function() {
  this.member(function() {
    this.setup(function(username) {
      this.username = username;
    this.base(function() {
      return this.username;
u ='benastan');
u.get().done(function(user) { console.log(; });
=> 588040
u.gists().done(function(gists) { console.log(gists[0].description); });
=> Stupid simple rails modals.

Sweet damn! An API Consumer in 10 lines.