# hanami/hanami

A flexible framework for maintainable Ruby apps

Repository: https://github.com/hanami/hanami
Canonical: https://ross.abutalabs.com/products/hanami
Homepage: http://hanamirb.org
Language: Ruby
License: MIT
License Family: permissive
Topics: hanami, ruby, web, web-application, api, ruby-application
Last push: 2026-08-24T16:45:05+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 4772, "days_push": 9, "days_rel": 12, "gap_med": 25.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6407, forks 552 (observed 2026-08-28T04:09:43.175810+00:00)

## What it is
Hanami is a full-stack, modular Ruby web framework composed of small single-purpose libraries (router, actions, views, database, assets) tied together for building maintainable web apps and APIs. It emphasizes separated concerns, explicit business logic, and a dedicated data layer with relations, repositories, and structs.

## Use cases
- build a maintainable ruby web application
- create a json api in ruby
- replace rails with a lighter modular framework
- structure business logic with composable operations
- manage database queries with repositories and relations
- build a full-stack web app with server-rendered views

## When to choose
- you want a modular, explicit-architecture alternative to Rails for Ruby web apps
- you value testability, separation of concerns, and a dedicated data layer
- you need to build APIs or server-rendered apps with Rack-compatible components

## When to avoid
- you need a huge ecosystem of gems and batteries-included conventions like Rails
- your team relies on ActiveRecord-style patterns
- you are building non-web tooling where a web framework adds overhead

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, routing, templating, orm, database, http-server, middleware, cli, api-framework
- domain: web-development, backend, developer-tools, apis
- platform: ruby, cli, cross-platform
- tags: rack, full-stack, modular-architecture, dry-rb, mvc, rubygems, web-server

## Member repositories
- hanami/hanami (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:43.175810+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:44:56.428863+00:00, confidence not recorded.
  - readme: https://github.com/hanami/hanami (fetched 2026-08-28T04:09:43.175810+00:00, sha 450907d984a0)
  - homepage: http://hanamirb.org (fetched 2026-08-29T08:41:52.239808+00:00, sha 683e06a240b8)
  - site_page: https://hanakai.org/learn/hanami (fetched 2026-08-29T08:41:52.242613+00:00, sha 4cfdda14c25b)
  - site_page: https://hanakai.org/learn/hanami/actions (fetched 2026-08-29T08:41:52.245045+00:00, sha eb7211824726)
- Data as of 2026-08-30T08:39:29.467469+00:00.
