nuqs

Like React.useState, but stored in the URL query string, in a type-safe manner.

nuqs | Type-safe search params state management for React

About

nuqs is a powerful tool designed for React developers, offering type-safe search params state management that seamlessly integrates with the URL query string, much like useState. This innovative solution is particularly helpful for developers working with React, Next.js, Remix, and other frameworks, providing a robust and efficient way to manage state changes. By leveraging nuqs, developers can enhance their application's performance and user experience.

Details

  • Type-safe: End-to-end type safety between Server and Client components.
  • Universal: Supports a wide range of frameworks including Next.js (app & pages routers), React SPA, Remix, React Router, and more.
  • Simple: Offers a familiar React.useState-like API that syncs with the URL.
  • Batteries included: Built-in parsers & serializers for common state types.
  • History controls: Ability to replace or append to navigation history and use the Back button to navigate state updates.
  • Related queries: Use useQueryStates hook to manage multiple keys at once.
  • Client-first: Shallow updates by default, with the option to notify the server to re-render RSCs (with throttle control).
  • Server cache:

Related tools

SponsorreShorts

Generate viral shorts, fast

AI Video Generation
SponsorHeadshotLab

Instant Professional Headhost

AI Headshot
SponsorGasbyAI

Fancy AI personal asistant

AI Assistant
SponsorCSV Table

View & edit CSV, JSON files for Pros

macOS
Capgo

Send and manage Realtime update for your capacitor app without store hassle, 5 min to install Over-the-Air (OTA) updates in your app. Use channels to send updates to specific users or groups of users.

AutomationDevelopment
Ruby On Remote

Remote work is not just the need of the hour it is a convenient way of life. Find curated remote ruby jobs in one place or post a job in your amazing company.

DevelopmentJobs
Mkdirs

Launch profitable directory website in minutes

DirectoriesDevelopment
EchoJobs

Use the filters in the search box to define the kind of software engineering jobs you want.

DevelopmentJobs
remoet.dev

Find fully remote companies hiring software engineers in 2023. Find the right fit for you from our amazing remote resources directory.

DevelopmentJobs
Remotebase

Remotebase | Hire silicon valley caliber developers remotely | Remote software engineers jobs

HiringDevelopment
Vue developers

The reverse job board for VueJS developers

HiringDevelopment
LectureKit

Faster & Simpler Way to Build & Sell Courses with AI

DevelopmentAI
Rocketlaunch

Launch your SaaS in record time 🚀

DevelopmentSoftware
Best SaaS Boilerplates

A curated directory of 100+ SaaS starters and boilerplates so you can ship today

BoilerplateDevelopment