Biocompatible polyaniline nanocomposites build a soft interface between biology and opto-electronics.