Hanami is a modern Ruby web framework that aims to be lightweight, fast, and modular, in contrast to the monolithic design of Rails. It emphasizes separation of concerns, encouraging developers to structure applications into clear layers of controllers, views, entities, and repositories. Each component—like the router, model layer, or view rendering engine—can be used independently, which gives developers flexibility to build lean applications. Hanami promotes immutability, plain old Ruby objects, and minimized global state, which makes codebases more maintainable and testable. It supports multi-application setups within the same project, making it well-suited for larger service-oriented architectures. The framework is designed to provide Rails-like productivity while encouraging more explicit architecture and performance-conscious choices.

Features

  • Modular structure: routers, controllers, views, models separated clearly, enabling smaller and more maintainable components
  • Support for multiple rendering engines, templating, and view layer flexibility
  • Support for multiple persistence adapters (ORMs) or data layers
  • Middleware stack and configurable application architecture
  • Emphasis on performance, memory efficiency, faster boot times compared to heavier frameworks
  • Support for streaming responses, web sockets, or modern web features as needed (depending on configuration)

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Hanami

Hanami Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hanami!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Frameworks

Registered

2025-09-17