WPCOM.JS
JavaScript API for WordPress
Official JavaScript library for the WordPress.com REST API.
Compatible with Node.js and web browsers.
source on github
Check out more open-source goodness from