{"id":15031331,"url":"https://github.com/shopify/draggable","last_synced_at":"2025-09-09T20:47:34.060Z","repository":{"id":37549492,"uuid":"105036236","full_name":"Shopify/draggable","owner":"Shopify","description":"The JavaScript Drag \u0026 Drop library your grandparents warned you about.","archived":false,"fork":false,"pushed_at":"2025-08-21T15:29:07.000Z","size":5783,"stargazers_count":18342,"open_issues_count":165,"forks_count":1111,"subscribers_count":610,"default_branch":"main","last_synced_at":"2025-08-28T17:04:35.122Z","etag":null,"topics":["drag-and-drop","draggable","es6","javascript"],"latest_commit_sha":null,"homepage":"https://shopify.github.io/draggable","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-27T15:31:23.000Z","updated_at":"2025-08-27T16:45:01.000Z","dependencies_parsed_at":"2025-04-15T16:16:24.450Z","dependency_job_id":"d0b7cecc-90fd-4f50-912f-6aaebc0af0a9","html_url":"https://github.com/Shopify/draggable","commit_stats":{"total_commits":350,"total_committers":48,"mean_commits":7.291666666666667,"dds":0.4057142857142857,"last_synced_commit":"863e3e1c11d9136a144b75c6d5e75fe2e6255724"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/Shopify/draggable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fdraggable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fdraggable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fdraggable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fdraggable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/draggable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fdraggable/sbom","scorecard":{"id":129269,"data":{"date":"2025-07-21","repo":{"name":"github.com/Shopify/draggable","commit":"1e5a9f541f452ae87d6bacfe8469e38fde90de97"},"scorecard":{"version":"v5.2.1-23-gc890b972","commit":"c890b9726ee1b17d989f84e79873b38836e8e6fa"},"score":4.2,"checks":[{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:15","Warn: no topLevel permission defined: .github/workflows/changelog.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/cla.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/snapit.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/cla.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Shopify/draggable/cla.yml/main?enable=pin","Info:  11 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   8 out of   9 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/Shopify/.github/SECURITY.md:1","Info: Found linked content: github.com/Shopify/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/Shopify/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"59 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-7gc6-qh9x-w6h8","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-r7jx-5m6m-cpg9","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c890b9726ee1b17d989f84e79873b38836e8e6fa/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T04:50:56.516Z","repository_id":37549492,"created_at":"2025-08-16T04:50:56.522Z","updated_at":"2025-08-16T04:50:56.522Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274359070,"owners_count":25270688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drag-and-drop","draggable","es6","javascript"],"created_at":"2024-09-24T20:15:27.201Z","updated_at":"2025-09-09T20:47:34.032Z","avatar_url":"https://github.com/Shopify.png","language":"JavaScript","readme":"[![npm version](https://img.shields.io/npm/v/@shopify/draggable.svg?label=@shopify/draggable)](https://www.npmjs.com/package/@shopify/draggable) [![CI](https://github.com/shopify/draggable/workflows/CI/badge.svg)](https://github.com/Shopify/draggable/actions?query=branch%3Amain) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Shopify/draggable/blob/main/CONTRIBUTING.md) ![Bundle size](https://img.shields.io/badge/Bundle%20size-16.2kB-red.svg)\n\n\u003ca href=\"https://shopify.github.io/draggable\" title=\"Visit Draggable website\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/643944/35602291-99e2c56e-0605-11e8-847f-95f1f6be1610.jpg\" alt=\"\"\u003e\n\u003c/a\u003e\n\n# Development\n\n**Draggable is no longer maintained by its original authors.** Maintenance of this repo has been passed on to new collaborators and is no longer worked on by anyone at Shopify.\n\n**We are still looking for more maintainers!** If anyone is interested in answering / triaging issues, reviewing / rejecting / approving PRs, and authoring code for bug fixes / new features — please send an email to `max.hoffmann (at) shopify (dot) com`. You may be asked a few questions before obtaining collaboration permission, but if everything checks out, we will happily add you as a collaborator.\n\n---\n\nGet complete control over drag and drop behaviour with Draggable! Draggable abstracts\nnative browser events into a comprehensive API to create a custom drag and drop experience.\n`Draggable` comes with additional modules: `Sortable`, `Droppable`, `Swappable`. Draggable\nitself does not perform any sorting behaviour while dragging, but does the heavy lifting, e.g.\ncreates mirror, emits events, manages sensor events, makes elements draggable.\n\nThe additional modules are built on top of `Draggable` and therefore provide a similar API\ninterface, for more information read the documentation below.\n\n**Features**\n\n- Works with native drag, mouse, touch and force touch events\n- Can extend dragging behaviour by hooking into draggables event life cycle\n- Can extend drag detection by adding sensors to draggable\n- The library is targeted ES6 first\n\n## Table of Contents\n\n- [Install](#install)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Roadmap](#roadmap)\n- [Copyright](#copyright)\n\n## Install\n\nYou can install the library via npm.\n\n```bash\nnpm install @shopify/draggable --save\n```\n\nor via yarn:\n\n```bash\nyarn add @shopify/draggable\n```\n\nor via CDN\n\n```html\n\u003c!-- Entire bundle --\u003e\n\u003cscript type=\"module\"\u003e\n  import {\n    Draggable,\n    Sortable,\n    Droppable,\n    Swappable,\n  } from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/index.mjs';\n\u003c/script\u003e\n\u003c!-- Draggable only --\u003e\n\u003cscript type=\"module\"\u003e\n  import Draggable from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/Draggable/Draggable.mjs';\n\u003c/script\u003e\n\u003c!-- Sortable only --\u003e\n\u003cscript type=\"module\"\u003e\n  import Sortable from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/Sortable/Sortable.mjs';\n\u003c/script\u003e\n\u003c!-- Droppable only --\u003e\n\u003cscript type=\"module\"\u003e\n  import Droppable from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/Droppable/Droppable.mjs';\n\u003c/script\u003e\n\u003c!-- Swappable only --\u003e\n\u003cscript type=\"module\"\u003e\n  import Swappable from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/Swappable/Swappable.mjs';\n\u003c/script\u003e\n\u003c!-- Plugins only --\u003e\n\u003cscript type=\"module\"\u003e\n  import * as Plugins from 'https://cdn.jsdelivr.net/npm/@shopify/draggable/build/esm/Plugins/index.mjs';\n\u003c/script\u003e\n\u003c!-- UMD browser --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable/build/umd/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  console.log(window.Draggable);\n\u003c/script\u003e\n```\n\n## Browser Compatibility\n\nCheck the \"browserlist\" property in [package.json](https://github.com/Shopify/draggable/blob/main/package.json#L88) for more info\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |\n| Last 3 versions ✔                                                                       | Last 3 versions ✔                                                                          | Last 3 versions ✔                                                                    | Last 3 versions ✔                                                                       | Last 3 versions ✔                                                                 |\n\n## Documentation\n\nYou can find the documentation for each module within their respective directories.\n\n- [Draggable](src/Draggable)\n  - [DragEvent](src/Draggable/DragEvent)\n  - [DraggableEvent](src/Draggable/DraggableEvent)\n  - [Plugins](src/Draggable/Plugins)\n    - [Announcement](src/Draggable/Plugins/Announcement)\n    - [Focusable](src/Draggable/Plugins/Focusable)\n    - [Mirror](src/Draggable/Plugins/Mirror)\n    - [MirrorEvent](src/Draggable/Plugins/Mirror/MirrorEvent)\n    - [Scrollable](src/Draggable/Plugins/Scrollable)\n  - [Sensors](src/Draggable/Sensors)\n    - [DragSensor](src/Draggable/Sensors/DragSensor)\n    - [ForceTouchSensor](src/Draggable/Sensors/ForceTouchSensor)\n    - [MouseSensor](src/Draggable/Sensors/MouseSensor)\n    - [Sensor](src/Draggable/Sensors/Sensor)\n    - [SensorEvent](src/Draggable/Sensors/SensorEvent)\n    - [TouchSensor](src/Draggable/Sensors/TouchSensor)\n- [Droppable](src/Droppable)\n  - [DroppableEvent](src/Droppable/DroppableEvent)\n- [Plugins](src/Plugins)\n  - [Collidable](src/Plugins/Collidable)\n  - [ResizeMirror](src/Plugins/ResizeMirror)\n  - [Snappable](src/Plugins/Snappable)\n  - [SwapAnimation](src/Plugins/SwapAnimation)\n  - [SortAnimation](src/Plugins/SortAnimation)\n- [Sortable](src/Sortable)\n  - [SortableEvent](src/Sortable/SortableEvent)\n- [Swappable](src/Swappable)\n  - [SwappableEvent](src/Swappable/SwappableEvent)\n\n### TypeScript\n\nDraggable includes [TypeScript](http://typescriptlang.org) definitions.\n\n[Documentation](doc/typescript.md)\n\n## Running examples\n\nTo run the `examples` project locally, simply run the following from the `draggable` root:\n\n```bash\nyarn \u0026\u0026 yarn start\n```\n\nThis will start a server that hosts the contents of `examples/`. It also watches for file\nchanges from both `src/` and `examples/src` and reloads the browser.\n\n## Contributing\n\nContributions are more than welcome, the code base is still new and needs more love.\n\nFor more information, please checkout the [contributing document](https://github.com/Shopify/draggable/blob/main/CONTRIBUTING.md).\n\n## Related resources\n\n- [Ember CLI Shim](https://github.com/timrourke/ember-cli-shopify-draggable-shim) on Github by [@timrourke](https://github.com/timrourke)\n- [Ember CLI Shim](https://www.npmjs.com/package/ember-cli-shopify-draggable-shim) on NPM by [@timrourke](https://github.com/timrourke)\n\n## Copyright\n\nCopyright (c) 2018-present Shopify. See LICENSE.md for further details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fdraggable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopify%2Fdraggable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fdraggable/lists"}