An optical device designed to control the properties of electron waves inside an electron microscope demonstrates that clever platforms for integrated photonics need not be powered by expensive laser systems.