shuffled-priority-queue

JSON →
library 2.1.0 ·javascript
verified Jun 7, 2026

A priority queue that shuffles elements with the same priority. Current stable version is 2.1.0. The package is lightweight and provides a simple API for adding, removing, shifting, popping, and iterating over items. It is suitable for scenarios where elements of equal priority should be processed in a random order, such as load balancing or fair scheduling. The package is actively maintained and has no external dependencies.