vuex
🗃️ Centralized State Management for Vue.js. (by vuejs)
vueuse
Collection of essential Vue Composition Utilities for Vue 3 (by vueuse)
vuex | vueuse | |
---|---|---|
90 | 92 | |
28,458 | 20,791 | |
0.1% | 1.3% | |
2.5 | 9.7 | |
6 months ago | 3 days ago | |
JavaScript | TypeScript | |
MIT License | 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.
vuex
Posts with mentions or reviews of vuex.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-02-26.
-
The problem with indirections
Something I have already seen in many different code bases using frontend libraries like React and Vue is that developers use advanced state management solutions (e.g. Redux, Vuex, or Pinia) way too often.
-
2024 Nuxt3 Annual Ecosystem Summary🚀
Document address: Vuex official document
-
Code Refactoring: Avoid Prop Drilling in Vue with Provide/Inject
To avoid prop drilling we can make use of state management library like Vuex and Pinia, but for this article I will demonstrate of using Vue provide and inject. Let's refactor our components.
-
Comparing Frontend Technologies: ReactJS vs VueJS
Flexibility: Vue is also flexible but provides more built-in solutions out of the box, such as Vue Router for navigation and Vuex for state management. This can reduce the need for additional libraries and make development more straightforward.
-
You no longer need Vuex / Pinia for shared state in Vue.
If you have been using Vue.js before 3.x you are probably familiar with Vuex now renamed Pinia. It allows you to have a centralized state that is shared across all your application components. If you have ever found yourself in situations where you are passing data/props between components and things are getting complicated, a centralized state is the answer.
-
How to Protect State in Pinia
Pinia is a relatively new state management tool for the Vue ecosystem. It is the new preferred state management tool recommended by the Vue core team replacing Vuex. Compared to Vuex, Pinia is type-safe by default (direct-vuex was needed to make Vuex type-safe), extremely lightweight, and modular by design (meaning you can create multiple stores instead of multiple modules inside one store, which optimises performance). Similar to Vuex, Pinia has state, computed properties (getters) and methods (mutations and actions). Read more about Pinia and its usage to understand the similarities and differences between Pinia and Vuex.
-
React or Vue, which JS framework is best?
Vue.js also offers built-in features like animation and state management through Vuex which serve a wide range of development needs.
-
Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2
I really liked the idea of how all the core Vue libraries are maintained by Vue team themselves, making Vue feels like an all-in-one package instead of infinite npm install to add multiple community/personally maintained repos which often caused issues because they don't blend together. And now Pinia will be officially replacing Vuex, making me doubt if it'll be as reliable as Vuex.
-
A guide to Vue Lifecycle hooks.
Vuex: https://vuex.vuejs.org/
-
Which one is the favor?
Pinia. No discussion. Have you checked the Vuex website? It says Pinia is default. https://vuex.vuejs.org/
vueuse
Posts with mentions or reviews of vueuse.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-02-18.
-
Svelte 5 is not JavaScript
Here's an example of a Vue composable: https://github.com/vueuse/vueuse/blob/main/packages/core/use...
Here is an example of how it's used: https://github.com/vueuse/vueuse/blob/main/packages/core/use...
And the unit tests: https://github.com/vueuse/vueuse/blob/main/packages/core/use...
Another one from the same lib: https://github.com/vueuse/vueuse/blob/main/packages/core/use...
Unit test: https://github.com/vueuse/vueuse/blob/main/packages/core/use...
-
How to use an object with v-model in Vue
Extracting this logic into a reusable composable is a great way to streamline the process. But here’s the good news: we don’t even need to do that! The useVModel composable from VueUse handles this for us!
-
Top 10 Vue.js libraries you should be using in 2025
Vue Use is a collection of essential Vue Composition Utilities for Vue 2 and 3. It is a library that provides a set of reusable functions and utilities to help developers build Vue applications more efficiently and effectively.
-
2024 Nuxt3 Annual Ecosystem Summary🚀
Document address: VueUse Official Document
- React v19 has been released
-
Don’t reinvent the wheel! Or utility libraries for Vue and React applications
For Vue — it is, for example, vueuse. (vue utility functions)
-
Ask HN: Learn React or Vue?
My opinion: Vue, specifically the Vue 3 Composition API. Most of your app state should come from computed() values. Bookmark https://vueuse.org and come back to it often. Go through VueUse's source (the docs for each function link to their source): you'll be surprised at how simple most of it is, and it stands as documentation of best practices for using the composition API in general.
- Useful Vue Utils with VueUse
-
Implementing Tailwind CSS Dark Mode Toggle with No Flicker
Now, let’s talk about Vue! Once again, we’ll use an external library to handle dark mode simply and quickly. In this case, the library is called VueUse, and you can install it using the command npm i @vueuse/core --save.
-
useHooks – A collection of Server Component safe React Hooks
Great library. Could use some improvements as said by other (tree shaking, add jsdocs, etc…). Just a quick reminder for the vuejs devs out there we have https://vueuse.org/
What are some alternatives?
When comparing vuex and vueuse you can also consider the following projects:
ao-loot-logger-viewer - AO Loot Logger Viewer
vitesse - 🏕 Opinionated Vite + Vue Starter Template
pinia - 🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
svelte-actions - prototype official actions for Svelte
uuix - A tiny (<1KB) and fast UUID (v4) generator for Crystal
unbuild - 📦 A unified JavaScript build system