fabricjs/fabric.js ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript canvas library for the browser and Node that makes it easy to draw and edit objects on an HTML5 canvas. I want the basics to work out of the box, like adding shapes, moving them around, scaling, rotating, skewing, grouping, and applying simple controls and interactions. It should also handle common extras like gradients, patterns, brushes, image filters, and animations, plus importing and exporting to JPG, PNG, JSON, and SVG.

Please make it feel polished and practical, with a clean public API, good TypeScript types, and a modular structure so features can be used separately. Support a browser entry point and a Node entry point, and keep the old import style working too if possible. Include tests for the main behaviors, and if you need to check current setup details or compatibility info, look up the latest docs online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab