# prazdevs/pinia-plugin-persistedstate

💾 Configurable persistence and rehydration of Pinia stores

Repository: https://github.com/prazdevs/pinia-plugin-persistedstate
Canonical: https://ross.abutalabs.com/products/pinia-plugin-persistedstate
Homepage: https://prazdevs.github.io/pinia-plugin-persistedstate/
Language: TypeScript
License: MIT
License Family: permissive
Topics: pinia, pinia-plugin, nuxt, nuxt-module
Archived: true
Last push: 2025-08-31T13:11:07+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 39, release rhythm 42, longevity 100
- inputs: {"age_days": 1773, "days_push": 367, "days_rel": 387, "gap_med": 16, "n_releases_24m": 12}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2522, forks 141 (observed 2026-08-28T04:06:58.380472+00:00)

## What it is
A Pinia plugin that adds configurable persistence and rehydration of Vue store state to web storage. It offers customizable storage, serializers, and path picking, with out-of-the-box SSR-friendly Nuxt module support.

## Use cases
- persist pinia store state across page reloads
- rehydrate vue store from localstorage on app start
- persist only selected state paths in pinia
- ssr-safe store persistence with cookies in nuxt
- use sessionStorage for pinia store persistence
- custom serializer for persisted vue state

## When to choose
- you use Pinia and need state to survive reloads
- you want a tiny (<2kB), highly configurable persistence plugin
- you need SSR-friendly persistence in Nuxt

## When to avoid
- you use Vuex or another state library instead of Pinia
- you need server-side or cross-device state sync rather than client storage
- you need persistence of non-serializable state like functions or class instances

## Facets
- artifact type: plugin
- maturity: active
- function: state-management, serialization, plugin-system
- domain: frontend, web-development
- platform: browser
- tags: pinia, vue, nuxt, persistence, ssr, typescript, vuex-persistedstate, nodejs, web-server

## Member repositories
- prazdevs/pinia-plugin-persistedstate (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:58.380472+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-30T02:25:48.195661+00:00, confidence not recorded.
  - readme: https://github.com/prazdevs/pinia-plugin-persistedstate (fetched 2026-08-28T04:06:58.380472+00:00, sha 2f9b48079cbb)
  - homepage: https://prazdevs.github.io/pinia-plugin-persistedstate/ (fetched 2026-08-29T10:08:15.658610+00:00, sha 31f284cc6b28)
- Data as of 2026-08-30T08:39:29.467469+00:00.
