vuex-easy-firestore

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!
10,492 230
Install
npm install vuex-easy-firestore
Latest Version:2.0.11
Vue:3
Older releases:2
License:MIT
Last Updated:Sep 30, 2026
Links: GitHub  ·  npm
Maintainer: mesqueeb

Vuex Easy Firestore 🔥

In just 4 lines of code, get your vuex module in complete 2-way sync with firestore:

const userModule = {
  firestorePath: 'users/{userId}/data',
  firestoreRefType: 'collection', // or 'doc'
  moduleName: 'user',
  statePropName: 'docs',
  // the rest of your module here
}
// add userModule as vuex plugin wrapped in vuex-easy-firestore

and Alakazam! Now you have a vuex module called user with state: {docs: {}}. All firestore documents in your collection will be added with the doc's id as key inside docs in your state.

Now you just update and add docs with dispatch('user/set', newItem) and forget about the rest!

Other features include hooks, fillables (limit props to sync), default values (add props on sync), a fetch function and much more...

Installation and setup  →

Motivation

I didn't like writing an entire an API wrapper from scratch for firestore every single project. If only a vuex module could be in perfect sync with firestore without having to code all the boilerplate yourself...

And that's how Vuex Easy Firestore was born.

Documentation

See the all new documentation made with VuePress!

Full documentation

Support

If you like what I built, you can say thanks by buying me a coffee! :)

Thank you so much!! Every little bit helps.

Related Packages

vuex-easy-access

Unified syntax with simple set() and get() store access + auto generate mutation...

11,725 50
firex-store

Subscribe and write firestore data, easily

1,972 4
vuexfire

Firestore binding for Vuex

131,763 3,905
vuex-pathify

Ridiculously simple Vuex setup + wiring

322,817 1,358
nuxt3-vuex-module

Vuex support for Nuxt 3

165,911 26

Version History

Version Released License
2.0.11 MIT
2.0.10 MIT
2.0.9 MIT
2.0.8 MIT
2.0.7 MIT
Pre-releases (8)
Version Released License
1.31.1-beta.1 MIT
1.31.1-beta.0 MIT
0.1.2-beta MIT
0.1.1-beta MIT
0.1.0-beta MIT