plainJS

Libraries / Inputs

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

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size46.5 KB minified, 11.2 KB gzipped (dist/DragSelect.js)
LicenceGPL-3.0
Dependenciesnone
Last releasev3.1.4, October 2026
Last activity2026-10-29 (Active)
Stars768 on GitHub
FormatsES module; classic script (global DragSelect); TypeScript types in the package
CDN hits2,491 a month on jsDelivr
npm downloads46,560 a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/DragSelect.js"
        integrity="sha384-J6cv0sQCRCOqSrqRnCRcW1tBm4UG6FmoNxHOFpBteWe0yHKsjL860tREJIQEPxuH" crossorigin="anonymous"></script>
jsES module import
import DragSelect from "https://cdn.jsdelivr.net/npm/[email protected]/dist/DragSelect.esm.js";
Advertisement

Entry 147 in the directory. Facts refreshed monthly; last run 2026-10-30.