Hey so I have looked around and have been able to convert my canvas into an dataURL and download it using this function:
function downloadImage(data, filename = 'untitled.jpeg') {
var a = document.createElement('a');
a.href = data;
a.download = filename;
document.body.appendChild(a);
a.click();
}
where
data = canvas.toDataURL("image/jpeg")
but I didn't find any way to convert the canvas into an image link which I could share with other people around the globe. Maybe a post method has to be applied and how could it be? I can also use a node.js online server