Phage display enables screening of billions of peptides comprised mainly of natural amino acids. Now, a method to attach and encode a range of structurally diverse compounds has been reported. This method can expand the chemical space covered by phage display peptide libraries.