Dexie.js
store.js
Dexie.js | store.js | |
---|---|---|
33 | 6 | |
10,764 | 13,979 | |
1.2% | - | |
9.2 | 0.0 | |
19 days ago | 4 months ago | |
JavaScript | JavaScript | |
Apache License 2.0 | MIT License |
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.
Dexie.js
-
Ask HN: Wa-SQLite vs. Dexie, 2024
The word on the street is that https://github.com/rhashimoto/wa-sqlite is nearly production ready, closing in on the neat 1.0.0 release, with its IDBBatchAtomic engine highly recommended at https://www.powersync.com/blog/sqlite-persistence-on-the-web. You can try out the benchmark https://rhashimoto.github.io/wa-sqlite/demo/benchmarks.html.
And the other contestant is Dexie, stable https://dexie.org/.
If you were to branch into a new venture today, which one would you pick? And why?
- Dexie.js – Minimalistic IndexedDB Wrapper
- Dexie.js: A Minimalistic Wrapper for IndexedDB
- Koji wrapper koristiti za IndexedDB?
-
A comprehensive guide to making your web app feel native
That said, there are some great ways to wrap IndexedDB to make it easier to work with. Since I’m writing this article I’ll toss in my local-first framework Verdant, which can be used without the sync features as a standalone IndexedDB-powered database with a type-safe schema and deployable data migrations. For a lighter-weight approach, maybe check out Dexie.
-
Best way to store persistent data?
Using IndexedDB. I have heard its pretty cumbersome to use. There are wrappers like Dexie.js but I am not sure if it works seamlessly with Tauri or if it is the correct thing for my use case.
-
Database in Chrome Extension?
I use IndexedDB, specifically the idb library (https://github.com/jakearchibald/idb), or Dexie.js (https://dexie.org/) if you are more novice. This works great for large sets of data. For smaller amounts, Chrome Storage API will do.
-
IndexedDB on steroids using Dexie.js
To make things easier, Dexie.js provides a straightforward and simplified process of creating databases, storing data, updating data and database migrations, etc., over the top of indexedDB.
-
Better Ways To Handle Data Storage on The Web Client
If you are just looking for a solution for your IndexedDB needs I find Dexie to be one of the best but depending on other needs, the others in the list are also good to consider.
store.js
-
Why dont we simply persist state in local storage, instead of using global state management
it's not made up, feel free to look it up. In older versions if the site was in a private window, writing something to localStorage would throw an exception. Was a pain in the ass and caused a lot of bugs. https://developer.apple.com/forums/thread/71593 https://news.ycombinator.com/item?id=17231508 https://github.com/marcuswestin/store.js/issues/42
-
Webpacker vs import maps : any thoughts ?
Some javascript libraries require you to configure them using webpack. For example, https://github.com/marcuswestin/store.js/ , if you want to use sessionstorage only without anything else. You need to rebuild the library using webpack. If you can tinker with building libraries and providing custom builds that suit your need and load them into importmap, then it is better to use importmap.
-
Vuex State data empty after reloading the page
I'm using store package to persist data after page reload.
-
Are mixins shared/single instance, or one instance for each component that uses the mixin?
store is basically a localStorage wrapper. If you want your data to persist even if on page reload, you might consider using it.
-
How to persist only a few state items with localstorage?
I've been using store, it's basically a localStorage wrapper.
-
Deployed my first React project.. yes, a Pokedex.
and the pokemon user can catch is saved using session based local storage, Store js (https://github.com/marcuswestin/store.js)
What are some alternatives?
localForage - 💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
PouchDB - :koala: - PouchDB is a pocket-sized database.
jStorage - jStorage is a simple key/value database to store data on browser side
WatermelonDB - 🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
lockr - A minimal API wrapper for localStorage
idb - IndexedDB, but with promises
lawnchair.js - A lightweight clientside JSON document store,
sql.js - A javascript library to run SQLite on the web.
basil.js - The missing Javascript smart persistent layer
pelmodoro - Pomodoro app made with Elm
js-cookie - A simple, lightweight JavaScript API for handling browser cookies