url-state

Installation
SKILL.md

URL State

A URL is a public contract: other people open it later, on other devices, in older or newer versions of the app. Decide what it carries, serialize it deliberately, and prove the round trip.

When the router ships its own search-params guidance (for example, TanStack Router's bundled skills), load it for the API; this skill covers what holds across routers.

Decide what belongs in the URL

Carry shareable intent: filters, query, sort, page and page size, and the selected item. Keep viewer-local state out, such as saved items, personal preferences, and the sender's local filters, and keep transient UI out. Done when every parameter is listed with its owner and default.

Serialize as strings on purpose

Installs
2
First Seen
Oct 26, 2026
Security Audits