Software Alternatives, Accelerators & Startups

Ruby on Rails VS Hanami

Compare Ruby on Rails VS Hanami and see what are their differences

Ruby on Rails logo Ruby on Rails

Ruby on Rails is an open source full-stack web application framework for the Ruby programming...

Hanami logo Hanami

Hanami is a modern web framework for Ruby.
  • Ruby on Rails Landing page
    Landing page //
    2023-10-23

We recommend LibHunt Ruby for discovery and comparisons of trending Ruby projects. Also, to find more open-source ruby alternatives, you can check out libhunt.com/r/rails

  • Hanami Landing page
    Landing page //
    2023-07-01

Ruby on Rails features and specs

  • Rapid Development
    Ruby on Rails uses conventions over configurations which allows developers to build applications quickly. It comes with a wealth of built-in tools and libraries that streamline the development process.
  • Community Support
    Rails has a vibrant and active community. This means a lot of third-party libraries (gems) are available, and you can easily find help and resources.
  • Convention over Configuration
    Rails emphasizes convention over configuration, which reduces the number of decisions developers need to make. This can increase productivity and consistency across projects.
  • Built-in Testing
    Rails comes with a strong built-in testing framework, making it easier to test your application and ensure that it works as expected.
  • Scalability Options
    Although it has a reputation for not being the most scalable framework, Rails can be made scalable with good architecture and the right tools.
  • RESTful Design
    Rails promotes RESTful application design, which means that it aligns well with best practices in web development and makes it easier to build APIs.

Possible disadvantages of Ruby on Rails

  • Performance
    Ruby on Rails can be slower than some other frameworks, particularly for applications that require a lot of computation or have high traffic.
  • Learning Curve
    While Rails makes many things easier with its conventions, this can create a steep learning curve for newcomers who need to understand the 'Rails way' of doing things.
  • Scalability Concerns
    Due to its monolithic nature, scaling Rails can be challenging, requiring significant architectural changes and optimizations.
  • Lesser Flexibility
    The conventions that make Rails easy to use can also be limiting. When you need to do something outside the typical Rails flow, it may be harder to implement.
  • Runtime Speed
    Ruby, the language that Rails is built on, is generally slower in terms of execution speed compared to other languages like Java or C++.
  • Memory Consumption
    Rails applications can consume a lot of memory, which can be a concern for large-scale applications or those with limited resources.

Hanami features and specs

  • Lightweight and Fast
    Hanami is designed to be lightweight and efficient, providing faster performance compared to larger frameworks like Rails. This is achieved through streamlined code and modular architecture.
  • Modular Architecture
    Hanami embraces a modular structure that encourages clear separation of concerns. This makes it easy to manage and scale applications by isolating each component’s functionality.
  • Less Magic
    The framework uses explicit conventions over implicit 'magic,' which means developers have clear visibility over what their code is doing, leading to a better understanding and easier debugging.
  • Concurrency
    Hanami is designed to be thread-safe, allowing applications to handle concurrent requests more effectively, leveraging Ruby's concurrency model.
  • Test-Driven Philosophy
    Hanami promotes a strong culture of testing, providing built-in support for writing tests, which encourages good practices and helps maintain code quality.

Possible disadvantages of Hanami

  • Smaller Community
    Compared to frameworks like Rails, Hanami has a smaller community. This can mean fewer resources, tutorials, and third-party libraries available for developers.
  • Learning Curve
    Developers familiar with Rails or other full-stack frameworks may face a learning curve due to Hanami’s unique conventions and architecture.
  • Less Gem Support
    Some popular Ruby gems may not be fully compatible with Hanami, requiring extra effort to integrate or find alternative solutions.
  • Less Proven
    While powerful, Hanami isn’t as battle-tested as older frameworks like Rails, which can be a concern for long-term maintenance and reliability.
  • Limited Documentation
    The documentation for Hanami, while available, may not be as comprehensive or detailed as that of more established frameworks, posing challenges for new adopters.

Analysis of Ruby on Rails

Overall verdict

  • Ruby on Rails is generally considered a good choice for web development, especially for startups and small to medium-sized businesses looking to rapidly develop and iterate on their products.

Why this product is good

  • Ruby on Rails is a popular web application framework known for its simplicity and productivity. It offers a convention over configuration approach that speeds up the development process. Its strong community and rich ecosystem of gems make it easier for developers to implement complex functionalities quickly.

Recommended for

  • Startups looking to prototype quickly
  • Developers who prefer a simple and elegant syntax
  • Teams that prioritize rapid development
  • Applications that rely on CRUD operations

Ruby on Rails videos

Ruby On Rails Biggest Waste Of Time In 2020 | Ruby on Rails Dead

More videos:

  • Tutorial - Ruby on Rails Tutorial | Build a Book Review App - Part 1

Hanami videos

Phlur Hanami Fragrance Cologne REVIEW with Olya + Full Bottle GIVEAWAY (CLOSED)

More videos:

  • Review - Honest review of ALL Phlur Fragrances! Part 1 of 3: Intro, Hanami & Siano 🌺☁
  • Review - Phlur Hanami Fragrance Review on the Road

Category Popularity

0-100% (relative to Ruby on Rails and Hanami)
Developer Tools
96 96%
4% 4
Web Frameworks
95 95%
5% 5
Python Web Framework
100 100%
0% 0
Ruby Web Framework
0 0%
100% 100

User comments

Share your experience with using Ruby on Rails and Hanami. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Ruby on Rails and Hanami

Ruby on Rails Reviews

  1. Stan
    · Founder at SaaSHub ·
    The most productive web framework

    Yes, there are other more trending frameworks; however, nothing reaches the productivity of Rails. It's simply unbeatable if you have a small team.

    For example both SaaSHub and LibHunt were built on Rails.

    🏁 Competitors: Django, Laravel

Top 9 best Frameworks for web development
The best frameworks for web development include React, Angular, Vue.js, Django, Spring, Laravel, Ruby on Rails, Flask and Express.js. Each of these frameworks has its own advantages and distinctive features, so it is important to choose the framework that best suits the needs of your project.
Source: www.kiwop.com
Top 5 Laravel Alternatives
In terms of documentation, guidelines, and libraries, Ruby on Rails is the superior framework for smaller applications. Since it entered the online scene before Laravel, its community is larger and more well-liked among programmers. When compared to other Laravel alternatives, Ruby’s code is much simpler to understand and write.
Top 10 Phoenix Framework Alternatives
While modern frameworks try to minimize the tradeoffs to a limited extent, none of them has come closer to the implementation of the Phoenix Framework, which offers Ruby on Rails levels of productivity while being one of the fastest frameworks available in the market.
10 Ruby on Rails Alternatives For Web Development in 2022
Once a prolific web development technology, in 2021, both Ruby and Ruby on Rails are considered dying technologies. The data speaks for itself. In October 2021, Ruby lost 3 ranks in the Tiobe Index compared to October 2020 and became the 16th most searched programming language. The same decline in Ruby on Rails popularity is demonstrated by Google Trends. The language...
Get Over Ruby on Rails — 3 Alternative Web Frameworks Worth Checking Out
Disclaimer: I started working on this article before the big controversy about Basecamp happened. I don’t want to make any point about this in the article. Regardless of what DHH and others are saying on different topics, Ruby on Rails is still a great piece of software and will continue to be. But there are some great alternatives as well that I would like to highlight.

Hanami Reviews

Get Over Ruby on Rails — 3 Alternative Web Frameworks Worth Checking Out
Hanami used to be called Lotus, but because of some copyright issues with IBM, it was renamed Hanami. The main developer, Luca Guidi, announced a big collaboration with the team of dry-rb and rom-rb more than a year ago. Now the teams from these projects are working on improving the framework. If you want to follow their progress, I recommend following Tim Riley and Piotr...
16 Best Ruby Frameworks For Web Development
With a clean architectural design and a primary object methodology, Hanami is counted among the best ruby frameworks that have gained popularity as an alternative to Rails. Hanami is “sorted” in design and provides small files that can be used independently to create a project stack. Hanami is lightweight and consumes fewer resources claiming 60% lesser memory than other big...

Social recommendations and mentions

Based on our record, Ruby on Rails should be more popular than Hanami. It has been mentiond 143 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Ruby on Rails mentions (143)

  • 🔥 Why Everyone Is Talking About HTMX: The Game-Changer for Web Development
    🌍 Who Should Use HTMX? ✅ Django / Flask / Rails developers ✅ Express / Node.js backend lovers ✅ Fullstack devs who want LESS frontend headache ✅ Teams jo SSR + SEO ko priority dete hain. - Source: dev.to / 5 days ago
  • Unlocking Opportunities: How to Thrive as a Ruby Engineer in Today's Tech Landscape
    Ruby on Rails open source projects. Contribute and learn at the same time. - Source: dev.to / 25 days ago
  • Open Source: A Goldmine for Indie Hackers
    Speed of Development: Frameworks such as Django or Rails accelerate the development process. - Source: dev.to / 26 days ago
  • Indie Hacking with Open Source Tools: Innovating on a Budget
    This ecosystem is fueled by repositories hosting powerful languages, functions, and versatile tools—from backend frameworks like Django and Ruby on Rails to containerization with Docker and distributed version control via Git. Moreover, indie hackers can also utilize open source design tools (e.g. GIMP, Inkscape) and analytics platforms such as Matomo. - Source: dev.to / 28 days ago
  • Charybdis ORM: Building High-Performance Distributed Rust Backends with ScyllaDB
    Ruby on Rails (RoR) is one of the most renowned web frameworks. When combined with SQL databases, RoR transforms into a powerhouse for developing back-end (or even full-stack) applications. It resolves numerous issues out of the box, sometimes without developers even realizing it. For example, with the right callbacks, complex business logic for a single API action is automatically wrapped within a transaction,... - Source: dev.to / about 1 month ago
View more

Hanami mentions (18)

  • Should You Use Ruby on Rails or Hanami?
    While Rails is very well-known in the Ruby community, Hanami is less so. It's a fairly new modern Ruby framework trying to take on Rails' dominance of the full-stack web framework space. - Source: dev.to / about 1 year ago
  • 16 Best Ruby Frameworks For Web Development [2024]
    With a clean architectural design and a primary object methodology, Hanami is counted among the best ruby frameworks that have gained popularity as an alternative to Rails. Hanami is “sorted” in design and provides small files that can be used independently to create a project stack. Hanami is lightweight and consumes fewer resources claiming 60% lesser memory than other big Ruby frameworks. - Source: dev.to / about 1 year ago
  • Is Ruby a dying language?
    No, it's just no longer over-hyped. Ruby is settling into being a mature production language, similar to Python, Java, .NET, C++, etc. As you can see from the RedMonk 2023 data Ruby is very much still alive with tons of repositories on GitHub. Besides Shopify, GitHub is another big Ruby/Rails shop. Also, besides Rails, there are other new and upcoming projects like Hanami, DragonRuby, and Ronin. Source: over 1 year ago
  • Enhancing development with REPLs - A practical guide
    On all my application tutorials I start by setting up an application level REPL, it's basically a console script that loads all the files inside your project, if you're using a framework like Ruby on Rails or Hanami you already have a console by running the command console also. - Source: dev.to / over 1 year ago
  • Why are there so many Rails related posts here?
    This is something that kind of annoys me; there's even a /r/rails sub-reddit specifically for Ruby on Rails stuff. Understandably Rails helped put Ruby on the map. Before Rails, Ruby was just another fringe language. Rails became massively popular, helped many startups quickly build their Web 2.0 sites, and become successful companies (ex: GitHub, LinkedIn, AirBnB, etc). Like others have said, "Rails is where the... Source: about 2 years ago
View more

What are some alternatives?

When comparing Ruby on Rails and Hanami, you can also consider the following products

Django - The Web framework for perfectionists with deadlines

Sinatra - Classy web-development dressed in a DSL

Laravel - A PHP Framework For Web Artisans

Padrino - Padrino is a Ruby web framework built upon the Sinatra web library.

ASP.NET - ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.

Cuba - Cuba is a Ruby microframework for web development.