Gathering detailed insights and metrics for livewire-sortable
Gathering detailed insights and metrics for livewire-sortable
Gathering detailed insights and metrics for livewire-sortable
Gathering detailed insights and metrics for livewire-sortable
@nextapps-be/livewire-sortablejs
Laravel Livewire plugin to use Sortable.js
livewire-sortablejs
A Livewire wrapper for SortableJS.
livewire-draggable
A plugin/wrapper around [Shopify's draggable package](https://github.com/Shopify/draggable/tree/master/src/Sortable). It makes implementing draggable interfaces super simple using Livewire.
@wotz/livewire-sortablejs
Laravel Livewire plugin to use Sortable.js
npm install livewire-sortable
Typescript
Module System
Node Version
NPM Version
88.2
Supply Chain
91.1
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
543 Stars
30 Commits
50 Forks
17 Watchers
2 Branches
10 Contributors
Updated on Jul 08, 2025
Latest Version
1.0.0
Package Id
livewire-sortable@1.0.0
Unpacked Size
257.28 kB
Size
49.81 kB
File Count
7
NPM Version
10.1.0
Node Version
20.8.0
Published on
Nov 01, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A plugin/wrapper around Shopify's sortable package. It makes implementing sortable interfaces super simple using Livewire.
1<script src="https://cdn.jsdelivr.net/gh/livewire/sortable@v0.x.x/dist/livewire-sortable.js"></script>
npm install livewire-sortable --save-dev
Import the package in your bundle:
import 'livewire-sortable'
// Or.
require('livewire-sortable')
For simple layouts that only require simple sorting like a todo list, add the wire:sortable
, wire:sortable.item
, and wire:sortable.handle
attributes to your markup as follows.
1<ul wire:sortable="updateTaskOrder"> 2 @foreach ($tasks as $task) 3 <li wire:sortable.item="{{ $task->id }}" wire:key="task-{{ $task->id }}"> 4 <h4 wire:sortable.handle>{{ $task->title }}</h4> 5 <button wire:click="removeTask({{ $task->id }})">Remove</button> 6 </li> 7 @endforeach 8</ul>
For creating a nested layout with draggable groups with draggable items inside each group, similar to Trello, add the wire:sortable
, wire:sortable-group
, wire:sortable.item
, wire:sortable.handle
, wire:sortable-group.item-group
, and wire:sortable-group.item
attributes to your markup as follows.
1<div wire:sortable="updateGroupOrder" wire:sortable-group="updateTaskOrder" style="display: flex"> 2 @foreach ($groups as $group) 3 <div wire:key="group-{{ $group->id }}" wire:sortable.item="{{ $group->id }}"> 4 <div style="display: flex"> 5 <h4 wire:sortable.handle>{{ $group->label }}</h4> 6 7 <button wire:click="removeGroup({{ $group->id }})">Remove</button> 8 </div> 9 10 <ul wire:sortable-group.item-group="{{ $group->id }}"> 11 @foreach ($group->tasks()->orderBy('order')->get() as $task) 12 <li wire:key="task-{{ $task->id }}" wire:sortable-group.item="{{ $task->id }}"> 13 {{ $task->title }} 14 <button wire:click="removeTask({{ $task->id }})">Remove</button> 15 </li> 16 @endforeach 17 </ul> 18 19 <form wire:submit.prevent="addTask({{ $group->id }}, $event.target.title.value)"> 20 <input type="text" name="title"> 21 22 <button>Add Task</button> 23 </form> 24 </div> 25 @endforeach 26 27 <form wire:submit.prevent="addGroup"> 28 <input type="text" wire:model="newGroupLabel"> 29 30 <button>Add Task Group</button> 31 </form> 32</div>
If you want to add your own styles to elements during various "draggable" states (like adding a shadow to an item while dragging), reference Shopify's Draggable/Sortable plugin's docs directly: https://github.com/Shopify/draggable/blob/58d79dc9fb5b82271c5dfec74a5c9207cfab01f5/src/Draggable/README.md#classes
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 7/18 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More