I've open-sourced all the software I use to create this site. It consists of four parts.