I’ve been learning Ember.js lately and I’m excited using MVC frameworks in the browser. Without getting too far off the topic of this post before I even get started, I’ll mention what lead to write this library. Serializing app state into query parameters aren’t ready for primetime in Ember yet. But whether you’re using Ember or not, a quick and simple lib to get and set URL parameters can be pretty helpful.
I want to be able to deploy the current stable version of Ember while doing some light handling of URL parameters. I also have some situations where I want to save an interface state in URL parameters using pushState so that exact configuration is contained within the URL.
This is especially useful for serializing the state of an interface into the address bar without any page reloads. If implemented correctly, this allows the user to bookmark or share the page URL without having to put any input in to return to the desired state.
I’m using it with Ember a little bit until their URL parameter support starts shipping enabled.