(edited)
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
https://github.com/asmyshlyaev177/state-in-url
Demo https://state-in-url-asmyshlyaev177.vercel.app/
Will appreciate feedback and/or stars, tnx.