Your URL is your state

Graphic titled “Your URL Is Your State”, showing a URL split into parts “http://www.example.com:80”, “/path/to/myfile.html”, “?key1=value1&key2=value2”, and “#SomewhereInTheDocument”, alongside JavaScript code for reading and updating URL parameters.

Ahmad Alfy explores how URLs can act as powerful, shareable state containers for web applications, capturing configuration, intent, and user experience without databases or cookies. He argues that well-designed URLs improve usability, resilience, and clarity by making state persistent, bookmarkable, and meaningful. URLs are the web’s oldest form of state management and still among the most elegant.

alfy.blog/2025/10/31/your-url-is-your-state.html