An open platform for diagrams, based on prototype trees