Grab the color palette from an image using just Javascript. Works in the browser and in Node.
THE original Lightbox script (v2).
A node.js module for color quantization, based on Leptonica.