Advances in personalized medicine are symbiotic with the development of novel technologies for biomedical devices. We present an approach that combines enhanced imaging of malignancies, therapeutics, and feedback about therapeutics in a single implantable, biocompatible, and resorbable device. This confluence of form and function is accomplished by capitalizing on the unique properties of silk proteins as a mechanically robust, biocompatible, optically clear biomaterial matrix that can house, stabilize, and retain the function of therapeutic components. By developing a form of high-quality microstructured optical elements, improved imaging of malignancies and of treatment monitoring can be achieved. The results demonstrate a unique family of devices for in vitro and in vivo use that provide functional biomaterials with built-in optical signal and contrast enhancement, demonstrated here with simultaneous drug delivery and feedback about drug delivery with no adverse biological effects, all while slowly degrading to regenerate native tissue.