# posva/pinia-colada

🍹 The smart data fetching layer for Vue

Repository: https://github.com/posva/pinia-colada
Canonical: https://ross.abutalabs.com/products/pinia-colada
Homepage: https://pinia-colada.esm.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: data-fetching, mutation, pinia, plugin, query, vue, pinia-plugin, cache, swr
Last push: 2026-08-26T20:00:31+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 85, longevity 70
- inputs: {"age_days": 987, "days_push": 7, "days_rel": 23, "gap_med": 1.5, "n_releases_24m": 91}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2221, forks 80 (observed 2026-08-28T04:06:27.600138+00:00)

## What it is
Pinia Colada is a smart data fetching layer for Vue applications built on top of Pinia. It provides automatic caching with request deduplication, async state management, optimistic updates, and SSR support with a small, tree-shakeable bundle.

## Use cases
- fetch and cache API data in a Vue app
- deduplicate duplicate requests in Vue components
- manage async state with loading and error handling in Vue
- implement optimistic updates for mutations
- server-side render data fetching in a Nuxt/Vue app
- replace boilerplate data fetching composables in Vue 3
- auto refetch stale data in the background

## When to choose
- you use Vue 3 with Pinia and want a TanStack Query-like data layer
- you need caching, deduplication, and optimistic updates for Vue async state
- you want SSR-ready data fetching with a tiny bundle size

## When to avoid
- you use React or another framework instead of Vue
- you need a full state management solution rather than a data fetching layer
- your project does not use Pinia and you don't want to adopt it

## Facets
- artifact type: library
- maturity: active
- function: caching, state-management, middleware, plugin-system, ssr
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: vue, pinia, data-fetching, query, mutation, swr, optimistic-updates, typescript, async-state, nodejs, web-server

## Member repositories
- posva/pinia-colada (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.600138+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:45:48.155701+00:00, confidence not recorded.
  - readme: https://github.com/posva/pinia-colada (fetched 2026-08-28T04:06:27.600138+00:00, sha 29a8f546a1e1)
  - homepage: https://pinia-colada.esm.dev (fetched 2026-08-29T10:25:56.743145+00:00, sha 4171742d3d32)
  - site_page: https://pinia-colada.esm.dev/guide/installation.html (fetched 2026-08-29T10:25:56.745477+00:00, sha 0a406576165b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
