Quick start
Scaffold a new Hono project with the official template:bun:
Manual setup
Create a server
Hono integrates with Bun’s native HTTP server by exporting a
fetch-compatible handler:src/index.ts
Routing
Hono supports all standard HTTP methods and dynamic route parameters:Middleware
Hono provides built-in middleware and supports custom middleware functions:JSX templating
Hono supports JSX for server-side HTML rendering without React:src/index.tsx
tsconfig.json settings to enable Hono’s JSX factory:
tsconfig.json
Grouping routes
Useapp.route() to group related routes into sub-applications: