talira

Sinatra-inspired Haskell web framework on WAI and Warp

open sourceBSD-3-Clausefree

Scotty is a Haskell web framework inspired by Ruby's Sinatra: a page is just an HTTP verb, a URL pattern and the content to return, which makes it a cheap and cheerful way to write RESTful, declarative web apps. It's template-language agnostic (anything that returns Text will do), conforms to WAI and runs on the fast Warp server by default. It was created by Andrew Farmer and is maintained by the Scotty maintainers.

Problems it solves

  • build a small REST API in Haskell
  • a minimal Sinatra-like web framework for Haskell
  • serve JSON endpoints from a Haskell program

Features

  • Sinatra-style routes with verbs and URL patterns
  • path parameters
  • template-language agnostic
  • WAI compatible, Warp by default

Alternatives

The same job

These do what Scotty does.

  1. Servant Type-level web API DSL for Haskell: servers, clients and docs from one type
  2. WAI Common interface between Haskell web applications and web servers

Compare Scotty with the top 3