# championswimmer/vuex-module-decorators

TypeScript/ES7 Decorators to create Vuex modules declaratively

Repository: https://github.com/championswimmer/vuex-module-decorators
Canonical: https://ross.abutalabs.com/products/vuex-module-decorators
Homepage: https://championswimmer.in/vuex-module-decorators/
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, vuejs, vuex, vuex-modules, typescript, javascript
Last push: 2023-09-01T21:32:24+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3047, "days_push": 1097, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1771, forks 164 (observed 2026-08-28T04:05:34.090177+00:00)

## What it is
A TypeScript/ES7 decorator library for defining Vuex store modules as classes with strict compile-time type safety. It provides decorators like @Module, @Action, and @Mutation, plus getModule() for type-safe accessors.

## Use cases
- write vuex modules as typescript classes
- get type-safe access to vuex state and mutations
- use decorators to define vuex actions and mutations
- create dynamic or namespaced vuex modules with autocomplete
- avoid string-based mutation type errors in vue apps

## When to choose
- you use Vue 2/Vuex 3 with TypeScript and want class-based, type-checked store modules
- you want compile-time errors when accessing nonexistent state fields or mutations
- you prefer declarative decorators over plain object module syntax

## When to avoid
- you are starting a new project with Pinia, the official Vue store (Vuex is legacy)
- your codebase is JavaScript-only without TypeScript or decorator transpilation
- you need IE11 support without a Babel transpilation setup

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, frontend-framework
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: vuex, vue, typescript-decorators, class-based-modules, type-safety, nodejs

## Member repositories
- championswimmer/vuex-module-decorators (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:34.090177+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:25:59.760573+00:00, confidence not recorded.
  - readme: https://github.com/championswimmer/vuex-module-decorators (fetched 2026-08-28T04:05:34.090177+00:00, sha f82bd0b49c8c)
  - homepage: https://championswimmer.in/vuex-module-decorators/ (fetched 2026-08-29T11:04:33.361087+00:00, sha 64d1345f6919)
  - site_page: https://championswimmer.in/vuex-module-decorators/pages/installation.html (fetched 2026-08-29T11:04:33.369925+00:00, sha f46a09fea7df)
  - site_page: https://championswimmer.in/vuex-module-decorators/pages/getting-started.html (fetched 2026-08-29T11:04:33.371845+00:00, sha 0addaa092064)
  - registry_npm: https://registry.npmjs.org/vuex-module-decorators (fetched 2026-08-29T11:04:33.373739+00:00, sha 193771473179)
- Data as of 2026-08-30T08:39:29.467469+00:00.
