# vuex

> state management for Vue.js

Latest version **4.1.0** (published 2022-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install vuex
pnpm add vuex
yarn add vuex
bun add vuex
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score; popular repo.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2022-10-14 |
| First published | 2015-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 264.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28307 |
| Author | Evan You |
| Maintainers | yyx990803, kiaking, ktsn, akryum |

## Links

- npm: https://www.npmjs.com/package/vuex
- Repository: https://github.com/vuejs/vuex
- Homepage: https://github.com/vuejs/vuex#readme
- Issues: https://github.com/vuejs/vuex/issues
- npm.io page: https://npm.io/package/vuex

## Dependencies (1)

- [@vue/devtools-api](https://npm.io/package/@vue/devtools-api.md) ^6.0.0-beta.11

## Recent versions

- 4.1.0 (latest) — 2022-10-14
- 4.0.2 (next) — 2021-06-17
- 4.0.1 — 2021-05-24
- 4.0.0 — 2021-02-02
- 3.6.2 — 2021-01-26
- 3.6.1 — 2021-01-26
- 4.0.0-rc.2 — 2020-11-25
- 3.6.0 — 2020-11-25
- 4.0.0-rc.1 — 2020-10-30
- 4.0.0-beta.4 — 2020-06-29
- 3.5.1 — 2020-06-29
- 4.0.0-beta.3 — 2020-06-29
- 3.5.0 — 2020-06-29
- 4.0.0-beta.2 — 2020-05-11
- 3.4.0 — 2020-05-11
- … 47 more at https://npm.io/package/vuex/versions

## README

# Vuex

[![npm](https://img.shields.io/npm/v/vuex.svg)](https://npmjs.com/package/vuex)
[![ci status](https://circleci.com/gh/vuejs/vuex/tree/main.png?style=shield)](https://circleci.com/gh/vuejs/vuex)

---

**Pinia is now the new default**

The official state management library for Vue has changed to [Pinia](https://pinia.vuejs.org). Pinia has almost the exact same or enhanced API as Vuex 5, described in [Vuex 5 RFC](https://github.com/vuejs/rfcs/pull/271). You could simply consider Pinia as Vuex 5 with a different name. Pinia also works with Vue 2.x as well.

Vuex 3 and 4 will still be maintained. However, it's unlikely to add new functionalities to it. Vuex and Pinia can be installed in the same project. If you're migrating existing Vuex app to Pinia, it might be a suitable option. However, if you're planning to start a new project, we highly recommend using Pinia instead.

---

Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.

Learn more about Vuex at "[What is Vuex?](https://vuex.vuejs.org/)", or get started by looking into [full documentation](http://vuex.vuejs.org/).

## Documentation

To check out docs, visit [vuex.vuejs.org](https://vuex.vuejs.org/).

## Examples

You may find example applications built with Vuex under the `examples` directory.

Running the examples:

```bash
$ npm install
$ npm run dev # serve examples at localhost:8080
```

## Questions

For questions and support please use the [Discord chat server](https://chat.vuejs.org) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.

## Issues

Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/main/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.

## Changelog

Detailed changes for each release are documented in the [release notes](https://github.com/vuejs/vuex/releases).

## Stay In Touch

For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs).

## Contribution

Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/main/.github/contributing.md) before making a pull request.

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2015-present Evan You

---
_Source: https://npm.io/package/vuex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
