They seem to be built with some love by the author. Apparently they have written it in Haxe, judging from the comment in the page source.
Besides figuring out a good way of dealing with reference frames, the only trick I'd pass on is to use CSS variables to change colors and sizes (line widths, arrow dimensions, etc.) interactively. It definitely helps to tighten the feedback loop on those decisions.