This reminds me of a self contained svg editor running in the browser , that I wrote a few years ago.