~/talk

Type-safe URL state in with nuqs

Talkat Next.js Conf 2025 · on Wednesday, 2025-10-22· [typescript, frontend-architecture]
slides:none on file

nuqs is a library that treats the URL as a type-safe search params store for Next.js and other React frameworks, claiming 1M weekly downloads and adoption at Sentry, Supabase and Vercel. It provides adapters for the Next app router, declarative parsers/serializers, server-side loaders, and typed link generators; demos show a counter that teleports state between tabs and an album filter that uses time safety (throttle/debounce + startTransition) to avoid one-request-per-keystroke while still performing SSR when shallow routing is disabled.

AI-written summary · about

  1. 0:00Introduction to nuqs
  2. 0:36Benefits of URL state
  3. 1:48URL as communication link
  4. 2:55Drawbacks and pitfalls
  5. 6:41Nuqs declarative approach
  6. 8:18Demo: Basic counter
  7. 10:34Router and History APIs
  8. 11:34Demo: Data fetching and SSR
  9. 15:37Optimizing URL updates
  10. 20:16Type-safe links
  11. 22:40URL key remapping
  12. 24:00Recap and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.