<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sourabh Singh</title>
    <description>The latest articles on DEV Community by Sourabh Singh (@sourabh_singh1812).</description>
    <link>https://dev.to/sourabh_singh1812</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2496365%2F9732d640-40a9-4bda-913d-b34c88230fcc.jpg</url>
      <title>DEV Community: Sourabh Singh</title>
      <link>https://dev.to/sourabh_singh1812</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sourabh_singh1812"/>
    <language>en</language>
    <item>
      <title>Hono Js - Another Express clone?</title>
      <dc:creator>Sourabh Singh</dc:creator>
      <pubDate>Fri, 06 Dec 2024 19:58:03 +0000</pubDate>
      <link>https://dev.to/sourabh_singh1812/hono-js-another-express-clone-38h6</link>
      <guid>https://dev.to/sourabh_singh1812/hono-js-another-express-clone-38h6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hono.Js&lt;/strong&gt;, the new talk of the town, either you are hating it or loving it but you aren’t ignoring it.&lt;/p&gt;

&lt;p&gt;I’ve recently tried Hono.Js and yes just like you I was very much skeptical in the beginning and was researching on various performance bench marks for Hono in comparison to other frameworks. So let me share my experience on the new framework, how I felt and is it worth you try.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Goods 👍
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1ffc8ojuphl5qv07ar.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1ffc8ojuphl5qv07ar.gif" alt="Happy developer GIf" width="400" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Hono.js&lt;/strong&gt; stands out as a lightweight, fast, and flexible framework which is designed for modern applications. It’s built-in support for tools like RPC, AWS, Edge platforms (Cloudflare, Vercel), and JSX makes it a great choice for developers who are looking for simplicity and don’t want to compromise with the functionalities.&lt;/p&gt;

&lt;p&gt;Hono has built in support for complex tools like &lt;strong&gt;RPC, AWS, Edge functionality&lt;/strong&gt;, &lt;strong&gt;Cloudflare&lt;/strong&gt;, &lt;strong&gt;JSX&lt;/strong&gt; and many more. Obviously you can go and check out their official website at &lt;a href="https://hono.dev/" rel="noopener noreferrer"&gt;hono.dev&lt;/a&gt; and get better understanding of various features they offer as there are a lot!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Vast Runtime Support&lt;/strong&gt; - Hono is not rigid and provides support for various runtimes so that you don’t have to compromise on your favorite one. Currently it support runtimes like &lt;strong&gt;Cloudflare, Fastly,&lt;/strong&gt; &lt;strong&gt;Deno, Node Js, Bun&lt;/strong&gt;, and &lt;strong&gt;AWS&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Great DX&lt;/strong&gt; - Hono has a great amount of built in libraries and middleware which makes it easier to build a quick prototype or increase your development speed as you won’t need to install and setup every other which makes it a great choice for startups.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fast and Lightweight&lt;/strong&gt; - Hono uses &lt;strong&gt;RegExpRouter&lt;/strong&gt; which makes it really fast (even I don’t know what reg exp router so here is what &lt;strong&gt;ChatGPT&lt;/strong&gt; told me 😅 ). &lt;strong&gt;RegExpRouter&lt;/strong&gt; uses regular expressions for routing, making it faster and more lightweight compared to traditional approaches.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Edge Support&lt;/strong&gt; - Hono has a great support for the popular Edge platforms like &lt;strong&gt;Vercel&lt;/strong&gt;, &lt;strong&gt;Cloudflare&lt;/strong&gt; and &lt;strong&gt;AWS&lt;/strong&gt; which makes it easier to work and deploy on the edge.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Performance Benchmarks ⚡
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1102byzyb7jdroq6ygc.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1102byzyb7jdroq6ygc.gif" alt="Speed Menion" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am just broke as you so I don’t have any funds to rent the expensive AWS instances and run benchmarks. But I can share you the resources I used to get an idea of actual performance potential of Hono’s performance.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Medium Blogs&lt;/strong&gt; - You can consider the blogs from &lt;a href="https://choubey.medium.com/" rel="noopener noreferrer"&gt;Mayank C&lt;/a&gt; on Medium

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://medium.com/deno-the-complete-reference/url-shortener-service-benchmarking-express-node-vs-hono-deno-135fb0e2dc9e" rel="noopener noreferrer"&gt;URL shortener service benchmarking: Express (Node) vs Hono (Deno)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://medium.com/deno-the-complete-reference/performance-of-hono-framework-with-bun-b6e592cc113a" rel="noopener noreferrer"&gt;Performance of Hono framework with Bun&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://medium.com/deno-the-complete-reference/bun-elysia-js-vs-hono-hello-world-b655a20f1f2b" rel="noopener noreferrer"&gt;Bun: Elysia.js vs Hono — Hello world&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube Videos&lt;/strong&gt; - Well there aren’t much organic videos on YouTube for this purpose so you need to stick to the blogs. 😔&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Getting Started with Hono
&lt;/h2&gt;

&lt;p&gt;It is hell easy to get started with hono. You just need to write the following command in your terminal and everything will be setup for you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;bunx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;hono&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;latest&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This script will ask you all the dependencies you want to add to your project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fix3uqb7ts7vtrv1g5uuk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fix3uqb7ts7vtrv1g5uuk.png" alt="Script Preview for command bunx create-hono@latest" width="800" height="124"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbywgc8ydq6n85fnp5hw5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbywgc8ydq6n85fnp5hw5.png" alt="Script Preview for command bunx create-hono@latest" width="800" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And then you will be greeted with your &lt;strong&gt;&lt;code&gt;Hello world&lt;/code&gt;&lt;/strong&gt; function based on the options you chose at the time of initialization.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8pzlq88sr51al9xg6scn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8pzlq88sr51al9xg6scn.png" alt="Hono.Js Hello world programme" width="800" height="655"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Is Hono Just another Express Clone? 🤔
&lt;/h2&gt;

&lt;p&gt;While Hono.js shares some similarities with Express in terms of syntax, it is far more than a clone. Hono is designed with performance and modern use cases in mind, such as seamless integration with edge platforms and support for runtimes like Bun, Deno, and Fastly. These features place it in a category of its own, making it a worthy contender in the framework ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Hono.Js is a great backend framework which completely deserves a try. I bet you will love it. It tries to provide us many benefits out of the box eliminating the hassle of setting up various dependencies and work. It is great for edge use cases and for building startups and getting better day by day.&lt;/p&gt;

&lt;p&gt;Hope you liked this blog 😃. Don’t forget to comment your thoughts on the Hono Framework.&lt;/p&gt;

</description>
      <category>hono</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
