Possessing intriguing optoelectronic properties, metal halide perovskites can serve as a large-scale platform for miniaturized photonic circuits with on-chip active devices such as lasers and detectors.