Muuri is a JavaScript grid layout library and draggable UI framework used to create responsive grids with drag-and-drop reordering, sorting, and animated filtering. It features a nested grid system that allows full grid instances to be embedded inside other grid items to create hierarchical structures.
The library uses a web worker layout engine to offload heavy coordinate calculations to background threads, maintaining interface responsiveness during complex rearrangements.
The system provides interactive capabilities for moving items between multiple containers, filtering visibility based on specific criteria, and reordering elements via custom comparator functions. Layouts are managed using a bin-packing algorithm to minimize gaps and utilize CSS transforms for high-performance animations during transitions.