Although Sinatra is mainly used for web-applications and quick prototyping, one of it's popular usage is as an API end-point for various applications built on Rails and other frameworks like EventMachine. For example, it is used for the web-portion of the iTunes Store on MacOSX. This section introduces some methods on embedding Sinatra in another framework.