Skip to Content

Last Updated: 3/7/2026


Deno

Deno  is a JavaScript runtime built on V8. Hono works great on Deno.

1. Install Deno

First, install deno command. Please refer to the official document .

2. Setup

A starter for Deno is available. Start your project with the deno init command.

deno init --npm hono --template=deno my-app

Move into my-app.

cd my-app

3. Hello World

Edit main.ts:

import { Hono } from 'hono' const app = new Hono() app.get('/', (c) => c.text('Hello Deno!')) Deno.serve(app.fetch)

4. Run

Run the development server locally. Then, access http://localhost:8000 in your Web browser.

deno task start

Serve static files

To serve static files, use serveStatic imported from hono/deno.

import { Hono } from 'hono' import { serveStatic } from 'hono/deno' const app = new Hono() app.use('/static/*', serveStatic({ root: './' })) app.use('/favicon.ico', serveStatic({ path: './favicon.ico' })) app.get('/', (c) => c.text('You can access: /static/hello.txt')) app.get('*', serveStatic({ path: './static/fallback.txt' })) Deno.serve(app.fetch)

Deno Deploy

Deno Deploy is a serverless platform for running JavaScript and TypeScript applications in the cloud. Hono works great on Deno Deploy.