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

GitbookIO/gitbooknextauthjs/next-authunkeyed/unkeymidday-ai/middayPeerDB-io/peerdbinngest/inngestOpenpanel-dev/openpanelBennyKok/comfyui-deployisland-is/island.ispiotrkulpinski/openalternativeLightDotSo/LightDotSoyanggggjie/rising-reporeductoai/remembrallsmartive/smartive.chcommonalityco/commonalityBennyKok/comfyui-deploy-next-examplemichaelkremenetsky/Refeedzakiego/baku-hantammrmartineau/Otterblefnk/reliversecraftgen/craftgenBlazity/enterprise-commercegitcoinco/easy-retro-pgfswiss-knife-xyz/swiss-knifemicro-course/coretheopensource-company/playrbasearistofany-herderson/react-pokedexPhantomKnight287/framegroundCSSPanel/Panelbetagouv/france-chaleur-urbainecosmicjs/blocksethereumfollowprotocol/appfingerprintjs/fingerprintjs-pro-use-casesdoubleopen-project/dosjoulev/websitedatduyng/personal-sitey-temp4/y-temp4.comkubeagi/agent-portaldevGod1994/relivatorvolkyeth/noundrycomplexdatacollective/Frescoinformatyzacja/strona-organizacji-studenckichjonahsnider/frc-colors.comcodegino/profilemateusfg7/text-toolstbezman/edgedb-fetchviliket/live-trains-finlandteamreflex/cosmo-webTechnoculture/echoesSwiichyCode/GitShareSpaceDNUM-SocialGouv/helioschristianalares/seventy-sevenjguddas/lucide-studioasuutd/websiteFixMyBerlin/atlas-appkisk-muni/scrapbookkahosan/acgn-collectionVizzuality/skytruth-30x30CivicDataLab/opub-monoOskarMast/OpenAI_Integraion_platformjisensee/adalia.infoXenoPOMP/next-templateRiskyMH/Statsalfonsusac/art-findrplezanje-net/next-webmaulanasdqn/next13-boilerplatedownbeat-academy/downbeat-academySwaprHQ/stackly-uijonmumm/KitchenCraft0xaaiden/unigov-simoptionhq/negation-gameBlueBrain/core-web-appwavyrai/PromptSharechenshuai2144/xingxingdanlevison/FUTR-Gaming-AppDavidRouyer/customer-serviceRafalWojciechRolsky/sklep-nextjsbratislava/konto.bratislava.skandrewtsun25/djin-nextOmniBytes/pi-hubmalpercio-dev/super-snail-helpersvarkaria/pypydance-songs-databased-asensio/dive-nerdCOSC-499-W2023/year-long-project-team-9LBiyou/Treasure-Chestwyvern-cloud/wyvern-uifront-matter/akitaJohnnyhhhhh/lobe-chat1luxfi/webhanzoai/react-sdkThomasLeveque/deve-nextniklasarnitz/waslaeuftinFTCHD/frametrainvictorwrage/lobe-hubnoxify/reactquerybuilder-nextjs-rsc-queryparamsxKarol/pollmaulanasdqn/reservation-managementmaxwiseman/ai-inboxWORTI3/nhs-interactiveyudaaditya245/comichub-ui
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!