Skip to content
cogs
Menu

Skill

nuqs-url-state

Type-safe URL state with nuqs in Next.js, with patterns mined from about 58 files that use it.

Parsers are the single source of truth for a query parameter’s name, type and default. The Skill covers client use with useQueryState and useQueryStates, server use with createSearchParamsCache, and shareable links with createSerializer.

The patterns that matter most come from the survey: converting between 0-indexed and 1-indexed pagination, resetting the page when filters, sort or search change, and test mocks that keep state.

This Skill on the docs site →