https://github.com/mapbox/
and it is possible to run the exact setup they charge you for on your own servers using that code. They're basically as open source as a SaaS company could be.