An implantable optogenetic stimulator wirelessly powered by flexible photovoltaics with near-infrared (NIR) light.