Framework500K+/wkMIT

hono

Hono is an ultrafast, lightweight web framework designed to run on any JavaScript runtime including Cloudflare Workers, Deno, Bun, AWS Lambda, Fastly Compute, a

Installation

npm
npm install hono
yarn
yarn add hono
pnpm
pnpm add hono

Import

ESM
import { Hono } from 'hono';

Quick Example

usage
const app = new Hono();

app.get('/', (c) => c.text('Hello Hono'));
app.get('/json', (c) => c.json({ msg: 'ok' }));

export default app;

About hono

Hono is an ultrafast, lightweight web framework designed to run on any JavaScript runtime including Cloudflare Workers, Deno, Bun, AWS Lambda, Fastly Compute, and Node.js. The name means 'flame' in Japanese, reflecting its focus on speed. Hono achieves exceptional performance through a RegExpRouter that optimizes route matching, with benchmarks showing it handling more requests per second than most competitors on edge runtimes. The framework provides a familiar Express-like API with app.get(), app.post(), and middleware support, but with full TypeScript inference for routes, parameters, query strings, and request/response bodies. Hono includes built-in middleware for CORS, JWT authentication, bearer tokens, basic auth, ETag, caching, compression, and logging. It supports JSX for server-side HTML rendering without React, making it suitable for building both APIs and HTML pages. Hono's adapter system allows the same application code to deploy across different runtimes without modification. The framework has gained rapid adoption in the edge computing community as the go-to framework for serverless and edge-deployed APIs.

Quick Facts

Packagehono
CategoryFramework
Weekly Downloads500K+
LicenseMIT
Installnpm install hono

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.