bevacqua/dragula ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple drag and drop library for web pages that lets people move items between multiple lists with almost no setup.

I want it to work in plain JavaScript, with a small demo page where you can drag items from one column to another, reorder items inside a column, and see a clear shadow showing where the item will land. It should also support touch screens, handle clicks normally when you are not dragging, and let me choose whether items are moved or copied. If something gets dropped outside a valid area, it should either go back or be removed depending on the setting.

Please include the basic styles needed for it to work, plus a clean example page I can open in the browser and try right away. Keep the API very simple, make it easy to plug into vanilla apps, and if you need to check current browser or build docs online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab