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/hyperdxsupermemoryai/supermemoryDhravya/supermemorymidday-ai/middaypancakeswap/pancake-frontendOpenpanel-dev/openpanelunkeyed/unkeyPeerDB-io/peerdbinngest/inngestBearStudio/start-ui-webun/inboxsaleor/storefrontlunary-ai/lunaryblefnk/relivator-nextjs-templateAnswerOverflow/AnswerOverflowblefnk/relivator-nextjs-starterblefnk/relivatorBennyKok/comfyui-deploybenjamintd/chronotrainspiotrkulpinski/openalternativeAIDotNet/fast-wikiisland-is/island.isBlazity/enterprise-commerceline/abc-user-feedbackfranky47/francoisbest.comosmosis-labs/osmosis-frontendLightDotSo/LightDotSoyanggggjie/rising-repocraftgen/craftgenreductoai/remembrallcalcom/platform-starter-kitrocicorp/repliearBennyKok/comfyui-deploy-next-examplesmartive/smartive.chcommonalityco/commonalitymichaelkremenetsky/Refeedmrmartineau/Otterchristianalares/seventy-sevenzakiego/baku-hantamswiss-knife-xyz/swiss-knifealfonsusac/service-title-logoanand346/findissuesLevofron/NotionLingogitcoinco/easy-retro-pgfbgwastu/moonlitdingyi/ding.one0xbe1/miniscanpillowfication/ffxivhirosystems/ordinals-explorerun/webhook-proxymicro-course/coretheopensource-company/playrbasewebb-tools/webb-dapphocgin/yourself-emailPhantomKnight287/framegroundjsartisan/frontend-challengesoss-compass/compass-webCSSPanel/PanelJoana311/adalia.infoskip-mev/ibc-dot-funVizzuality/landgriffonskip-mev/skip-go-apparistofany-herderson/react-pokedexFTCHD/frametrainjoulev/websitefingerprintjs/fingerprintjs-pro-use-casescosmicjs/blocksbetagouv/france-chaleur-urbainejacobtipp/bloc-statechr-ge/chr-ge.comBerriAI/Berri-chat-feibnumusyaffa/starterkit-react-typescriptPanfactum/stackethereumfollowprotocol/appteamreflex/cosmo-webdoubleopen-project/dosvolkyeth/noundrydorji-dev/next_appmateusfg7/text-toolsswishjam/promptcraftdatduyng/personal-sitey-temp4/y-temp4.comkubeagi/agent-portal0xbe1/okgraphpranav377/orsiveFixMyBerlin/atlas-appSwiichyCode/GitShareSpacejonahsnider/frc-colors.comjguddas/lucide-studiojonmumm/KitchenCraftcomplexdatacollective/Frescoviliket/live-trains-finlandSuperdev0909/lobe-chat-maininformatyzacja/strona-organizacji-studenckich
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!