Included in this repository is the implementation of prototype trees in general, but also as elaborated for a particular domain: 2d visual structures rendered via SVG.
A related project, ProtoPedia, is an open diagramming system based on prototype trees, and consitututes a proof of concept for the technology.
A simple test harness, with examples, can be seen over at https://protopedia.org/coreExamples.html. This test harness illustrates direct use of the open source code; ProtoPedia has additional capabilities. Also, documentation can be found at the ProtoPedia site. Sections 4 - 10 in the coding guide cover the workings of prototype trees.
If you fork this repo, have a look at the README for /admin.