Can somebody assist me in locating a suitable JS library that is capable of generating a product sketch similar to this one: Partition sketch? I am currently using Next.js, and I am encountering difficulties with most libraries due to Next.js utilizing SSR while graphical libraries typically run on the client side. It is not necessary for the sketch to be displayed to the user; rather, it should just be a downloadable SVG file based on the user's input from the webpage.
Ideally, I would like it to be in PDF format so it can be directly sent to a customer, containing all the necessary information along with the sketch. Is this achievable?
I have experimented with Rhino3dm.js and P5.js, but found them challenging to integrate with Next.js.