Some experimental mapreduce code (node.js required)