A reaction between levulinic acid, isocyanides and primary amines has been examined in distilled water and in surfactants solutions. It is demonstrated that the reaction gives good results at the different concentrations including one well above the solubility limit. A simple and eco-friendly protocol for libraries production is described.