The web, with simplicity.
Hanami combines small yet powerful frameworks:
- Hanami::Utils - Ruby core extensions and class utilities
- Hanami::Router - Rack compatible HTTP router for Ruby
- Hanami::Validations - Validations mixin for Ruby objects
- Hanami::Helpers - View helpers for Ruby applications
- Hanami::Mailer - Mail for Ruby applications
- Hanami::Model - Persistence with entities, repositories and data mapper
- Hanami::Assets - Assets management for Ruby
- Hanami::View - Presentation with a separation between views and templates
- Hanami::Controller - Full featured, fast and testable actions for Rack
These components are designed to be used independently or together in a Hanami application. If you aren't familiar with them, please take time to go through their READMEs.
You can give back to Open Source, by supporting Hanami development via a donation. :green_heart:
- Home page: http://hanamirb.org
- Community: http://hanamirb.org/community
- Guides: http://hanamirb.org/guides
- Mailing List: http://hanamirb.org/mailing-list
- API Doc: http://rdoc.info/gems/hanami
- Bugs/Issues: https://github.com/hanami/hanami/issues
- Support: http://stackoverflow.com/questions/tagged/hanami
- Forum: https://discuss.hanamirb.org
- Chat: http://chat.hanamirb.org
Hanami supports Ruby (MRI) 2.3+
% gem install hanami
% hanami new bookshelf % cd bookshelf && bundle % bundle exec hanami server # visit http://localhost:2300
Please follow along with the Getting Started guide.
We strive for a Community made of inclusive, helpful and smart people. We have a Code of Conduct to handle controversial cases. In general, we expect you to be nice with other people. Our hope is for a great software and a great Community.
Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the Contributor Covenant, version 1.1.0, available from http://contributor-covenant.org/version/1/1/0/
- Fork it ( https://github.com/hanami/hanami/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request
How To Use Hanami HEAD
If you want to test Hanami HEAD to try a new feature or to test a bug fix here how to do:
git clone https://github.com/hanami/hanami.git cd hanami && bundle bundle exec hanami new --hanami-head=true bookshelf cd bookshelf vim Gemfile # edit with: gem 'hanami', path: '..' bundle
- Ruby 2.3+ / JRuby 184.108.40.206+
- Qt (MacOS)
- Node.js (MacOS)
In order to simulate installed gems on developers' computers, the build installs
all the gems locally in
hanami code from
Before to run a test please make sure to have a fresh version of the code:
% ./script/setup % bundle exec rspec spec/path/to/file_spec.rb
Build / CI
To run all the tests, please use:
Hanami uses Semantic Versioning 2.0.0
Copyright © 2014-2016 Luca Guidi – Released under MIT License
This project was formerly known as Lotus (