Chapter 1
Introduction
Meet Hono and the shape of this book.
Introduction
Hono is a small, fast web framework built on Web Standards. It gives you a familiar routing and middleware model while keeping the core API portable across runtimes such as Cloudflare Workers, Node.js, Bun, and Deno.
This book is also a Hono app. Each chapter is Markdown, bundled by Vite, rendered by Hono, and served as HTML. That means the codebase can teach Hono while using Hono for the website itself.
What you will build
You will learn the core ideas behind Hono through working examples:
- Creating an app with
new Hono(). - Defining routes and reading request data.
- Returning text, JSON, redirects, and HTML.
- Composing middleware.
- Deploying a Hono project to the edge.
How to read this scaffold
Start with src/index.tsx to see routing. Then inspect src/content.ts to see how Markdown chapters become data. The shared HTML frame lives in src/renderer.tsx.