Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hanami

> 编程语言
Open source

A flexible framework for maintainable Ruby apps

6.4K stars0 likes0 views
WebsiteGitHub

About

A flexible framework for maintainable Ruby apps

Hanami

A flexible framework for maintainable Ruby apps.

Hanami is a full-stack Ruby web framework. It's made up of smaller, single-purpose libraries.

This repository is for the full-stack framework, which provides the glue that ties all the parts together:

  • Hanami::Router - Rack compatible HTTP router for Ruby
  • Hanami::Action - Full featured, fast and testable actions for Rack
  • Hanami::View - Presentation with a separation between views and templates
  • Hanami::DB - Database integration, complete with migrations, repositories, relations, and structs
  • Hanami::Assets - Assets management for Ruby

These components are designed to be used independently or together in a Hanami application.

Installation

gem install hanami

Usage

hanami new bookshelf
cd bookshelf && bundle
bundle exec hanami dev
# Now visit http://localhost:2300

Please follow along with the Getting Started guide.

Contributing

  1. Fork it (https://github.com/hanami/hanami/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

In addition to contributing code, you can help to triage issues. This can include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to subscribe to hanami on CodeTriage.

Tests

To run all test suite:

$ bundle exec rake

To run all the unit tests:

$ bundle exec rspec spec/unit

To run all the integration tests:

$ bundle exec rspec spec/integration

To run a single test:

$ bundle exec rspec path/to/spec.rb

Links

  • User documentation
  • API documentation

License

See LICENSE file.

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •Hanami::Router - Rack compatible HTTP router for Ruby
  • •Hanami::Action - Full featured, fast and testable actions for Rack
  • •Hanami::View - Presentation with a separation between views and templates
  • •Hanami::DB - Database integration, complete with migrations, repositories, relations, and structs
  • •Hanami::Assets - Assets management for Ruby
  • •User documentation
  • •API documentation

> Tags

Rubyapihanamirubyruby-application

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言