A modular approach to introduce function into single-chain polymeric nanoparticles.