konvajs/konva ? reverse-engineered prompt

Reverse engineered prompt

Build me a JavaScript canvas library for the web that lets people create interactive graphics, editors, and diagrams. I want to be able to add a stage, put layers on it, draw shapes like rectangles and circles, and then move, resize, rotate, and drag them around independently.

It should support smooth animations, mouse and touch events, nesting shapes inside groups, layering, simple filtering and caching, and be able to handle lots of shapes without feeling slow. Please include a clean API that works in modern browsers, can be used from a script tag or imported in a project, and has TypeScript types too.

I’d also like basic support for running in Node when a canvas backend is installed, plus tests and a build setup so the library can be compiled into a distributable bundle. If anything is unclear, look up the current docs online and match the common Konva style of usage.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab