# pbeshai/use-query-params

React Hook for managing state in URL query parameters with easy serialization.

Repository: https://github.com/pbeshai/use-query-params
Canonical: https://ross.abutalabs.com/products/use-query-params
Homepage: https://pbeshai.github.io/use-query-params
Language: TypeScript
License: ISC
License Family: permissive
Topics: react, reactjs, hooks, react-hooks, url, query, queryparams, query-parameters, querystring
Last push: 2026-01-21T23:42:33+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 63, release rhythm 59, longevity 100
- inputs: {"age_days": 2731, "days_push": 224, "days_rel": 279, "gap_med": 1, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2232, forks 99 (observed 2026-08-28T04:06:29.163543+00:00)

## What it is
A React library providing hooks, HOCs, and render props for managing application state in URL query parameters with type-safe serialization and deserialization. It works out of the box with React Router 5 and 6 and is written in TypeScript.

## Use cases
- sync react component state with url query params
- encode and decode typed query parameters in react
- make filter state shareable via url in a react app
- manage query string state with react router
- serialize complex data types into url query strings

## When to choose
- you use React with React Router and want URL-backed state
- you need typed, memoized serialization of query parameters
- you want shareable/bookmarkable URLs that encode app state

## When to avoid
- you don't use React
- you need state management without URL coupling
- you use a router other than React Router without custom adapter work

## Facets
- artifact type: library
- maturity: active
- function: state-management, serialization, routing
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: react-hooks, query-parameters, url-state, react-router, typescript, nodejs

## Member repositories
- pbeshai/use-query-params (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.163543+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:44:25.190292+00:00, confidence not recorded.
  - readme: https://github.com/pbeshai/use-query-params (fetched 2026-08-28T04:06:29.163543+00:00, sha 7072e44763c2)
  - homepage: https://pbeshai.github.io/use-query-params (fetched 2026-08-29T10:25:06.705666+00:00, sha 87a0cd622924)
  - registry_npm: https://registry.npmjs.org/use-query-params (fetched 2026-08-29T10:25:06.707981+00:00, sha 4dab14c5ca23)
- Data as of 2026-08-30T08:39:29.467469+00:00.
