idb-keyval
A super-simple-small promise-based keyval store implemented with IndexedDB (by jakearchibald)
svelte-persisted-store
A Svelte store that persists to localStorage (by joshnuss)
Our great sponsors
idb-keyval | svelte-persisted-store | |
---|---|---|
5 | 9 | |
2,590 | 847 | |
- | - | |
0.6 | 8.2 | |
9 days ago | 11 days ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
idb-keyval
Posts with mentions or reviews of idb-keyval.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-26.
-
SvelteKit: Use local database in the browser
idb-keyval is a great library for storing simple data in the browser using IndexedDB. secure-ls is great for storing data securely in Local Storage in the browser. There is also svelte-local-storage-store for saving and retrieving data to/from Local Storage in the browser easily with just a svelte store.
- 瀏覽器上的儲存空間:IndexedDB
-
What makes a package useless, or "When should I reinvent the wheel"?
Preference for a different package that covers the same use case. For example, instead of a wrapper for the somewhat outdated localStorage and sessionStorage APIs such as store2, you could use the excellent idb-keyval, which wraps the IndexedDB API instead, giving significant performance and other advantages.
-
How to Cache Some Static Data
idb-keyval is an easy to use wrapper for IndexedDB https://github.com/jakearchibald/idb-keyval
-
`export default thing` behaves differently to `export { thing as default }`
I'm not sure this is clear cut. Take idb-keyval for instance. The exported names are get and set. If someone was import them individually I'd totally understand why they might them different names to make the context clear. Eg:
svelte-persisted-store
Posts with mentions or reviews of svelte-persisted-store.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-23.
-
Suggest Best Svelte Libraries
svelte-local-storage-store: A Svelte store that persists to localeStorage
-
Simply save data in sveltekit
This is a great library for this I’ve used recently if you end up going this route: https://github.com/joshnuss/svelte-local-storage-store
-
Plought: reduce noise in decision-making
created with https://github.com/joshnuss/svelte-local-storage-store
-
SvelteKit: Use local database in the browser
idb-keyval is a great library for storing simple data in the browser using IndexedDB. secure-ls is great for storing data securely in Local Storage in the browser. There is also svelte-local-storage-store for saving and retrieving data to/from Local Storage in the browser easily with just a svelte store.
-
How do I persist the value set by toggle ?
Even better, you could use svelte-local-storage-store.
-
What differentiates writables from local storage?
Do you need a persistent writable store? Check out svelte-local-storage-store.
- How to pass data between pages in SvelteKit
-
JWT Authentication in Svelte-Kit
Without SSR, I just used a localstore-backed store for the JWT ( https://github.com/joshnuss/svelte-local-storage-store ) and used onMount() rather than preload()/load() so it only ran authenticated functions on the front end.
-
how to use localStorage in svelte
I've been using svelte-local-storage-store. It's essentially a wrapper around Svelte store that uses Local Storage, which makes a stores persistent.
What are some alternatives?
When comparing idb-keyval and svelte-persisted-store you can also consider the following projects:
idb - IndexedDB, but with promises
localForage - 💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
nodejs-pubsub - Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics.
secure-ls - :lock: Secure localStorage data with high level of encryption and data compression
local-storage - React hook which syncs localStorage[key] with the comp.
javascript - JavaScript Style Guide
deepstream.io - deepstream.io server
Dexie.js - A Minimalistic Wrapper for IndexedDB
axios - Promise based HTTP client for the browser and node.js
mitt - 🥊 Tiny 200 byte functional event emitter / pubsub.
idb-keyval vs idb
svelte-persisted-store vs localForage
idb-keyval vs localForage
svelte-persisted-store vs nodejs-pubsub
idb-keyval vs secure-ls
svelte-persisted-store vs local-storage
idb-keyval vs javascript
svelte-persisted-store vs deepstream.io
idb-keyval vs Dexie.js
svelte-persisted-store vs Dexie.js
svelte-persisted-store vs axios
svelte-persisted-store vs mitt