This article describes the fabrication and properties of a single-photon detector made of a superconducting NbN nanowire.It also discusses suitable materials for future high-performance detectors and describes new fabrication processes for MgB 2 nanowire.