# Sinatra

> A DSL for quickly creating web applications in Ruby

Source: https://talira.ai/catalog/sinatra-wdjbgp5t
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Sinatra](https://talira.ai/orgs/sinatra-project.md)

Sinatra is a small Ruby web framework: you map HTTP routes to blocks of code in a few lines, with no generators or required project layout, and run the app on any Rack server such as Puma. It handles routing with patterns and conditions, templates in ERB, Haml and other engines, filters, helpers and sessions. The same repository ships rack-protection, which guards against common web attacks, and sinatra-contrib, a set of common extensions.

## Links

- Website: https://sinatra.run/
- GitHub: https://github.com/sinatra/sinatra
- Docs: https://sinatra.run/documentation

## Problems it solves

- a tiny Ruby web framework for a small API without Rails
- spin up a few HTTP endpoints in Ruby in one file
- a lightweight Rack app with routes and templates

## Features

- routes in a few lines of Ruby
- runs on any Rack server (Puma and others)
- templates: ERB, Haml and other engines
- filters, helpers and sessions
- rack-protection and sinatra-contrib in the same repository

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.71, adoption 0.82, momentum 0.53, community 1.00, backing 0.30, extensibility 0.00.

- last commit 11 days ago
- 16 commits in the last 90 days
- 12.5k GitHub stars
- 530 contributors
- has a company behind it

## Alternatives

- [Ruby on Rails](https://talira.ai/catalog/ruby-on-rails-xkdcpj5k.md): Accelerate your agents with convention over configuration.
- [Grape](https://talira.ai/catalog/grape-2x0tspye.md): REST-like API framework for Ruby
- [Snails](https://talira.ai/catalog/snails-5pmz6hw5.md): Rails-like framework for API-only Ruby apps that compiles to one native binary
- [Rack](https://talira.ai/catalog/rack-gbmjzzj1.md): The minimal interface between Ruby web servers and web frameworks, with standard middleware
- [Hanami](https://talira.ai/catalog/hanami-ed17yh59.md): Ruby apps that grow with you

## Sources

[^1]: https://github.com/sinatra/sinatra/blob/main/LICENSE (checked 27 Nov 2026)
