finds.dev

bevacqua/dragula

Drag and drop so simple it hurts

View on GitHubHomepage ↗

★ 22,146JavaScriptMITupdated Jun 2024

// the take

Dragula is a vanilla JavaScript drag-and-drop library from 2015 that requires zero configuration to get basic list reordering working. It predates the HTML5 drag-and-drop API's widespread adoption and filled a real gap when it was written. Today it's a legacy choice — the last real release was years ago, and the ecosystem has moved on.

The API surface is genuinely small: one function call with optional callbacks, no mandatory CSS classes to wire up beyond the bundled stylesheet. The shadow preview that shows where an element will land is implemented correctly and feels natural. Touch event support was ahead of its time when this shipped. The event model covers every meaningful state transition (drag, drop, cancel, remove, shadow, over, out, cloned) without forcing you into a framework lifecycle.

The project is effectively unmaintained — no releases since 2017, hundreds of open issues, and the Slack support channel link in the README is dead. It commits dist files to the repo, which is a red flag for a library. No TypeScript types in the package itself (community @types exist but lag). The `direction` option is binary (vertical or horizontal) with no support for grid/free-form layouts, which means any 2D drag scenario requires you to work around the library rather than with it. The Angular 1 bridge being listed as 'official' tells you how old the mental model is.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
22,146
Forks
1,930
Language
JavaScript
License
MIT
Last commit
7 Jun 2024

// nearby

If dragula isn't quite it.

All repos →