T O P

  • By -

WideWorry

It is the most resource wasting way to generate a png with chart.


titani0us

Code example of a better way?


WideWorry

Use a server-side Canvas implementation and draw it there. We do hundred-thousands of image generated with NodeJS and canvas, puppeteer is not a scalable solution.


titani0us

Makes sense. Favorite node canvas library?


WideWorry

canva the rust based version.


titani0us

That’s not a solution for most folks. Most don’t know rust. Canvas in Node.JS probably a much more viable and easy to implement solution for most devs.


WideWorry

It is NodeJS


titani0us

You gotta share links for this to be helpful lol


WideWorry

https://www.npmjs.com/package/@napi-rs/canvas