Scalatra is a lightweight, high-performance micro web framework written in Scala, inspired by the Ruby framework Sinatra. Its goal is to provide a minimal but expressive foundation for building web applications or REST APIs in Scala without the verbosity or steep learning curve of larger frameworks. It supports asynchronous request handling, routing, filters, content negotiation, and easy integration with templating, JSON libraries, and other web middleware. Being unopinionated, it lets developers pick their persistence, dependency injection, or templating layers, rather than enforcing heavy conventions. Scalatra is well-suited for services, APIs, or small–to–medium web applications where you want fine control over latency and structure, and it benefits from Scala’s type system and ecosystem.

Features

  • Support for simple routing DSL: get, post, put, delete etc with parameter extraction in path or query string
  • Integration with templating engines (views), JSON support etc for building full web apps or APIs
  • Asynchronous request handling and non-blocking IO (for high throughput and responsive behavior)
  • Compatibility with JVM ecosystem: works with Java servlet containers or embedded servers, integrates with SBT, etc.
  • Modular and extendable with filters, middleware-style hooks, and flexible configuration
  • Small core overhead; minimal boilerplate for setting up routes / handlers

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

Follow Scalatra

Scalatra Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Scalatra!

Additional Project Details

Programming Language

Scala

Related Categories

Scala Frameworks

Registered

2025-09-18