GitHub - unadlib/localspace: A library that unifies the APIs of IndexedDB, localStorage and other storage into a consistent API
Briefly

GitHub - unadlib/localspace: A library that unifies the APIs of IndexedDB, localStorage and other storage into a consistent API
"We stay 100% compatible with localForage on the surface, but rebuild the internals with modern JavaScript, a TypeScript-first type system, native Promises, and a clean driver architecture. That drop-in approach delivers predictable behavior (including a complete IndexedDB dropInstance), clearer diagnostics, and room to grow with new drivers (Cache API, SQLite, OPFS) and optional plugins (TTL, encryption, compression) across browsers, Node, React Native, and Electron."
"The industry still leans on localForage's familiar API, yet modern apps crave stronger typing, async ergonomics, and multi-platform reliability without a painful rewrite. localspace exists to bridge that gap: it honors the old contract while delivering the capabilities teams have been asking for since 2021. localForage's storage layer stopped evolving while real-world needs kept growing. Long-standing requests-first-class TypeScript types, native async/await, reliable IndexedDB cleanup, consistency across Node and React Native, batch operations, TTL, and encryption-remain unresolved."
localspace provides a drop-in, 100% surface-compatible replacement for localForage while rebuilding internals in modern TypeScript with native Promises and a clean driver architecture. It addresses long-standing needs such as first-class TypeScript types, native async/await, reliable IndexedDB cleanup, cross-platform consistency (Node, React Native, Electron), batch operations, TTL, and encryption. The toolkit enables predictable behavior including a complete IndexedDB dropInstance, clearer diagnostics, and extensibility to new drivers (Cache API, SQLite, OPFS) and optional plugins (TTL, encryption, compression). Migration from localForage requires no application code changes, enabling improved developer experience and future growth.
Read at GitHub
Unable to calculate read time
[
|
]