Zeolitic imidazolate framework-8 (ZIF-8) encapsulating enzymatically active biomolecules has emerged as a novel biocompatible nanozyme and offers significant implications for bioanalysis of various biomarkers towards early diagnosis of severe diseases such as cancers. However, the rapid, continuous and scalable synthesis of these nanozymes still remains challenging. In this work, we proposed a novel microfluidic approach for rapid and continuous synthesis of hemin@ZIF-8 nanozyme. By employing a distinctive combination of zigzag-shaped channel and spiral channel with sudden expansion structures, we have enhanced the mixing efficiency within the chip and achieved effective encapsulation of hemin in ZIF-8. The resulting hemin@ZIF-8 nanoparticles exhibit peroxidase-like activity and are capable of detecting free H2O2 with a limit of detection (LOD) as low as 45 nM, as well as H2O2 secreted by viable cells with a detection threshold of approximately 10 cells per mL. By leveraging this method, we achieved successful detection of cancer cells and effective screening of anticancer drugs that induce oxidative stress injury in cancer cells. This innovative microfluidic strategy offers a new avenue for synthesizing functional nanocomposites to facilitate the development of next-generation diagnostic tools for early disease detection and personalized medicine.