{"id":28364271,"url":"https://github.com/incomplete-infinity/draggable","last_synced_at":"2025-06-24T01:30:37.528Z","repository":{"id":232964737,"uuid":"754844677","full_name":"Incomplete-Infinity/draggable","owner":"Incomplete-Infinity","description":"A third-party library for making draggable UI components. ","archived":false,"fork":false,"pushed_at":"2024-04-11T14:41:01.000Z","size":5312,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T23:09:32.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Incomplete-Infinity.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}},"created_at":"2024-02-08T21:44:40.000Z","updated_at":"2024-03-13T22:57:07.000Z","dependencies_parsed_at":"2024-04-19T00:41:27.962Z","dependency_job_id":null,"html_url":"https://github.com/Incomplete-Infinity/draggable","commit_stats":null,"previous_names":["incomplete-infinity/draggable"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/Incomplete-Infinity/draggable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incomplete-Infinity%2Fdraggable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incomplete-Infinity%2Fdraggable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incomplete-Infinity%2Fdraggable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incomplete-Infinity%2Fdraggable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Incomplete-Infinity","download_url":"https://codeload.github.com/Incomplete-Infinity/draggable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incomplete-Infinity%2Fdraggable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261586136,"owners_count":23181049,"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","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":[],"created_at":"2025-05-28T20:43:53.279Z","updated_at":"2025-06-24T01:30:37.482Z","avatar_url":"https://github.com/Incomplete-Infinity.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%2Fincomplete-infinity%2Fdraggable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincomplete-infinity%2Fdraggable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincomplete-infinity%2Fdraggable/lists"}