Diphenylalanine(FF)-Zn self-assembly (FS) confined in covalent organic polymers (FS@COPs) with efficient fluorescence was synthesizedfor fluorescence sensing of biogenic amines, which was one of the most important indicators for monitoring food freshness. FS@COPs combined excellent biodegradability of self-assembled dipeptide with chemical stability, porosity and targeted site recognition of COPs. With an optimal excitation wavelength of 360 nm and an optimal emission wavelength of 450 nm, FS@COPs could be used as fluorescence probes to rapidly visualize and highly sensitive determination of tryptamine (Try) within 15 min, and the linear range was from 40 to 900 μg L-1 with a detection limit of 63.08 μg kg-1. Importantly, the FS@COPs showed a high fluorescence quantum yield of 11.28%, and good stability, solubility, and selectivity, which could successfully achieve the rapid, accurate and highly sensitive identification of Try. Furthermore, we revealed the mechanism of FS@COPs for fluorescence sensing of targets. The FS@COPs system was applied to the fluorescence sensing of Try in real samples and showed satisfactory accuracy of 93.02%-105.25%.