rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

Hono is a lightweight ultrafast web framework designed for the edge.

https://mintcdn.com/bun-1dd33a4e/JUhaF6Mf68z_zHyy/icons/typescript.svg?fit=max&auto=format&n=JUhaF6Mf68z_zHyy&q=85&s=7ac549adaea8d5487d8fbd58cc3ea35bserver.ts

import { Hono } from "hono";
const app = new Hono();

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

export default app;

Use create-hono to get started with one of Hono’s project templates. Select bun when prompted for a template.

terminal

bun create hono myapp
✔ Which template do you want to use? › bun
cloned honojs/starter#main to /path/to/myapp
✔ Copied project files

terminal

cd myapp
bun install

Then start the dev server and visit localhost:3000.

terminal

bun run dev

Refer to Hono’s guide on getting started with Bun for more information.

Was this page helpful?

Suggest editsRaise issue

[

Build an HTTP server using Express and Bun

Previous

](../express/index.md)[

Read and write data to MongoDB using Mongoose and Bun

Next

](../mongoose/index.md)