Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem?
SVG
Most compatible way would be a round-trip to the server. You could also use a data: URI in some browsers.