lukemorales/query-key-factory
A library for creating typesafe standardized query keys, useful for cache management in @tanstack/query observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1473
- days_rel: n/a
- days_push: 612
- n_releases_24m: 0
Adoption not part of the score
1673 stars · 50 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library for creating typesafe, standardized query keys for TanStack Query (React Query, Vue Query, Solid Query, Svelte Query). It provides a query key store factory with auto-completion to simplify cache management and query invalidation.
Use cases
- manage query keys in react-query without typos
- create typesafe query key factories for tanstack query
- invalidate queries by key across an app
- co-locate queryFn with query keys in a single store
- standardize cache keys across react, vue, svelte, and solid apps
When to choose
- you use TanStack Query and want typesafe, auto-completed query keys
- your app has many queries and manual string keys cause bugs
- you want a single centralized query key store with attached queryFns
When to avoid
- you don't use TanStack Query or a similar cache-key-based data fetching library
- your app has only a handful of simple queries where manual keys suffice
Facets
library · maturity stable
caching state-management developer-tools frontend web-development developer-tools browser cross-platform tanstack-query react-query query-keys cache-management typescript vue-query svelte-query solid-query nodejs
1 source
- readme: https://github.com/lukemorales/query-key-factory · fetched 2026-08-28 · 57fbfe5b0794
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lukemorales/query-key-factory | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="lukemorales/query-key-factory")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem