IDB-Keyval is a tiny promise-based key-value store built on top of IndexedDB for simple browser persistence. It provides a much smaller API than full IndexedDB wrappers and is designed to remain tree-shakeable. Developers can store structured-clonable values and retrieve them asynchronously by key. It includes single and batch operations for reading, writing, and deleting data, along with clear, key, value, and entry helpers. Its update helper queues changes to avoid common non-atomic read-modify-write problems. Custom stores are supported, while more complex indexing, iteration, transactions, and schema management are intentionally left to fuller IndexedDB libraries.
Features
- Promise-based key-value storage
- Tree-shakeable lightweight library
- Single and batch read/write operations
- Atomic batch writes and queued updates
- Key, value, entry, and clear helpers
- Custom IndexedDB store support
Categories
LibrariesFollow IDB-Keyval
Other Useful Business Software
Build Securely on AWS with Proven Frameworks
Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of IDB-Keyval!