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 & serializers 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. No prop drilling needed.

Transition

Support for useTransition to get loading states on server updates.

Customizable

Make your own parser and serializer.

Tiny

Only 3.64 kB gzipped.

Tested

Tested against every Next.js release.

Sponsors

Used by

openpanel.dev

supabase/supabaselobehub/lobe-chatcalcom/cal.comchatchat-space/Langchain-ChatchatGitbookIO/gitbooknextauthjs/next-authlearn-anything/learn-anythingudecode/platebaptisteArno/typebot.iorisingwavelabs/risingwavesupermemoryai/supermemoryhyperdxio/hyperdxopenstatusHQ/openstatusmidday-ai/middaymfts/papermarkunkeyed/unkeyBasedHardware/omiDhravya/supermemoryOpenpanel-dev/openpanelpancakeswap/pancake-frontendsadmann7/shadcn-tableKiranism/next-shadcn-dashboard-starterPeerDB-io/peerdbinngest/inngestpiotrkulpinski/openalternativeun/inboxBearStudio/start-ui-weblunary-ai/lunarysaleor/storefrontblefnk/relivator-nextjs-templateBennyKok/comfyui-deployAnswerOverflow/AnswerOverflowlatticexyz/mudbenjamintd/chronotrainstszhong0411/honghong.meBlazity/enterprise-commerceAIDotNet/fast-wikifreesewing/freesewingisland-is/island.isgetsentry/sentry-docsline/abc-user-feedbackcraftgen/craftgenosmosis-labs/osmosis-frontendfranky47/francoisbest.comLightDotSo/LightDotSoyanggggjie/rising-reporeductoai/remembrallmichaelkremenetsky/Refeedrocicorp/replieartryabby/abbymrmartineau/Ottercommonalityco/commonalitysmartive/smartive.chchristianalares/seventy-sevenzakiego/baku-hantamswiss-knife-xyz/swiss-knifeSouthclaws/storydenalfonsusac/service-title-logoTheOrcDev/orcish-fullstack-adminzeus-12/uxiechokiproai/ChatGPT-Pluginsanand346/findissuesgitcoinco/easy-retro-pgfLevofron/NotionLingomichaelbrusegard/WebGL-Fluid-Enhancedzachpmanson/minecraftlejsartisan/frontend-challengesbgwastu/moonlitsujjeee/artoonspillowfication/ffxiv0xbe1/miniscandingyi/ding.onetheopensource-company/playrbasehocgin/yourself-emailhirosystems/ordinals-explorermicro-course/coresoni-canra-wiguna/lazoraniikeec/gnipwebb-tools/webb-dapptangle-network/dappPhantomKnight287/framegroundnikitavoloboev/tryFTCHD/frametrainCSSPanel/Panelbikespace/bikespaceprojectawakening/builder-examplesethereumfollowprotocol/appzack/citibikeskip-mev/skip-go-appBibliothecaDAO/RealmsWorldteamreflex/cosmo-weboss-compass/compass-webaristofany-herderson/react-pokedexbitcoinlayers/bitcoinlayerscosmicjs/blocksfingerprintjs/fingerprintjs-pro-use-casesJoana311/adalia.infoVizzuality/landgriffonwootsbot/X-boilerplateayanamists/oh-my-old-tweet
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 🖤
It’s a database ORM for your URL
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!