Greasy Fork is open source (GPLv3 licensed). You can view its source on GitHub.