npm i @arch-inc/fabricjs-layer
For more details on how to use this library, please refer to the following documents.
A simple drawing app with layer support. (Eraser would NOT work as intended due to the Fabric.js specification. It is utilizing globalCompositeOperation.)
globalCompositeOperation