A compact and low-cost laser induced fluorescence (LIF) detector based on confocal structure for capillary flow systems was developed and applied for analysis of Her2 protein on single Hela cells. A low-power and low-cost 450?nm laser diode (LD) instead of a high quality laser was used as excitation light source. A compact optical design together with shortened optical path length improved the optical efficiency and detection sensitivity. A superior silicon based photodetector assembly was used for fluorescence detection instead of a photomultiplier (PMT). The limit of detection (LOD) for fluorescein sodium was 3?×?10(-12) M or 165 fluorescein molecules in detection volume measured on a homemade capillary electroosmotic driven (EOD)-LIF system, which was similar to commercial LIFs. Compared to commercial LIFs, the whole volume of our LIF was reduced to 1/2-1/3, and the cost was less than 1/3 of them.