Shorten is an extremely simple Sinatra based URL shortener. There is almost no UI and only the most basic of functionality.
You can see an example of this service running at vi.gl.
In this fork, the upload capability of the original has been entirely removed as it was announced as buggy.
$ git clone git://github.com/oisin/shorten.git
$ gem install rack sinatra sequel anybase pg
Optional: Install the Heroku gem if you want to deploy on Heroku.
$ gem install heroku
In the application directory run the following commands
$ heroku create
Configure the application per below.
$ git push heroku master
main.rb in your favorite editor and change this block:
Shorten = OpenStruct.new(
:base_url => "http://vi.gl/",
:service_name => "vi.gl",
:button_text => "vi.gl",
:path_size => 4
This is a fork of a fork of the original Shorten application created by Andrew Pilsch. I made some updates to randomize the shortened URL in the style of bit.ly and tr.im. I have also modified the software to be easy to deploy to Heroku.