DragSelect
An easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop. – Examples:
No-build verifiedActive0 dependenciesESM + script tagTypes bundledGPL-3.0
Facts
| Size | 46.5 KB minified, 11.2 KB gzipped (dist/DragSelect.js) |
|---|---|
| Licence | GPL-3.0 |
| Dependencies | none |
| Last release | v3.1.4, October 2026 |
| Last activity | 2026-10-29 (Active) |
| Stars | 768 on GitHub |
| Formats | ES module; classic script (global DragSelect); TypeScript types in the package |
| CDN hits | 2,491 a month on jsDelivr |
| npm downloads | 46,560 a month |
| Gates | G1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v3.1.4 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/DragSelect.js"
integrity="sha384-J6cv0sQCRCOqSrqRnCRcW1tBm4UG6FmoNxHOFpBteWe0yHKsjL860tREJIQEPxuH" crossorigin="anonymous"></script>import DragSelect from "https://cdn.jsdelivr.net/npm/[email protected]/dist/DragSelect.esm.js";Advertisement
Related libraries
- Croppr.js A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
- PulltoRefresh.js A quick and powerful plugin for your pull-to-refresh needs in your webapp.
- Slip Slip.js — UI library for manipulating lists via swipe and drag gestures
Entry 147 in the directory. Facts refreshed monthly; last run 2026-10-30.