2026-05-22

Sinatra as the HTTP Shell

Sinatra is a good fit when you want the application server to stay small.

In this project, Sinatra does not need to know much about pages. It only needs to:

  • Match a route
  • Call a PostgreSQL function
  • Apply the returned status and headers
  • Return the body

That keeps the architecture easy to reason about.

PostgreSQL is the rendering engine. Sinatra is the delivery layer.