> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/zhcndoc/bun/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an HTTP server with Hono

> Use Hono with Bun for fast web apps

Hono is a lightweight web framework optimized for Bun.

## Installation

```bash theme={null}
bun add hono
```

## Basic Server

```typescript server.ts theme={null}
import { Hono } from "hono";

const app = new Hono();

app.get("/", (c) => c.text("Hello Hono!"));

app.get("/api/hello/:name", (c) => {
  const name = c.req.param("name");
  return c.json({ message: `Hello ${name}!` });
});

export default {
  port: 3000,
  fetch: app.fetch,
};
```

Run with:

```bash theme={null}
bun run server.ts
```

## Features

* Fast routing
* Middleware support
* TypeScript support
* Built for Bun, Deno, and Cloudflare Workers

<Card title="Hono Documentation" icon="book" href="https://hono.dev">
  Learn more about Hono
</Card>
