# vuejs/pinia

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

Repository: https://github.com/vuejs/pinia
Canonical: https://ross.abutalabs.com/products/pinia
Homepage: https://pinia.vuejs.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, composition-api, ssr, store, vuex
Last push: 2026-08-12T12:18:07+00:00

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

## Adoption (not part of the score)
Stars 14708, forks 1197 (observed 2026-08-28T04:11:07.510396+00:00)

## What it is
Pinia is the official type-safe state management library for Vue, built on the Composition API with DevTools support and a modular, extensible design. It is extremely lightweight (~1.5kb), works with Vue 3 (and Vue 2 via the v2 branch), and integrates as a Nuxt module.

## Use cases
- manage global state in a Vue 3 app
- replace Vuex with a simpler type-safe store
- share reactive state between Vue components
- code-split multiple stores in a Vue application
- sync store state to localStorage in Vue
- use a state store with Nuxt SSR
- debug Vue app state with devtools

## When to choose
- you are building a Vue 3 or Nuxt application and need shared state
- you want full TypeScript inference and autocompletion in your store
- you want a tiny, modular store with devtools support
- you are migrating from Vuex and want the officially recommended successor

## When to avoid
- your project uses React, Angular, or Svelte rather than Vue
- you only need local component state with no cross-component sharing
- you need a framework-agnostic store that works outside the Vue ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: state-management, frontend-framework, ssr
- domain: frontend, web-development, developer-tools
- platform: browser
- tags: vue, vuex-successor, composition-api, typescript, nuxt, store, devtools, nodejs, web-server

## Member repositories
- vuejs/pinia (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:07.510396+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-29T17:07:16.941491+00:00, confidence not recorded.
  - readme: https://github.com/vuejs/pinia (fetched 2026-08-28T04:11:07.510396+00:00, sha 883b67e9fc51)
  - homepage: https://pinia.vuejs.org (fetched 2026-08-29T08:05:46.177404+00:00, sha 03bc59673f4b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
