Last Updated: 3/9/2026
Quick Start
Get your first Hono application running in under 5 minutes. This guide will have you serving “Hello World” before you finish your coffee.
Prerequisites
You’ll need one of the following installed:
- Node.js (v18 or higher) with npm, yarn, pnpm, or bun
- Deno (v1.20 or higher)
Create Your First App
Hono provides starter templates for every platform. Use the create-hono command:
npm create hono@latest my-appyarn create hono my-apppnpm create hono@latest my-appbun create hono@latest my-appdeno init --npm hono@latest my-appChoose Your Platform
You’ll be prompted to select a template:
? Which template do you want to use?
aws-lambda
bun
cloudflare-pages
❯ cloudflare-workers
deno
fastly
nextjs
nodejs
vercelFor this guide, we’ll use Cloudflare Workers, but the code works the same on any platform.
Install Dependencies
Navigate to your project and install:
cd my-app
npm icd my-app
yarncd my-app
pnpm icd my-app
bun iStart the Development Server
npm run devyarn devpnpm devbun run devYour app is now running! Open http://localhost:8787 in your browser.
Your First Endpoint
Open src/index.ts. You’ll see your first Hono application:
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => {
return c.text('Hello Hono!')
})
export default appThat’s it! You’ve created a web server with one endpoint.
Add More Routes
Let’s add a JSON endpoint. Add this below your first route:
app.get('/api/hello', (c) => {
return c.json({
ok: true,
message: 'Hello Hono!',
})
})Visit http://localhost:8787/api/hello to see your JSON response.
Handle Path Parameters
Add a route with a path parameter:
app.get('/posts/:id', (c) => {
const id = c.req.param('id')
return c.text(`You requested post ${id}`)
})Try http://localhost:8787/posts/123 .
Handle Query Parameters
Access query strings:
app.get('/search', (c) => {
const query = c.req.query('q')
return c.text(`You searched for: ${query}`)
})Try http://localhost:8787/search?q=hono .
What You’ve Learned
In just a few minutes, you’ve:
✅ Created a Hono application
✅ Started a development server
✅ Returned text and JSON responses
✅ Handled path and query parameters
What’s Next
Learn the basics: Read Hello World for a deeper dive into your first application.
Understand core concepts: Check out Basic Concepts to learn about requests, responses, and middleware.
Deploy your app: See platform-specific guides in the Deployment section.
Build something real: Explore Guides for routing, validation, and more.