We present our recent achievements in the development of an on-chip spectrometer consisting of arrayed waveguide grating made of Si3N4 waveguides and NbN superconducting single-photon detector.