frontend code for peer library platform