{"id":22852375,"url":"https://github.com/ntbosscher/react-window-sortable","last_synced_at":"2025-09-03T10:39:03.358Z","repository":{"id":54286105,"uuid":"220010805","full_name":"ntbosscher/react-window-sortable","owner":"ntbosscher","description":"React component for draggable, efficiently rendering large lists with react-window","archived":false,"fork":false,"pushed_at":"2021-02-26T13:31:03.000Z","size":213,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T13:42:09.656Z","etag":null,"topics":["big","drag-and-drop","list","react","sortable","virtualizedlist"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntbosscher.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T14:05:23.000Z","updated_at":"2025-05-12T22:46:00.000Z","dependencies_parsed_at":"2022-08-13T11:00:47.852Z","dependency_job_id":null,"html_url":"https://github.com/ntbosscher/react-window-sortable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ntbosscher/react-window-sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntbosscher%2Freact-window-sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntbosscher%2Freact-window-sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntbosscher%2Freact-window-sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntbosscher%2Freact-window-sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntbosscher","download_url":"https://codeload.github.com/ntbosscher/react-window-sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntbosscher%2Freact-window-sortable/sbom","scorecard":{"id":697551,"data":{"date":"2025-08-11","repo":{"name":"github.com/ntbosscher/react-window-sortable","commit":"6240632f820972017c4f08bcd037646831b432ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T04:11:16.194Z","repository_id":54286105,"created_at":"2025-08-22T04:11:16.194Z","updated_at":"2025-08-22T04:11:16.194Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431324,"owners_count":25104491,"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-03T02:00:09.631Z","response_time":76,"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":["big","drag-and-drop","list","react","sortable","virtualizedlist"],"created_at":"2024-12-13T06:08:07.940Z","updated_at":"2025-09-03T10:39:03.338Z","avatar_url":"https://github.com/ntbosscher.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# React Window Sortable\n\nThis library provides drag and drop sort functionality for very large lists.\n\nThis library wraps Brian Vaughn's excellent library [react-window](https://github.com/bvaughn/react-window) and \nadds drag and drop sorting.\n\n## Features\n- Drag and drop to re-order list items\n- Start drag with customized element or button\n- Auto-scrolls when you drag something near the start or end of scroll view\n- Can handle giant lists (+100 elements)\n- Handles vertical lists only\n- Very customizable\n\n## Install\n\n```\n# yarn\nyarn add react-window-sortable\n\n# npm\nnpm install --save react-window-sortable \n```\n\n## Usage\n\nFixed Size List (for rows of equal height) [full example](./example-fixed-sized-list.tsx)\n\n```tsx\n\u003cSortableFixedSizeList\n    height={height}\n    width={width}\n    itemCount={n}\n    itemSize={30}\n    itemData={this.state.data}\n    onSortOrderChanged={({originalIndex, newIndex}) =\u003e {\n        move(this.state.data, originalIndex, newIndex);\n        this.setState({\n            data: this.state.data.slice(0),\n        })\n    }}\n\u003e\n    {React.forwardRef(({data, index, style, onSortMouseDown}: ChildrenProps, ref: Ref\u003cany\u003e) =\u003e (\n        \u003cdiv ref={ref} style={style}\u003e\n            \u003cbutton onMouseDown={onSortMouseDown}\u003edrag handle\u003c/button\u003e\n            {data[index]}\n        \u003c/div\u003e\n    ))}\n\u003c/SortableFixedSizeList\u003e\n```\n\nVariable Size List (for rows of variable height) [full example](./example-variable-sized-list.tsx)\n\n```tsx\n\u003cSortableVariableSizeList\n    height={height}\n    width={width}\n    itemCount={n}\n    itemSize={index =\u003e index % 2 === 0 ? 30 : 50}\n    itemData={this.state.data}\n    onSortOrderChanged={({originalIndex, newIndex}: {originalIndex: number, newIndex: number}) =\u003e {\n        move(this.state.data, originalIndex, newIndex);\n        this.setState({\n            data: this.state.data.slice(0),\n        })\n    }}\n\u003e\n    {React.forwardRef(({data, index, style, onSortMouseDown}: ChildrenProps, ref: Ref\u003cany\u003e) =\u003e (\n        \u003cdiv ref={ref} style={style}\u003e\n            \u003cbutton onMouseDown={onSortMouseDown}\u003edrag handle\u003c/button\u003e\n            {data[index]}\n        \u003c/div\u003e\n    ))}\n\u003c/SortableVariableSizeList\u003e\n```\n\n## API\n\n```ts\ninterface Props {\n    // a render function to render list items\n    children: React.ComponentType\u003cChildrenProps\u003e;\n    \n    // the distance from the top or bottom of the scroll\n    // window where autoscroll should kick in\n    autoScrollWhenDistanceLessThan?: number;\n    \n    // the speed at which the autoscroll should go\n    autoScrollSpeed?: number;\n    \n    // set the class name for the element that is being\n    // moved by the cursor\n    draggingElementClassName?: string;\n    \n    // set override styles on the style prop for the element\n    // being moved by the cursor\n    draggingElementStyle?: CSSProperties;\n    \n    // a custom element to render as a spot where the dragged\n    // element can be dropped.\n    dropElement?: any;\n    \n    // a callback when a sort has completed\n    onSortOrderChanged(params: { originalIndex: number; newIndex: number }): void;\n    \n    // the height of the scroll window (px) \n    // you may want to use https://github.com/bvaughn/react-virtualized-auto-sizer\n    // for this.\n    height: number;\n    \n    // the width of the scroll window (px) \n    // you may want to use https://github.com/bvaughn/react-virtualized-auto-sizer\n    // for this.\n    width: number;\n    \n    // number of rows in data set\n    itemCount: number;\n    \n    // height of the list item in px\n    // for FixedSizedLists, this will be a constant.\n    // for VariableSizedLists, this will be a lookup function\n    itemSize: number | (index) =\u003e number;\n    \n    // the data to pass to the render function\n    itemData: any[];\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntbosscher%2Freact-window-sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntbosscher%2Freact-window-sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntbosscher%2Freact-window-sortable/lists"}