Utilities > State Management


Tuex 0.1


A mostly reasonable alternative to Vuex
  • alternative
  • badge
  • badges
  • beta
  • flux
  • javascript
  • js
  • redux
  • replacement
  • store
  • topics
  • tuex
  • typescript
  • vue
  • vuejs
  • vuex
  • vue_js
  • ts
last commit 7 years ago
32
Stargazers

Watchers
32
Open issues
0
2174
Downloads

Last 30 days
60
Releases
5
47
Final Score

Quality
89
Popularity
8
Maintenance
50

Tuex (beta)

A simpler Vuex alternative written in TypeScript.

Travis branch Codacy branch grade size size npm

(TypeScript + Vuex) - Complexity = Tuex

Full Documentation

About

Tuex is a reactive centralized state management library for Vue.js. It takes heavy inspiration from the Flux pattern (especially Vuex).

The main goal of Tuex is to make state-management less complex for small-scale apps, while also keeping the state flexibile and scalabile.

Installation

npm install tuex --save
# or
https://unpkg.com/tuex

Usage

// imports or scripts
...
Vue.use(Tuex);

const TuexStore = new Tuex.Store({
  num: 0,

  increase(amount) {
    this.num += amount;
  }
});
...
// Vue component
...
  created() {
    this.$store.increase(10);
    console.log(this.$store.num);
    // => 10

    this.$store.num = -1;
    console.log(this.$store.num);
    // => -1
  }
...

Roadmap

Coming soon:

  • Full Wiki Documentation

  • Refactoring

  • Performance gains

  • Breaking changes

  • More configuration options

  • Code coverage

  • Fully Vuex-compatible API (to some extent)

  • Component binding helpers