# Hanami::API vs Hanami 2.0

**URL:** <https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754>\
**Category:** questions\
**Created:** [December 1, 2022, 7:10pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754 "2022-12-01T19:10:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasKoppensteiner](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/thomaskoppensteiner/32/585_2.png) [@ThomasKoppensteiner](https://discourse.hanakai.org/u/ThomasKoppensteiner)\
**Post date:** [December 1, 2022, 7:10pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/1 "2022-12-01T19:10:30Z")

</div>

Hello,  
now that Hanami 2.0 is released, can someone please explain to me the biggest difference between [Hanami](https://github.com/hanami/hanami) and [Hanami::API](https://github.com/hanami/api)?

What is the state of Hanami::API?

I’m mainly interrested on APIs. Which project should I use - Hanami 2.0 without views and frontend or Hanami:API?

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [December 1, 2022, 8:05pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/2 "2022-12-01T20:05:02Z")

</div>

@ThomasKoppensteiner

Hanami::API is like Sinatra. It’s for quick and little App/API. Maybe if you need to mount it in a context like a Rails app. (hint: it’s wayyyyyy [faster](https://web-frameworks-benchmark.netlify.app/result?l=ruby) than Sinatra 😉 )

Hanami is like Rails. It can support a large app/API with a full fledged CLI.

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [December 1, 2022, 8:06pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/3 "2022-12-01T20:06:28Z")

</div>

@ThomasKoppensteiner

> What is the state of Hanami::API?

It’s approaching to 1.0 and very very solid.  
It has been my personal experimentation project to consolidate ideas that then landed to Hanami 2.0.

---

<div class="post-metadata">

**Author:** ![ThomasKoppensteiner](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/thomaskoppensteiner/32/585_2.png) [@ThomasKoppensteiner](https://discourse.hanakai.org/u/ThomasKoppensteiner)\
**Post date:** [December 1, 2022, 8:24pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/4 "2022-12-01T20:24:06Z")

</div>

I’m looking forward to that `1.0` release.

---

<div class="post-metadata">

**Author:** ![ThomasKoppensteiner](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/thomaskoppensteiner/32/585_2.png) [@ThomasKoppensteiner](https://discourse.hanakai.org/u/ThomasKoppensteiner)\
**Post date:** [December 1, 2022, 8:31pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/5 "2022-12-01T20:31:20Z")

</div>

> [@jodosha](#):
>
> hint: it’s wayyyyyy [faster](https://web-frameworks-benchmark.netlify.app/result?l=ruby) than Sinatra

I have seen the benchmark results, but didn’t run it myself yet.  
I’m working on project using Sintra, and it’s not “that” slow.

But still I would like to give `Hanami:API` (and the Benchmark) a try.

---

<div class="post-metadata">

**Author:** ![dimaboyko](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/dimaboyko/32/559_2.png) [@dimaboyko](https://discourse.hanakai.org/u/dimaboyko)\
**Post date:** [January 2, 2023, 2:42pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/6 "2023-01-02T14:42:15Z")

</div>

Hey @jodosha,  
huh, interesting, so you are saying Hanami::API **is** coming ?

I have read in the chat, that plan was to deprecate it. Currently, I am using beta4 of router with some things on top to have my api-only app.  
Would you say it’s worth waiting for hanami-api release, or build my own thing on top of hanami-router 2.0 ?  
Is it shared/discussed somewhere, what is the plan for hanami-api, and what is there left to be done, so maybe I could help ?

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [January 5, 2023, 5:59am UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/7 "2023-01-05T05:59:20Z")

</div>

> [@dimaboyko](#):
>
> I have read in the chat, that plan was to deprecate it.

IDK who said that, but it isn’t true.

> [@dimaboyko](#):
>
> Would you say it’s worth waiting for hanami-api release

I released v0.3.0 on Dec 25th, 2022.

> [@dimaboyko](#):
>
> Is it shared/discussed somewhere, what is the plan for hanami-api,

I believe Hanami::API is complete.  
We’re keeping it under v1.0.0, just in case.  
After Hanami v2.1, I believe it’s time to promote Hanami::API to 1.0.

---

<div class="post-metadata">

**Author:** ![dimaboyko](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/dimaboyko/32/559_2.png) [@dimaboyko](https://discourse.hanakai.org/u/dimaboyko)\
**Post date:** [January 5, 2023, 8:35am UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/8 "2023-01-05T08:35:01Z")

</div>

Cool, thanks for the info !

---

<div class="post-metadata">

**Author:** ![psylone](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/psylone/32/627_2.png) [@psylone](https://discourse.hanakai.org/u/psylone)\
**Post date:** [March 27, 2023, 4:04pm UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/9 "2023-03-27T16:04:18Z")

</div>

> [@dimaboyko](#):
>
> I have read in the chat, that plan was to deprecate it.

It was published [here](https://matrix.to/#/!OBiRnEPVmjVPRuttHO:gitter.im/$v0tMR1UDGLSOTLAmI6zOkmmGobVj5h30N99aguYapyo?via=gitter.im&via=matrix.org&via=matrix.code-feather.de) in Gitter hanami/chat.

---

<div class="post-metadata">

**Author:** ![hartmut](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@hartmut](https://discourse.hanakai.org/u/hartmut)\
**Post date:** [March 28, 2023, 7:53am UTC](https://discourse.hanakai.org/t/hanami-api-vs-hanami-2-0/754/10 "2023-03-28T07:53:35Z")

</div>

Why do you compare the hanami project with sinatra?  
In my view, roda is much more similar.
