DEV Community

Alex Spinov
Alex Spinov

Posted on

Hono Has a Free Ultra-Fast Web Framework for the Edge

Hono is a free, lightweight web framework that runs on Cloudflare Workers, Deno, Bun, Node.js, and any runtime. It is ultra-fast with zero dependencies.

What Is Hono?

Hono (meaning flame in Japanese) is a small, simple web framework with first-class TypeScript support.

import { Hono } from "hono";

const app = new Hono();

app.get("/", (c) => c.text("Hello Hono!"));
app.get("/api/users/:id", (c) => {
  return c.json({ id: c.req.param("id"), name: "Alice" });
});
app.post("/api/data", async (c) => {
  const body = await c.req.json();
  return c.json({ received: body });
});

export default app;
Enter fullscreen mode Exit fullscreen mode

Features: 14KB total, runs everywhere (Workers/Deno/Bun/Node), built-in middleware (CORS, auth, logger), RPC client, OpenAPI support, JSX for HTML.

Feature Express Hono
Size 200KB+ 14KB
TypeScript Manual First-class
Edge ready No Yes
Performance Good Excellent

With 21K+ GitHub stars. The web framework for every runtime.


Apify tools | spinov001@gmail.com

Top comments (0)