
About Hanami
Hanami is a Ruby web framework that keeps code organised and maintainable as an app grows. It separates the web layer, the database layer and business logic into clear parts with defined roles.
What it does
The database layer uses relations to describe queries, repositories to combine them for business rules, and structs as value objects. Operations hold single jobs with explicit success and failure paths, which makes business logic easier to read and test. Routes are set out so you can see every URL in one place, and resource routes cover common patterns.
Key features
- Dedicated database layer with relations and repos
- Operations with explicit success and failure paths
- Structs as typed value objects
- Resource routes with a clear overview
Who it's for
Ruby teams that build apps expected to last for years and want structure from the start. It suits developers who value explicit boundaries between parts of an application more than quick, framework-wide shortcuts.
Pricing and good to know
Hanami is open source under the MIT licence and free to use. The project is maintained by the Hanakai community, which also runs a sponsorship drive. The structure asks more of you early on than a minimal framework, so it fits projects that will grow.
Highlights
- Dedicated database layer with relations
- Operations with explicit success and failure
- Structs as value objects
- Resource routes with a clear URL overview












