mcpField
N
nuqs-v2

nuqs-v2

github.com/blockmaticDevelopment1220 installsUpdated 5w ago
Repository

About nuqs-v2

nuqs-v2 is a best-practices guide for managing URL query state with nuqs in Next.js, React Router, TanStack Router, Remix, and React projects. Its 39 prioritized rules across eight categories support code generation, refactoring, and review.

Key features

  1. 0139 prioritized practice rules
  2. 02Eight rule categories
  3. 03Parser and adapter setup guidance
  4. 04Server integration and performance guidance
  5. 05Debugging, testing, and advanced patterns

Use cases

  1. 01Implementing URL-based state
  2. 02Configuring query parameter parsers
  3. 03Integrating URL state with Server Components
  4. 04Troubleshooting nuqs issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/blockmatic/basilic-skills --skill nuqs-v2

After installing, type/nuqs-v2in Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
assets/templates/
_template.md
references/
_sections.md
advanced-custom-parsers.md
advanced-eq-function.md
advanced-framework-adapters.md
advanced-process-url-search-params.md
advanced-url-keys.md
compiled.md
debug-enable-logging.md
debug-testing.md
history-push-navigation.md
history-scroll-behavior.md
parser-array-format.md
parser-date-format.md
parser-enum-validation.md
parser-index-offset.md
parser-json-validation.md
parser-use-typed-parsers.md
parser-with-default.md
perf-avoid-rerender.md
perf-clear-on-default.md
perf-debounce-search.md
perf-key-isolation.md
perf-serialize-utility.md
perf-throttle-updates.md
server-next15-async.md
server-parse-before-get.md
server-search-params-cache.md
server-shallow-false.md

Details

From the project README

Community nuqs Best Practices for Next.js & React

Comprehensive guide for type-safe URL query state management with nuqs across Next.js, React Router, TanStack Router, Remix, and plain React. Covers nuqs v2.5–v2.9 features. Contains 39 rules across 8 categories, prioritized by impact to guide code generation, refactoring, and code review.

When to Apply

Reference these guidelines when:

  • Implementing URL-based state with nuqs
  • Setting up nuqs in a Next.js or React Router project
  • Configuring parsers for URL parameters
  • Integrating URL state with Server Components
  • Optimizing URL update performance (limitUrlUpdates, key isolation)
  • Sharing parser definitions with tRPC / TanStack Router / forms via Standard Schema
  • Debugging nuqs-related issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Parser ConfigurationCRITICALparser-
2Adapter & SetupCRITICALsetup-
3State ManagementHIGHstate-
4Server IntegrationHIGHserver-
5Performance OptimizationMEDIUMperf-
6History & NavigationMEDIUMhistory-
7Debugging & TestingLOW-MEDIUMdebug-
8Advanced PatternsLOWadvanced-

Quick Reference

1. Parser Configuration (CRITICAL)
2. Adapter & Setup (CRITICAL)
3. State Management (HIGH)
4. Server Integration (HIGH)
5. Performance Optimization (MEDIUM)
6. History & Navigation (MEDIUM)
7. Debugging & Testing (LOW-MEDIUM)
8. Advanced Patterns (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
compiled.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Interactions

  • Complements ahooks-v3 for grouped/local state not in the URL
  • Complements tanstack-query-v5 for async server data (loading/error from queries)
  • State decision tree: URL-shareable UI → nuqs; grouped ephemeral UI → ahooks; async data → TanStack Query

Comments

Markdown supported