GitHub repository: wangcheng678/color-thief
Description: Grab the color palette from an image using just Javascript.  Works in the browser and in Node.