DrawingJS is a javascript library that make's drawing shapes and lines on HTML Canvas simple.
npm install @rvancuren/drawing-js
Have at it! This was a utility build for an application I'm working on and thought it would be great to open source.
Visit https:://drawing-js.app for full documentation.