We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Any easy library I could use to export my sketch canvas?
To my knowledge, no, although some crazy guy might have coded a JS library for these purpose.
For the record, Highcharts, a professional charting library, exports the charts to PDF by sending requests to a server, where they re-render the JS code via an off-line browser (PhantomJS).
we are working on something like that for the future, but right now you might check out one of these: https://github.com/gliffy/canvas2svg, https://github.com/MrRio/jsPDF
here's an in progress preview of the p5-svg experiment: