idb-range

JSON →
library 3.1.3 ·javascript
verified Jun 5, 2026

MongoDB-inspired utility for constructing IndexedDB key ranges (IDBKeyRange) with a concise object notation. Version 3.1.3 is stable, with no active development since 2017. It simplifies range creation by accepting an object with gt/lt/gte/lte/eq properties or a plain value, reducing boilerplate over native IDBKeyRange methods. Lightweight, no dependencies, ESM-only, primarily for browser environments using IndexedDB.