Purest

REST API Client

Hardcoding values is BAD

Requiring modules is GOOD

 

or is it?

require() means hardcoding:

  • We are bound not only to certain interface, but to a certain implementation as well

  • Our browser bundle gets fat

require() is EVIL

Ideally require() should be used only in the

end user application

Matryoshka

Browserify all the things

Module Size
request 1.8 MB
node-fetch 759 KB
wreck 683 KB
got 212 KB
http/https 190 KB
jquery.ajax.min 42 KB
superagent 32 KB
purest 19 KB
natty 16 KB

Query API

Basic API

Refresh Access Token

Request to our own Server

Aliases

Methods

Promises

Loose ends

OAuth, Multipart, Streaming, ...

The END

Purest

By Simeon Velichkov

Purest

REST API Client

  • 438