Sinatra (software)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Original author(s) Blake Mizerany
Developer(s) Konstantin Haase
Initial release 9 September 2007 (2007-09-09)
Stable release
2.0.3[1] / 8 June 2018; 2 months ago (2018-06-08)
Repository Edit this at Wikidata
Written in Ruby
Operating system Cross-platform
Type Web application framework
License MIT License

Sinatra is a free and open source software web application library and domain-specific language[2] written in Ruby. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Merb, Nitro, and Camping. It is dependent on the Rack web server interface. It is named after musician Frank Sinatra.[3]

Designed and developed by Blake Mizerany, Sinatra is small and flexible. It does not follow the typical model–view–controller pattern used in other frameworks, such as Ruby on Rails. Instead, Sinatra focuses on "quickly creating web-applications in Ruby with minimal effort."[4]

Some notable companies and institutions that use Sinatra include Apple,[5] BBC,[6] the British Government's Government Digital Service,[7] LinkedIn,[8] the National Security Agency,[9] Engine Yard, Heroku, GitHub,[10] Stripe, and Songbird.[11] Travis CI provides much of the financial support for Sinatra's development.[12]

Sinatra was created and open-sourced in 2007.


#!/usr/bin/env ruby
require 'sinatra'

get '/' do
  redirect to('/hello/World')

get '/hello/:name' do
  "Hello #{params[:name]}!"


Further reading[edit]

External links[edit]