Features

Type-safe

End-to-end type safety between Server and Client components.

Universal

Supports both the app router and pages router.

Simple

A familiar React.useState-like API, that syncs with the URL.

Batteries included

Built-in parsers for common state types.

History controls

Replace or append to navigation history and use the Back button to navigate state updates.

Related queries

useQueryStates hook to manage multiple keys at once.

Client-first

Shallow updates by default, opt-in to notify the server to re-render RSCs (with throttle control).

Server cache

Type-safe search params access in nested React Server Components.

Transition

Support for useTransition to get loading states on server updates.

Customizable

Make your own parser and serializer.

Tiny

Only 4.09 kB gzipped.

Tested

Tested against every Next.js release.

Sponsors

Used by

lobehub/lobe-chatchatchat-space/Langchain-ChatchatGitbookIO/gitbooknextauthjs/next-authudecode/platerisingwavelabs/risingwavehyperdxio/hyperdxDhravya/supermemorymidday-ai/middaypancakeswap/pancake-frontendOpenpanel-dev/openpanelunkeyed/unkeyPeerDB-io/peerdbinngest/inngestBearStudio/start-ui-webun/inboxsaleor/storefrontblefnk/relivator-nextjs-templateblefnk/relivator-nextjs-starterAnswerOverflow/AnswerOverflowblefnk/relivatorbenjamintd/chronotrainsBennyKok/comfyui-deploypiotrkulpinski/openalternativeAIDotNet/fast-wikiisland-is/island.isBlazity/enterprise-commercefranky47/francoisbest.comline/abc-user-feedbackosmosis-labs/osmosis-frontendLightDotSo/LightDotSoyanggggjie/rising-repocraftgen/craftgenreductoai/remembrallrocicorp/repliearcalcom/platform-starter-kitBennyKok/comfyui-deploy-next-examplesmartive/smartive.chcommonalityco/commonalitymrmartineau/Ottermichaelkremenetsky/Refeedzakiego/baku-hantamchristianalares/seventy-sevenalfonsusac/service-title-logoswiss-knife-xyz/swiss-knifeanand346/findissuesLevofron/NotionLingogitcoinco/easy-retro-pgfbgwastu/moonlitdingyi/ding.onepillowfication/ffxiv0xbe1/miniscanhirosystems/ordinals-explorermicro-course/coreun/webhook-proxywebb-tools/webb-dapptheopensource-company/playrbasehocgin/yourself-emailFTCHD/frametrainjsartisan/frontend-challengesPhantomKnight287/framegroundCSSPanel/Panelaristofany-herderson/react-pokedexVizzuality/landgriffonoss-compass/compass-webskip-mev/ibc-dot-funJoana311/adalia.infocosmicjs/blocksjoulev/websitechr-ge/chr-ge.comjacobtipp/bloc-statebetagouv/france-chaleur-urbainePanfactum/stackBerriAI/Berri-chat-feethereumfollowprotocol/appfingerprintjs/fingerprintjs-pro-use-casesibnumusyaffa/starterkit-react-typescriptdoubleopen-project/dosteamreflex/cosmo-webswishjam/promptcrafty-temp4/y-temp4.comdatduyng/personal-sitedorji-dev/next_appmateusfg7/text-toolsvolkyeth/noundrypranav377/orsivekubeagi/agent-portal0xbe1/okgraphcomplexdatacollective/Frescoinformatyzacja/strona-organizacji-studenckichSwiichyCode/GitShareSpacejonahsnider/frc-colors.comtbezman/edgedb-fetchrjackson/dentistsDITP-pilotage/pilote-2hanad124/furqan-constructionsTechnoculture/echoescodegino/profiledevGod1994/relivatorviliket/live-trains-finland
N8
N8
@nathanbrachotte

I started building my own hook helpers for handling URL states and had to deal with some performance drawbacks.

Eventually stumbled on this little beauty and it has everything I wanted and more.

Kingsley O.
Kingsley O.
@Kingsley_codes
The DX improvement using nuqs for me has been amazing.
We use nuqs pretty much everywhere 🖤
Acropolis1111
Acropolis1111
/u/Acropolis1111
This package is dope
thx a lot for this awesome library! I was syncing with URL like nextjs recommends .. performance are awful and I was about to move back to useState.
KafKa
KafKa
@KafKa303
This is a great idea, way better than calling useSearchParam and cook my own stuff! nuqs is such a important last piece for app router! An extremely underrated lib!