Traverson makes it easy to work with REST/HATEOAS APIs. It works in Node.js as well as in the browser. This example talks to the local Traverson test server.
There is also the GitHub API Example.
You need to start the test server contained in the Traverson repository with node bin/start-test-server.js. This serves this page as well as the REST API that is used in the examples. Open the URL http://localhost:2808/static/browser/example in your browser. If the URL in your browser's address bar says file:... the examples on this page will not work.