On-chip quantum and nonlinear optics: from squeezing to spectroscopy