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 install hono
yarn add hono
pnpm add hono
Import
import { Hono } from 'hono';Quick Example
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
| Package | hono |
| Category | Framework |
| Weekly Downloads | 500K+ |
| License | MIT |
| Install | npm install hono |
Related Packages
Express is the most widely used web application framework for Node.js, providing a minimal and flexi…
Fastify is a high-performance web framework for Node.js designed to be the fastest HTTP framework av…
Elysia is a TypeScript web framework optimized for the Bun runtime that delivers exceptional perform…
Koa is a lightweight web framework for Node.js created by the same team behind Express. It was desig…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.