idb is a lightweight wrapper library for IndexedDB that replaces callback-based operations with promises.
The library addresses the usability friction of IndexedDB's event-driven API by providing a promise-based interface that mirrors the standard IndexedDB methods. Instead of working with IDBRequest objects and upgradeneeded events, developers call functions like openDB and deleteDB that return promises, making database operations composable with async/await syntax. The wrapper preserves the underlying IndexedDB semantics while adding small enhancements throughout the API surface.
Projects using IndexedDB in modern browsers should consider this library if promise-based control flow matters to their codebase. The tool suits applications that need client-side persistence without the complexity of managing event listeners and request objects. It targets modern browsers including Chrome, Firefox, Safari, and Edge, explicitly excluding Internet Explorer. The library is distributed as a small package suitable for inclusion in web applications.
The project maintains active engagement with its user base through issue responses and changelog documentation. Development includes regular updates to address compatibility concerns and API refinements. The maintainers provide clear migration guidance when changes affect existing code.