State-in-url library

Hi, I created a library (~2kb) to share state between unrelated components and sync state to URL. Next.js14/15 with app router are supported, and react-router as well.

Unique features are:

  • can store complex nested objects
  • types of data are preserved
  • supports Typescript
  • API is very similar to useState
  • Works with Server Components, only dynamic rendering, obviously
  • MIT license

Demo https://state-in-url-asmyshlyaev177.vercel.app/

Will appreciate feedback and/or stars, tnx.

3 Likes

Super cool! Just left you a star :sparkles:

1 Like

Interesting! Reminds me of https://nuqs.47ng.com :slight_smile:

1 Like

It is similar, but can handle types for you, and support react-router as well.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.