redis-sorted-set

JSON →
library 2.0.1 ·javascript maintenance
verified Jun 7, 2026

A JavaScript implementation of Redis Sorted Sets using skip lists. Provides O(log(N)) average time for add, remove, rank, and range queries. Version 2.0.1 uses a fork of the abandoned sorted-map package. It mirrors Redis Sorted Set commands (ZADD, ZRANGE, ZSCORE, etc.) and adds methods like .has() and .length. Intersection and unique constraints are supported. The library is dependency-free, works in Node.js and browsers (with bundling), and has no native dependencies. Release cadence is low; last update was in 2021. Differentiators: pure JS, no Redis required, and skip-list based for predictable performance.