client-side library compile