All of the zx spectrum code by Jari Komppa, and most (if not all) source code for those are on github under ridiculously liberal licenses.
Powered by jsspeccy2 javascript speccy emulator.