Skip to content
N

nuqs

Type-safe URL search params for React

Open source

#9605in Developer Tools
0In stores

Description

nuqs is a React library for keeping state in the URL's query string. Its API is like React's useState, but the value lives in the search par…

Highlights

  • Type-safe URL search parameters with a useState-like API
  • Works with Next.js, Remix, React Router and TanStack Router
  • Built-in parsers and serialisers for common types
  • History controls for search-parameter updates
  • Search-param access in nested server components

Ratings & Reviews

No ratings yet

Be the first to rate nuqs.

People also visit

S

state-in-url

Store any user state in query parameters; imagine JSON in a browser URL

Developer Tools
Launch
N

nuqs

Nuqs (type-safe URL query state) best practices for Next.js

AI Skills
Get
N

Nucleux

React state management that doesn't suck

Developer Tools
Launch
Z

zustand-state-management

Build type-safe global state in React with Zustand

AI Skills
Get
N

Nova.js

A collection of dependency-free React hooks

Developer Tools
Launch
R

react-dev

Should be used when building React components

AI Skills
Get

nuqs FAQ

What is nuqs?

A React library for storing state in the URL query string. It has a useState-like API, so values update the address bar as they change.

Which frameworks does it support?

Next.js with both the app and pages routers, React single-page apps, Remix, React Router and TanStack Router, among others.

Is nuqs open source?

Yes. Its source code is public on GitHub.

How do I use it?

Import useQueryState or useQueryStates from nuqs and use them the way you would use useState. The site has a short example and a playground.

Where is the documentation?

At nuqs.dev. The site notes that it has moved there.

What are the best nuqs alternatives?

Popular alternatives to nuqs include state-in-url, Nucleux and Nova.js. See all nuqs alternatives

Developer Stuff

Badges