This is Single Page App powered by the REST API of uri.im. It takes an URL and an optional custom key as a parameter. It returns a short URL in the response.
Review my code to suggest changes. Also, send a pull request in case you wish to add something to the code base.