# 47ng/nuqs

Type-safe search params state manager for React frameworks - Like useState, but stored in the URL query string.

Repository: https://github.com/47ng/nuqs
Canonical: https://ross.abutalabs.com/products/nuqs
Homepage: https://nuqs.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: url-state, react, type-safe, type-safety, url-parameters, url-params, search-params, state-management, query-params
Last push: 2026-08-26T09:06:27+00:00

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

## Adoption (not part of the score)
Stars 10769, forks 295 (observed 2026-08-28T04:10:44.215590+00:00)

## What it is
nuqs is a type-safe search params state manager for React frameworks, offering a useState-like API that stores state in the URL query string. It supports Next.js (app and pages routers), plain React SPAs, Remix, React Router, and TanStack Router via adapters, with built-in parsers and serializers for common state types.

## Use cases
- sync react component state with url query string
- manage filters and pagination in url params in next.js
- type-safe search params in react server components
- shareable urls with encoded app state
- parse and serialize query string values like dates and integers
- manage multiple related querystring keys in react
- use browser back button to navigate state changes

## When to choose
- you build React apps (especially Next.js) and want URL-driven, shareable state
- you need end-to-end type safety between server and client components for search params
- you want a tiny (5.9kB) hook-based alternative to manual query string handling
- you need built-in parsers for common types and history control (replace vs append)

## When to avoid
- your project is not React-based (Vue, Svelte, Angular)
- you only need to read query params once on page load without reactive updates
- you need complex global state management beyond URL-representable state

## Facets
- artifact type: library
- maturity: stable
- function: state-management, serialization, routing, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: react, nextjs, url-state, query-params, search-params, type-safety, hooks, remix, react-router, tanstack-router, nodejs, web-server

## Member repositories
- 47ng/nuqs (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:44.215590+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:17:53.145291+00:00, confidence not recorded.
  - readme: https://github.com/47ng/nuqs (fetched 2026-08-28T04:10:44.215590+00:00, sha 68503d552110)
  - homepage: https://nuqs.dev (fetched 2026-08-29T08:17:12.439906+00:00, sha 3db36678b613)
  - site_page: https://nuqs.dev/docs (fetched 2026-08-29T08:17:12.449692+00:00, sha 647ed6210f69)
  - site_page: https://nuqs.dev/docs/changelog (fetched 2026-08-29T08:17:12.451949+00:00, sha 4bf307ff425b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
