{"id":17981717,"url":"https://github.com/zyzo/react-dnd-mouse-backend","last_synced_at":"2025-04-07T05:10:35.462Z","repository":{"id":5577899,"uuid":"53446918","full_name":"zyzo/react-dnd-mouse-backend","owner":"zyzo","description":"Mouse Backend for react-dnd library","archived":false,"fork":false,"pushed_at":"2022-12-10T01:30:55.000Z","size":1541,"stargazers_count":85,"open_issues_count":14,"forks_count":30,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T21:11:51.745Z","etag":null,"topics":["react","react-dnd"],"latest_commit_sha":null,"homepage":"http://zyzo.github.io/react-dnd-mouse-backend/","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/zyzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-08T21:36:37.000Z","updated_at":"2023-11-21T11:09:45.000Z","dependencies_parsed_at":"2023-01-13T15:30:25.622Z","dependency_job_id":null,"html_url":"https://github.com/zyzo/react-dnd-mouse-backend","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyzo%2Freact-dnd-mouse-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyzo%2Freact-dnd-mouse-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyzo%2Freact-dnd-mouse-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyzo%2Freact-dnd-mouse-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyzo","download_url":"https://codeload.github.com/zyzo/react-dnd-mouse-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":["react","react-dnd"],"created_at":"2024-10-29T18:11:51.836Z","updated_at":"2025-04-07T05:10:35.439Z","avatar_url":"https://github.com/zyzo.png","language":"JavaScript","funding_links":[],"categories":["📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# react-dnd-mouse-backend\n\nhttp://zyzo.github.io/react-dnd-mouse-backend/\n\n[![npm version](https://badge.fury.io/js/react-dnd-mouse-backend.svg)](https://badge.fury.io/js/react-dnd-mouse-backend)\n\nMouse Backend for React Drag and Drop library http://gaearon.github.io/react-dnd\n\n- [Usage](#Usage)\n- [Playground](#Playground)\n- [Development](#Development)\n- [Credits](#Credits)\n\n### Usage\n\n```js\nimport { DragDropContext } from 'react-dnd'\nimport MouseBackEnd from 'react-dnd-mouse-backend'\n\nconst App = {...}\n\nconst AppContainer = DragDropContext(MouseBackEnd)(App)\n```\n\n### Playground\n\nFirst, prepare the playground:\n\n```sh\ncd example;\nyarn; yarn start\n```\n\nThen head to `http://localhost:3030/` to start some fun drag and dropping.\n\n### Development\n\nFirst, install the project locally:\n\n```sh\ngit clone git@github.com:zyzo/react-dnd-mouse-backend.git\ncd react-dnd-mouse-backend; npm install\n# (Optional) prepare example project\ncd example; npm install\n```\n\nThen, link react-dnd-mouse-backend to example project (or your js project):\n```sh\n# in ./react-dnd-mouse-backend\nnpm link\ncd example; npm link react-dnd-mouse-backend\n```\n\nFinally you can begin to make changes in `src` folder, and rebuild the lib:\n\n```sh\nnpm run build\n```\n\n\n### Credits\nInspired by [HTML5 Backend](https://github.com/gaearon/react-dnd-html5-backend) \u0026 [Touch Backend](https://github.com/yahoo/react-dnd-touch-backend) to support only mouse events, which work much better in some cases, like svg.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyzo%2Freact-dnd-mouse-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyzo%2Freact-dnd-mouse-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyzo%2Freact-dnd-mouse-backend/lists"}