vue-router VS vuex

Compare vue-router vs vuex and see what are their differences.

vue-router

🚦 The official router for Vue 2 (by vuejs)

vuex

🗃️ Centralized State Management for Vue.js. (by vuejs)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarLint - Clean code begins in your IDE with SonarLint
vue-router vuex
40 72
18,844 27,694
0.1% 0.2%
7.7 5.1
15 days ago 19 days ago
JavaScript JavaScript
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.

vue-router

Posts with mentions or reviews of vue-router. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-21.

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 2022-07-02.
  • The new wave of React state management
    23 projects | news.ycombinator.com | 2 Jul 2022
    > poor support for style libraries like tailwind

    Can't relate. Tailwind works fine with anything that supports PostCSS. I run it with Vite and there's zero issues.

    > the state management ecosystem is fractured between vuex and pinia

    This is also just not true. Pinia is officially replacing Vuex as the recommended store library for Vue [1]. They're also vastly similar in how they do things, so the knowledge transfer over from Vuex to Pinia. And Pinia just address most of the design goals mentioned in the article in the most simple way.

    As for Vue 2 -> 3 transition, lots of the larger UI frameworks in the ecosystem is struggling to migrate, despite lots of efforts on the compat layer to smooth the transition, which is a bummer. But as long as you're not doing those sophisticated things, Vue 2 examples should work out-of-box on Vue 3 as well. There are surely less resources for the composition API, but the official introduction guide has been good enough in my experience.

    [1]: https://vuex.vuejs.org/#what-is-vuex

  • Introduction to the VueJs Framework
    7 projects | dev.to | 21 Jun 2022
    Vue has a wide range of use cases that span the whole scale of front-end development. We can use it to add a bit of dynamism into an existing web app, such as adding a simple carousel or content that changes on user interaction e.g mouse movements or text input to creating complex web apps such as e-commerce stores with multiple categories and product pages supporting routing, browser-based data storage via Vue's own libraries such as the vue-router and vuex with features such as a cart, external API call requests and so forth.
  • What is XState used for?
    9 projects | dev.to | 21 Jun 2022
    replace global state managers like Redux or Vuex
  • A Practical Guide to Harlem
    1 project | dev.to | 20 Jun 2022
    Starting out with any frontend framework or library, state management is always a topic you look on the web to learn, for Vue, the first recommended option you would find is Vuex — a library based on the flux pattern for state management. Harlem however, is an alternative to Vuex and claims to be an “unopinionated, lightweight, and extensible” state management library for Vue 3. Let’s see how.
  • Need task suggestions for a beginner dev I mentor
    1 project | reddit.com/r/webdev | 2 Jun 2022
  • Top 13 Vue Devtools for Developers in 2022
    7 projects | dev.to | 26 Apr 2022
    Source: Vuex
  • Build a To-do List App with Pinia and Vue 3
    2 projects | dev.to | 15 Apr 2022
    When I arrived at the Vuex documentation page, I saw this:
  • React, Vue and Svelte: Comparing State Management tools
    2 projects | dev.to | 28 Mar 2022
    Pinia VueX (maintenance mode)
  • react vs angular
    2 projects | reddit.com/r/CharruaDevs | 19 Mar 2022
  • Can't Connect Metamask to Vue/Vuex project
    2 projects | reddit.com/r/vuejs | 12 Mar 2022

What are some alternatives?

When comparing vue-router and vuex you can also consider the following projects:

pinia - 🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support

Express - Fast, unopinionated, minimalist web framework for node.

vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3

vee-validate - ✅ Form Validation for Vue.js

Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time

ESLint - Find and fix problems in your JavaScript code.

apollo - 🚀 Apollo/GraphQL integration for VueJS

luci-wrtbwmon - Bandwidth tracker for OpenWRT that uses wrtbwmon

axios - Promise based HTTP client for the browser and node.js

ao-loot-logger-viewer - AO Loot Logger Viewer

Nuxt.js - The Intuitive Vue(2) Framework

redux - Predictable state container for JavaScript apps