I’ve knocked up a wee demo which you can find on GitHub here. I won’t go into too much detail, but it’s a quick Node app which you’ll need to install with:
Once you’ve got it all up and running you can run the Express server with:
As I say, this is very much just a little experiment. There are a few JS libraries set up specifically to handle SVG files which I’m going to be looking at over the next week but, for now, check out the repo and let me know your thoughts!