Adam Garrett-Harris

Google Bookshelves Widget

June 02, 2014

I have previously made a Google Bookshelves Wordpress plugin, but since I’m not using Wordpress anymore, I thought I would build basically the same thing in JavaScript. The code of the old one is horrible and it basically just builds out the html inside the php. It doesn’t use ajax, and it can only show up to 40 books.

So, this time it uses ajax and it loads your entire bookshelf (or up to the limit you specify) using multiple requests to Google if necessary. And it also uses Handlebars for the layouts, making it easy to create your own layout beyond the 3 that I provide by default (grid, column, and description).

Check it out on GitHub


Adam Garrett-Harris

Written by Adam Garrett-Harris who lives and works in Silicon Slopes. You should follow him on Twitter