The lib and the api for threegraphs