The invention provides a novel class of NIR-absorbing biocompatible organic nanoparticles for effective imaging, targeting and treatment of deep-tissue cancers or tumors. The invention enables a new platform for precise cancer- or tumor-targeting theranostics and clinical cancer treatment.