{"repo":"asmyshlyaev177/state-in-url","free":true,"listed":false,"github":"https://github.com/asmyshlyaev177/state-in-url","clone":"git clone https://github.com/asmyshlyaev177/state-in-url.git","description":"Store any user state in query parameters; imagine JSON in a browser URL, while keeping types and structure of data, e.g.numbers will be decoded as numbers not strings. With TS validation. Shared state and URL state sync without any hassle or boilerplate. Supports Next.js@14-16, react-router@6-7, and Remix@2.","language":"JavaScript","stars":418,"topics":["client-components","nextjs","query-params","react-hooks","reactjs","state-management","typescript","useurlstate","deep-links","url-synchronization"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"English · 简体中文 · 日本語 · 한국어 · Русский · Español · Português (BR) · Français · Tiếng Việt # State in url ) Don't hesitate to open an issue if you found a bug, or for requesting features Demo Demo Mirror link URI size limitation, up to 12KB is safe Add a and follow me to support the project! Will appreciate you feedback/opinion on discussions Share if it useful for you. X.com LinkedIn FB VK Just Show Me Code! Why use state-in-url ? Store any user state in query parameters; imagine JSON in a browser URL. All of it with keeping types and structure of data, e.g. numbers will be decoded as numbers not strings, dates as dates, etc, objects and arrays supported. Dead simple, fast, and with static Typescript validation. Deep links, aka URL synchronization, made easy. Contains useUrlState hook for Next.js and react-router, and helpers for anything else on JS. Since modern browsers support huge URLs and users don't care about query strings (it is a select all and copy/past workflow). Time to use query string for state management, as it was originally intended. This library does all mundane stuff for you. This library is a good alternative for NUQS. Use cases - Store unsaved user forms or page filters in URL - Sync URL with React state - Just sync data between unrelated client components without touching URI - Shareable URLs with application state (Deep linking, URL state synchronization) - Easy state persistence across page reloads Features - 🧩 Simple : No providers, reducers, boilerpla","default_branch":null,"files":null,"tree":[],"storefront":"/r/asmyshlyaev177","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/asmyshlyaev177/state-in-url/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}