{"repo":"unadlib/localspace","free":true,"listed":false,"github":"https://github.com/unadlib/localspace","clone":"git clone https://github.com/unadlib/localspace.git","description":"A library that unifies the APIs of IndexedDB, localStorage and other storage into a consistent API","language":"TypeScript","stars":200,"topics":["storage","indexdb","localforage","localstorage","offline","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"localspace localspace is a Promise-first storage toolkit for IndexedDB, localStorage, and React Native AsyncStorage, with TypeScript types and a focused plugin system. Motivation localspace keeps the familiar key-value shape of localForage while making Promise semantics, explicit batching, and driver capabilities the actual contract. It adds first-class TypeScript types, IndexedDB transactions, multi-platform drivers, and a plugin architecture. It is not a callback-compatible drop-in replacement. Existing Promise-based localForage usage is usually straightforward to migrate; callback-based code must be converted to await or .then() . Quick Start Get started in 5 minutes: 1. Install 2. Basic Usage 3. Create Isolated Instances 4. Batch Operations 5. Use Plugins That's it! For more details, see the sections below. --- Table of Contents - Installation - Core API - Batch Operations - Plugin System - Configuration - Performance Notes - Troubleshooting - Documentation - License --- Installation Bundles included: ES modules, CommonJS, UMD, plus .d.ts files. --- Core API Storage Methods Driver Selection In-Memory Fallback When browser persistent storage is unavailable (for example, cookies/site data are blocked), opt in to the memory driver explicitly: The memory driver is runtime-only: data is shared by name / storeName while the page is alive and is lost on reload. It is not part of the default fallback order so persistent-storage failures remain visible unless you opt in. Instance ","default_branch":null,"files":null,"tree":[],"storefront":"/r/unadlib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unadlib/localspace/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}