if you just want to go down to the source:
a simple gist
Stick around, I hope you enjoy it...
The REST API
We are using 2 query points, the first
To retrieve information for all buckets in a cluster
The first query returns a json encoded array of objects so we want to read
foreach response as bucket
And the second
To retrieve the design documents for the specified bucket
Now that we've queried the Design Document for that bucket, we get the Design Document's name, the revision number, and the views that live inside of it.
Told you it was pretty simple,
if you're having troubles understanding the json encoded response, head here and paste the response there for a nice formatting.
Special thanks to @avsej and @scalabl3 for all the help :D