I’ve been working with Vue.js and local databases for a while, and I recommend giving RxDB in your vue app a try. It’s a great fit for Vue because it’s easy to integrate, supports reactivity out of the box, and lets you keep your data in sync between the browser and the server. One of RxDB’s standout features is its offline-first approach—it can store data locally and then sync seamlessly once the device is back online. Plus, it has plugins for encryption, conflict resolution, and server replication, which are all really helpful if you need to handle more complex use cases.
If RxDB isn’t your style or you want to explore alternatives, you could also look at PouchDB for a simpler offline-first approach, or Dexie.js if you prefer a more lightweight IndexedDB wrapper. Gun.js might be another interesting choice, especially if you’re building real-time collaborative applications.