Here we show our latest progress in the field of a single-photon spectrometer for the visible and infrared wavelengths ranges implementation. We consider three different on-chip approaches: a coherent spectrometer with a low power of the heterodyne, a coherent spectrometer with a high power of the heterodyne, and an eight-channel single-photon spectrometer for direct detection. Along with high efficiency, spectrometers show high detection efficiency and temporal resolution through the use of waveguide integrated superconducting nanowire single-photon detectors